Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / ITmfCheckpoint.java
CommitLineData
5d837f9b
FC
1/*******************************************************************************
2 * Copyright (c) 2012 Ericsson
1e1bef82 3 *
5d837f9b
FC
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
1e1bef82 8 *
5d837f9b
FC
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.core.trace;
14
15import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
16
17/**
5d837f9b
FC
18 * The basic trace checkpoint structure in TMF. The purpose of the checkpoint is
19 * to associate a trace location to an event timestamp.
1e1bef82 20 *
f7703ed6
FC
21 * @version 1.0
22 * @author Francois Chouinard
23 *
f7703ed6
FC
24 * @see ITmfTimestamp
25 * @see ITmfLocation
5d837f9b 26 */
0316808c 27public interface ITmfCheckpoint extends Comparable<ITmfCheckpoint> {
5d837f9b
FC
28
29 // ------------------------------------------------------------------------
30 // Getters
31 // ------------------------------------------------------------------------
32
33 /**
34 * @return the timestamp of the event referred to by the context
35 */
36 public ITmfTimestamp getTimestamp();
37
d905a64a 38 /**
408e65d2 39 * @return the location of the event referred to by the context
d905a64a
FC
40 */
41 public ITmfContext getContext();
42
5d837f9b
FC
43 /**
44 * @return the location of the event referred to by the context
45 */
1e1bef82 46 public ITmfLocation getLocation();
5d837f9b 47
5d837f9b
FC
48 /**
49 * @return a clone of the checkpoint
50 */
51 public ITmfCheckpoint clone();
52
53 // ------------------------------------------------------------------------
54 // Comparable
55 // ------------------------------------------------------------------------
56
ff1ccee6 57 /* (non-Javadoc)
5d837f9b
FC
58 * @see java.lang.Comparable#compareTo(java.lang.Object)
59 */
60 @Override
61 public int compareTo(ITmfCheckpoint checkpoint);
62
63}
This page took 0.03388 seconds and 5 git commands to generate.