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>TmfStreamCheckpoint</u></b>
20 * This class maps an event timestamp with a trace location.
22 public class TmfStreamCheckpoint
implements Comparable
<TmfStreamCheckpoint
> {
24 // ========================================================================
26 // ========================================================================
28 private final TmfTimestamp fTimestamp
;
29 private final Object fLocation
;
31 // ========================================================================
33 // ========================================================================
39 public TmfStreamCheckpoint(TmfTimestamp ts
, Object location
) {
44 // ========================================================================
46 // ========================================================================
49 * @return the checkpoint event timestamp
51 public TmfTimestamp
getTimestamp() {
56 * @return the checkpoint event stream location
58 public Object
getLocation() {
62 // ========================================================================
64 // ========================================================================
66 public int compareTo(TmfStreamCheckpoint other
) {
67 return fTimestamp
.compareTo(other
.fTimestamp
, false);