-/*******************************************************************************\r
- * Copyright (c) 2009, 2010 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
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation\r
- *******************************************************************************/\r
-package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.model;\r
-\r
-import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;\r
-import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;\r
-\r
-public class EventImpl implements ITimeEvent {\r
- // ========================================================================\r
- // Data\r
- // ========================================================================\r
- public static enum Type {ERROR, WARNING, TIMEADJUSTMENT, ALARM, EVENT, INFORMATION, UNKNOWN, INFO1, INFO2, INFO3, INFO4, INFO5, INFO6, INFO7, INFO8, INFO9}\r
-\r
- private long time = 0;\r
- private ITimeGraphEntry trace = null;\r
- private Type myType = Type.UNKNOWN; \r
- private long duration; \r
- \r
- // ========================================================================\r
- // Constructor\r
- // ========================================================================\r
- public EventImpl(long time, ITimeGraphEntry trace, Type type) {\r
- this.time = time;\r
- this.trace = trace;\r
- this.myType = type;\r
- }\r
- \r
- // ========================================================================\r
- // Methods\r
- // ========================================================================\r
- public Type getType() {\r
- return myType;\r
- }\r
-\r
- public void setType(Type myType) {\r
- this.myType = myType;\r
- }\r
-\r
- public void setTime(long time) {\r
- this.time = time;\r
- }\r
-\r
- public void setTrace(ITimeGraphEntry trace) {\r
- this.trace = trace;\r
- }\r
- \r
- @Override\r
- public long getTime() {\r
- return time;\r
- }\r
-\r
- @Override\r
- public ITimeGraphEntry getEntry() {\r
- return trace;\r
- }\r
-\r
- /**\r
- * @param duration the duration to set\r
- */\r
- public void setDuration(long duration) {\r
- this.duration = duration;\r
- }\r
-\r
- /**\r
- * @return the duration\r
- */\r
- @Override\r
- public long getDuration() {\r
- return duration;\r
- }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2009, 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:
+ * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.model;
+
+import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;
+import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
+
+/**
+ * ITimeEvent implementation for test purposes.
+ */
+@SuppressWarnings("javadoc")
+public class EventImpl implements ITimeEvent {
+ // ========================================================================
+ // Data
+ // ========================================================================
+ public static enum Type {ERROR, WARNING, TIMEADJUSTMENT, ALARM, EVENT, INFORMATION, UNKNOWN, INFO1, INFO2, INFO3, INFO4, INFO5, INFO6, INFO7, INFO8, INFO9}
+
+ private long time = 0;
+ private ITimeGraphEntry trace = null;
+ private Type myType = Type.UNKNOWN;
+ private long duration;
+
+ // ========================================================================
+ // Constructor
+ // ========================================================================
+ public EventImpl(long time, ITimeGraphEntry trace, Type type) {
+ this.time = time;
+ this.trace = trace;
+ this.myType = type;
+ }
+
+ // ========================================================================
+ // Methods
+ // ========================================================================
+ public Type getType() {
+ return myType;
+ }
+
+ public void setType(Type myType) {
+ this.myType = myType;
+ }
+
+ public void setTime(long time) {
+ this.time = time;
+ }
+
+ public void setTrace(ITimeGraphEntry trace) {
+ this.trace = trace;
+ }
+
+ @Override
+ public long getTime() {
+ return time;
+ }
+
+ @Override
+ public ITimeGraphEntry getEntry() {
+ return trace;
+ }
+
+ /**
+ * @param duration the duration to set
+ */
+ public void setDuration(long duration) {
+ this.duration = duration;
+ }
+
+ /**
+ * @return the duration
+ */
+ @Override
+ public long getDuration() {
+ return duration;
+ }
+
+}