Commit | Line | Data |
---|---|---|
be222f56 PT |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009, 2012 Ericsson | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: | |
10 | * Alvaro Sanchez-Leon - Initial API and implementation | |
11 | * Patrick Tasse - Refactoring | |
12 | *******************************************************************************/ | |
13 | ||
14 | package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model; | |
15 | ||
16 | /** | |
17 | * Interface for time events, for use in the timegraph view | |
18 | * | |
19 | * @version 1.0 | |
20 | * @author Alvaro Sanchez-Leon | |
21 | * @author Patrick Tasse | |
22 | */ | |
23 | public interface ITimeEvent { | |
24 | ||
25 | /** | |
26 | * Get the entry matching this time event. | |
27 | * | |
28 | * @return The time graph entry | |
29 | */ | |
30 | public ITimeGraphEntry getEntry(); | |
31 | ||
32 | /** | |
33 | * Get the timestamp of this event. | |
34 | * | |
35 | * @return The event's time | |
36 | */ | |
37 | public long getTime(); | |
38 | ||
39 | /** | |
40 | * @return | |
41 | * <list> | |
42 | * <li>-1: Considers duration to be from current event till the next</li> | |
43 | * <li>0: Duration is not relevant e.g. a Burst / no state associated</li> | |
44 | * <li>>0: Valid duration value specified</li> | |
45 | * </list> | |
46 | * <p> | |
47 | */ | |
48 | public long getDuration(); | |
49 | ||
b0d3496e | 50 | } |