/*******************************************************************************
* Copyright (c) 2013 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Geneviève Bastien - Initial implementation and API
*******************************************************************************/
package fr.inria.linuxtools.tmf.core.synchronization;
import fr.inria.linuxtools.tmf.core.timestamp.ITmfTimestamp;
/**
* This class contains a formula to transform the value of a timestamp, for
* example after trace synchronization
*
* @author Geneviève Bastien
* @since 3.0
*/
public interface ITmfTimestampTransform {
/**
* Transforms a timestamp
*
* @param timestamp
* The timestamp to transform
* @return the transformed timestamp
*/
ITmfTimestamp transform(ITmfTimestamp timestamp);
/**
* Transforms a timestamp value
*
* @param timestamp
* The timestamp to transform
* @return the transformed value
*/
long transform(long timestamp);
/**
* Returns a timestamp transform that is the composition of two timestamp
* transforms.
*
* @param composeWith
* The transform to first apply on the timestamp before applying
* the current object
* @return A new timestamp transform object with the resulting composition.
*/
ITmfTimestampTransform composeWith(ITmfTimestampTransform composeWith);
}