blob: 9e24bb86cb73bbbbc88dd6dc05cef4359d755eff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*******************************************************************************
* 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 org.eclipse.linuxtools.tmf.core.synchronization;
import java.io.Serializable;
import org.eclipse.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 extends Serializable {
/**
* 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 in nanoseconds
* @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);
}
|