1 /*******************************************************************************
2 * Copyright (c) 2009 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
.trace
;
15 import org
.eclipse
.linuxtools
.tmf
.event
.TmfTimestamp
;
18 * <b><u>TmfCheckpoint</u></b>
20 * This class maps an event timestamp with a location.
22 public class TmfCheckpoint
implements Comparable
<TmfCheckpoint
> {
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
28 private final TmfTimestamp fTimestamp
;
29 private final ITmfLocation fLocation
;
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
39 public TmfCheckpoint(TmfTimestamp ts
, ITmfLocation location
) {
44 // ------------------------------------------------------------------------
46 // ------------------------------------------------------------------------
49 * @return the checkpoint event timestamp
51 public TmfTimestamp
getTimestamp() {
56 * @return the checkpoint event stream location
58 public ITmfLocation
getLocation() {
62 // ------------------------------------------------------------------------
64 // ------------------------------------------------------------------------
66 public int compareTo(TmfCheckpoint other
) {
67 return fTimestamp
.compareTo(other
.fTimestamp
, false);
This page took 0.033207 seconds and 6 git commands to generate.