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 * The basic trace checkpoint structure in TMF. The purpose of the checkpoint is
19 * to associate a trace location to an event timestamp.
22 * @author Francois Chouinard
27 public interface ITmfCheckpoint
extends Comparable
<ITmfCheckpoint
> {
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
34 * @return the timestamp of the event referred to by the context
36 public ITmfTimestamp
getTimestamp();
39 * @return the location of the event referred to by the context
41 public ITmfContext
getContext();
44 * @return the location of the event referred to by the context
46 public ITmfLocation
<?
extends Comparable
<?
>> getLocation();
49 * @return a clone of the checkpoint
51 public ITmfCheckpoint
clone();
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
58 * @see java.lang.Comparable#compareTo(java.lang.Object)
61 public int compareTo(ITmfCheckpoint checkpoint
);