Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.kernel.ui / src / org / eclipse / linuxtools / internal / lttng2 / kernel / ui / views / resources / ResourcesEvent.java
index a2714f71a3f3f50464ff8f5acac0a7841736cc26..ab7361d1e4d6659e9299860b4039e310c9055c68 100644 (file)
@@ -1,79 +1,79 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Ericsson\r
- *\r
- * All rights reserved. This program and the accompanying materials are\r
- * made available under the terms of the Eclipse Public License v1.0 which\r
- * accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *   Patrick Tasse - Initial API and implementation\r
- *******************************************************************************/\r
-\r
-package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources;\r
-\r
-import org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources.ResourcesEntry.Type;\r
-import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeEvent;\r
-\r
-/**\r
- * Time Event implementation specific to the Resource View\r
- *\r
- * @author Patrick Tasse\r
- */\r
-public class ResourcesEvent extends TimeEvent {\r
-\r
-    private final Type fType;\r
-    private int fValue;\r
-\r
-    /**\r
-     * Standard constructor\r
-     *\r
-     * @param entry\r
-     *            The entry that this event affects\r
-     * @param time\r
-     *            The start time of the event\r
-     * @param duration\r
-     *            The duration of the event\r
-     * @param value\r
-     *            The value type associated to this event\r
-     */\r
-    public ResourcesEvent(ResourcesEntry entry, long time, long duration,\r
-            int value) {\r
-        super(entry, time, duration);\r
-        fType = entry.getType();\r
-        fValue = value;\r
-    }\r
-\r
-    /**\r
-     * Base constructor, with no value assigned\r
-     *\r
-     * @param entry\r
-     *            The entry that this event affects\r
-     * @param time\r
-     *            The start time of the event\r
-     * @param duration\r
-     *            The duration of the event\r
-     */\r
-    public ResourcesEvent(ResourcesEntry entry, long time, long duration) {\r
-        super(entry, time, duration);\r
-        fType = Type.NULL;\r
-    }\r
-\r
-    /**\r
-     * Retrieve the value associated with this event\r
-     *\r
-     * @return The integer value\r
-     */\r
-    public int getValue() {\r
-        return fValue;\r
-    }\r
-\r
-    /**\r
-     * Retrieve the type of this entry. Uses the ResourcesEntry.Type interface.\r
-     *\r
-     * @return The entry type\r
-     */\r
-    public Type getType() {\r
-        return fType;\r
-    }\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *   Patrick Tasse - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources;
+
+import org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources.ResourcesEntry.Type;
+import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeEvent;
+
+/**
+ * Time Event implementation specific to the Resource View
+ *
+ * @author Patrick Tasse
+ */
+public class ResourcesEvent extends TimeEvent {
+
+    private final Type fType;
+    private int fValue;
+
+    /**
+     * Standard constructor
+     *
+     * @param entry
+     *            The entry that this event affects
+     * @param time
+     *            The start time of the event
+     * @param duration
+     *            The duration of the event
+     * @param value
+     *            The value type associated to this event
+     */
+    public ResourcesEvent(ResourcesEntry entry, long time, long duration,
+            int value) {
+        super(entry, time, duration);
+        fType = entry.getType();
+        fValue = value;
+    }
+
+    /**
+     * Base constructor, with no value assigned
+     *
+     * @param entry
+     *            The entry that this event affects
+     * @param time
+     *            The start time of the event
+     * @param duration
+     *            The duration of the event
+     */
+    public ResourcesEvent(ResourcesEntry entry, long time, long duration) {
+        super(entry, time, duration);
+        fType = Type.NULL;
+    }
+
+    /**
+     * Retrieve the value associated with this event
+     *
+     * @return The integer value
+     */
+    public int getValue() {
+        return fValue;
+    }
+
+    /**
+     * Retrieve the type of this entry. Uses the ResourcesEntry.Type interface.
+     *
+     * @return The entry type
+     */
+    public Type getType() {
+        return fType;
+    }
+}
This page took 0.028211 seconds and 5 git commands to generate.