1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.trace
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfTimestamp
;
18 * <b><u>ITmfCheckpoint</u></b>
20 * The basic trace checkpoint structure in TMF. The purpose of the checkpoint is
21 * to associate a trace location to an event timestamp.
23 public interface ITmfCheckpoint
extends Cloneable
, Comparable
<ITmfCheckpoint
> {
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 * @return the timestamp of the event referred to by the context
32 public ITmfTimestamp
getTimestamp();
35 * @return the location of the event referred to by the context
37 public ITmfLocation
<?
extends Comparable
<?
>> getLocation();
39 // ------------------------------------------------------------------------
41 // ------------------------------------------------------------------------
44 * @return a clone of the checkpoint
46 public ITmfCheckpoint
clone();
48 // ------------------------------------------------------------------------
50 // ------------------------------------------------------------------------
55 * @see java.lang.Comparable#compareTo(java.lang.Object)
58 public int compareTo(ITmfCheckpoint checkpoint
);