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
.TmfEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.event
.TmfTimeRange
;
17 import org
.eclipse
.linuxtools
.tmf
.event
.TmfTimestamp
;
20 * <b><u>ITmfTrace</u></b>
23 public interface ITmfTrace
{
26 * @return the trace path
28 public String
getPath();
31 * @return the trace name
33 public String
getName();
36 * @return the number of events in the trace
38 public long getNbEvents();
41 * Trace time range accessors
43 public TmfTimeRange
getTimeRange();
44 public TmfTimestamp
getStartTime();
45 public TmfTimestamp
getEndTime();
48 * Positions the trace at the first event with the specified
49 * timestamp or index (i.e. the nth event in the trace).
51 * Returns a context which can later be used to read the event.
53 * @param data.timestamp
55 * @return a context object for subsequent reads
57 public TmfTraceContext
seekLocation(Object location
);
58 public TmfTraceContext
seekEvent(TmfTimestamp timestamp
);
59 public TmfTraceContext
seekEvent(long index
);
62 * Return the event pointed by the supplied context (or null if
63 * no event left) and updates the context to the next event.
65 * @return the next event in the stream
67 public TmfEvent
getNextEvent(TmfTraceContext context
);
70 * Return the event pointed by the supplied context (or null if
71 * no event left) and *does not* update the context.
73 * @return the next event in the stream
75 public TmfEvent
parseEvent(TmfTraceContext context
);
This page took 0.030969 seconds and 5 git commands to generate.