Commit | Line | Data |
---|---|---|
b0d3496e ASL |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2009 Ericsson\r | |
3 | * \r | |
4 | * All rights reserved. This program and the accompanying materials are\r | |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
8 | * \r | |
9 | * Contributors:\r | |
10 | * Alvaro Sanchez-Leon - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.model;\r | |
14 | \r | |
ce62370f | 15 | import java.util.Iterator;\r |
b0d3496e ASL |
16 | import java.util.Vector;\r |
17 | \r | |
18 | public interface ITmfTimeAnalysisEntry {\r | |
19 | \r | |
20 | public String getGroupName();\r | |
21 | \r | |
22 | public int getId();\r | |
23 | \r | |
24 | public String getName();\r | |
25 | \r | |
26 | public long getStartTime();\r | |
27 | \r | |
28 | public long getStopTime();\r | |
29 | \r | |
ce62370f FC |
30 | /**\r |
31 | * Get a vector containing all events\r | |
32 | * @deprecated replaced by {@link #getTraceEventsIterator()}\r | |
33 | */\r | |
34 | @Deprecated public <T extends ITimeEvent> Vector<T> getTraceEvents();\r | |
35 | \r | |
36 | /**\r | |
37 | * Get an iterator which returns all events\r | |
38 | */\r | |
39 | public <T extends ITimeEvent> Iterator<T> getTraceEventsIterator();\r | |
40 | \r | |
41 | /**\r | |
42 | * Get an iterator which only returns events that fall within the start time and the stop time.\r | |
43 | * The visible duration is the event duration below which further detail is not discernible.\r | |
44 | * If no such iterator is implemented, provide a basic iterator which returns all events.\r | |
45 | * \r | |
46 | * @param startTime start time in nanoseconds\r | |
47 | * @param stopTime stop time in nanoseconds\r | |
48 | * @param visibleDuration duration of one pixel in nanoseconds\r | |
49 | */\r | |
50 | public <T extends ITimeEvent> Iterator<T> getTraceEventsIterator(long startTime, long stopTime, long visibleDuration);\r | |
51 | \r | |
52 | public <T extends ITimeEvent> void addTraceEvent(T event);\r | |
b0d3496e | 53 | }\r |