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 * Alvaro Sanchez-Leon - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.model
;
15 import java
.util
.Iterator
;
16 import java
.util
.Vector
;
18 public interface ITmfTimeAnalysisEntry
{
20 public String
getGroupName();
24 public String
getName();
26 public long getStartTime();
28 public long getStopTime();
31 * Get a vector containing all events
32 * @deprecated replaced by {@link #getTraceEventsIterator()}
34 @Deprecated public <T
extends ITimeEvent
> Vector
<T
> getTraceEvents();
37 * Get an iterator which returns all events
39 public <T
extends ITimeEvent
> Iterator
<T
> getTraceEventsIterator();
42 * Get an iterator which only returns events that fall within the start time and the stop time.
43 * The visible duration is the event duration below which further detail is not discernible.
44 * If no such iterator is implemented, provide a basic iterator which returns all events.
46 * @param startTime start time in nanoseconds
47 * @param stopTime stop time in nanoseconds
48 * @param visibleDuration duration of one pixel in nanoseconds
50 public <T
extends ITimeEvent
> Iterator
<T
> getTraceEventsIterator(long startTime
, long stopTime
, long visibleDuration
);
52 public <T
extends ITimeEvent
> void addTraceEvent(T event
);
This page took 0.031278 seconds and 5 git commands to generate.