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
CommitLineData
49ffadb7
PT
1/*******************************************************************************\r
2 * Copyright (c) 2012 Ericsson\r
3 * \r
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
8 * \r
9 * Contributors:\r
10 * Patrick Tasse - Initial API and implementation\r
11 *******************************************************************************/\r
12\r
13package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources;\r
14\r
15import org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources.ResourcesEntry.Type;\r
16import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeEvent;\r
17\r
18public class ResourcesEvent extends TimeEvent {\r
19\r
20 private Type fType;\r
21 private int fValue;\r
22\r
23 public ResourcesEvent(ResourcesEntry entry, long time, long duration, int value) {\r
24 super(entry, time, duration);\r
25 fType = entry.getType();\r
26 fValue = value;\r
27 }\r
28\r
29 public ResourcesEvent(ResourcesEntry entry, long time, long duration) {\r
30 super(entry, time, duration);\r
31 fType = Type.NULL;\r
32 }\r
33\r
34 public int getValue() {\r
35 return fValue;\r
36 }\r
37\r
38 public Type getType() {\r
39 return fType;\r
40 }\r
41}\r
This page took 0.02622 seconds and 5 git commands to generate.