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