ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / model / ITimeEvent.java
CommitLineData
be222f56 1/*******************************************************************************
57a2a5ca 2 * Copyright (c) 2009, 2013 Ericsson
be222f56
PT
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
14package 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 */
23public interface ITimeEvent {
24
25 /**
26 * Get the entry matching this time event.
27 *
28 * @return The time graph entry
29 */
57a2a5ca 30 ITimeGraphEntry getEntry();
be222f56
PT
31
32 /**
33 * Get the timestamp of this event.
34 *
35 * @return The event's time
36 */
57a2a5ca 37 long getTime();
be222f56
PT
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 */
57a2a5ca 48 long getDuration();
be222f56 49
b0d3496e 50}
This page took 0.060163 seconds and 5 git commands to generate.