b84f5dd03dbab851f47b2d1395248bb359226a4a
1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 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 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.ui
.views
.controlflow
;
15 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.ITimeGraphEntry
;
16 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.TimeEvent
;
19 * Time Event specific to the control flow view
21 public class ControlFlowEvent
extends TimeEvent
{
23 private final int fStatus
;
29 * The entry to which this time event is assigned
31 * The timestamp of this event
33 * The duration of this event
35 * The status assigned to the event
37 public ControlFlowEvent(ITimeGraphEntry entry
, long time
, long duration
,
39 super(entry
, time
, duration
);
44 * Get this event's status
46 * @return The integer matching this status
48 public int getStatus() {
53 public String
toString() {
54 return "ControlFlowEvent start=" + fTime
+ " end=" + (fTime
+ fDuration
) + " duration=" + fDuration
+ " status=" + fStatus
; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
This page took 0.063829 seconds and 4 git commands to generate.