1 /*******************************************************************************
2 * Copyright (c) 2012 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
.resources
;
15 import org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.ui
.views
.resources
.ResourcesEntry
.Type
;
16 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.TimeEvent
;
19 * Time Event implementation specific to the Resource View
21 * @author Patrick Tasse
23 public class ResourcesEvent
extends TimeEvent
{
25 private final Type fType
;
29 * Standard constructor
32 * The entry that this event affects
34 * The start time of the event
36 * The duration of the event
38 * The value type associated to this event
40 public ResourcesEvent(ResourcesEntry entry
, long time
, long duration
,
42 super(entry
, time
, duration
);
43 fType
= entry
.getType();
48 * Base constructor, with no value assigned
51 * The entry that this event affects
53 * The start time of the event
55 * The duration of the event
57 public ResourcesEvent(ResourcesEntry entry
, long time
, long duration
) {
58 super(entry
, time
, duration
);
63 * Retrieve the value associated with this event
65 * @return The integer value
67 public int getValue() {
72 * Retrieve the type of this entry. Uses the ResourcesEntry.Type interface.
74 * @return The entry type
76 public Type
getType() {
This page took 0.044155 seconds and 5 git commands to generate.