Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.ui / src / org / eclipse / linuxtools / internal / lttng2 / kernel / ui / views / controlflow / ControlFlowEvent.java
CommitLineData
49ffadb7
PT
1/*******************************************************************************\r
2 * Copyright (c) 2012 Ericsson\r
27f3a03d 3 *\r
49ffadb7
PT
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
27f3a03d 8 *\r
49ffadb7
PT
9 * Contributors:\r
10 * Patrick Tasse - Initial API and implementation\r
11 *******************************************************************************/\r
12\r
13package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.controlflow;\r
14\r
15import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;\r
16import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeEvent;\r
17\r
27f3a03d
AM
18/**\r
19 * Time Event specific to the control flow view\r
20 */\r
49ffadb7
PT
21public class ControlFlowEvent extends TimeEvent {\r
22\r
27f3a03d 23 private final int fStatus;\r
49ffadb7 24\r
27f3a03d
AM
25 /**\r
26 * Constructor\r
27 *\r
28 * @param entry\r
29 * The entry to which this time event is assigned\r
30 * @param time\r
31 * The timestamp of this event\r
32 * @param duration\r
33 * The duration of this event\r
34 * @param status\r
35 * The status assigned to the event\r
36 */\r
37 public ControlFlowEvent(ITimeGraphEntry entry, long time, long duration,\r
38 int status) {\r
49ffadb7
PT
39 super(entry, time, duration);\r
40 fStatus = status;\r
41 }\r
42\r
27f3a03d
AM
43 /**\r
44 * Get this event's status\r
45 *\r
46 * @return The integer matching this status\r
47 */\r
49ffadb7
PT
48 public int getStatus() {\r
49 return fStatus;\r
50 }\r
51}\r
This page took 0.028975 seconds and 5 git commands to generate.