Bug 378402: Implementation of ControlFlow view and Resources view for
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.ui / src / org / eclipse / linuxtools / internal / lttng2 / kernel / ui / views / resources / ResourcesEvent.java
1 /*******************************************************************************
2 * Copyright (c) 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 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources;
14
15 import org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources.ResourcesEntry.Type;
16 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeEvent;
17
18 public class ResourcesEvent extends TimeEvent {
19
20 private Type fType;
21 private int fValue;
22
23 public ResourcesEvent(ResourcesEntry entry, long time, long duration, int value) {
24 super(entry, time, duration);
25 fType = entry.getType();
26 fValue = value;
27 }
28
29 public ResourcesEvent(ResourcesEntry entry, long time, long duration) {
30 super(entry, time, duration);
31 fType = Type.NULL;
32 }
33
34 public int getValue() {
35 return fValue;
36 }
37
38 public Type getType() {
39 return fType;
40 }
41 }
This page took 0.035202 seconds and 6 git commands to generate.