a42b2a42117d56304283f5efb95cc846602d251e
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / widgetStubs / org / eclipse / linuxtools / tmf / ui / widgets / timeAnalysis / test / stub / model / EventImpl.java
1 package org.eclipse.linuxtools.tmf.ui.widgets.timeAnalysis.test.stub.model;
2
3 import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.model.ITmfTimeAnalysisEntry;
4 import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.model.TimeEvent;
5
6 public class EventImpl extends TimeEvent {
7 public static enum Type {ERROR, WARNING, TIMEADJUSTMENT, ALARM, EVENT, INFORMATION, UNKNOWN, INFO1, INFO2, INFO3, INFO4, INFO5, INFO6, INFO7, INFO8, INFO9}
8
9 private long time = 0;
10 private ITmfTimeAnalysisEntry trace = null;
11 private Type myType = Type.UNKNOWN;
12 private long duration;
13
14 public EventImpl(long time, ITmfTimeAnalysisEntry trace, Type type) {
15 this.time = time;
16 this.trace = trace;
17 this.myType = type;
18 this.setDuration(super.getDuration());
19 }
20
21 public Type getType() {
22 return myType;
23 }
24
25 public void setType(Type myType) {
26 this.myType = myType;
27 }
28
29 public void setTime(long time) {
30 this.time = time;
31 }
32
33 public void setTrace(ITmfTimeAnalysisEntry trace) {
34 this.trace = trace;
35 }
36
37 @Override
38 public long getTime() {
39 return time;
40 }
41
42 @Override
43 public ITmfTimeAnalysisEntry getEntry() {
44 return trace;
45 }
46
47 /**
48 * @param duration the duration to set
49 */
50 public void setDuration(long duration) {
51 this.duration = duration;
52 }
53
54 /**
55 * @return the duration
56 */
57 public long getDuration() {
58 return duration;
59 }
60
61 }
This page took 0.031479 seconds and 4 git commands to generate.