March 24, 2010
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / widgetStubs / org / eclipse / linuxtools / tmf / ui / widgets / timeAnalysis / test / stub / model / TraceImpl.java
1 package org.eclipse.linuxtools.tmf.ui.widgets.timeAnalysis.test.stub.model;
2
3 import java.util.Vector;
4
5 import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.model.ITmfTimeAnalysisEntry;
6 import org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.model.TimeEvent;
7
8
9 public class TraceImpl implements ITmfTimeAnalysisEntry {
10 private int id = 0;
11 private String name = "traceDefaultName";
12 private long startTime = 0;
13 private long stopTime = 1;
14 private String groupName = "defaultGroupName";
15 private String className = "defaultClassName";
16
17 public String getClassName() {
18 return className;
19 }
20
21 public void setClassName(String className) {
22 this.className = className;
23 }
24
25 private Vector<TimeEvent> traceEvents = new Vector<TimeEvent>();
26
27 public TraceImpl(int id, String name, long sTime, long stopTime,
28 String groupName, String className) {
29 this.id = id;
30 this.name = name;
31 this.startTime = sTime;
32 this.stopTime = stopTime;
33 this.groupName = groupName;
34 this.className = className;
35 }
36
37 public void setGroupName(String groupName) {
38 this.groupName = groupName;
39 }
40
41 public void setId(int id) {
42 this.id = id;
43 }
44
45 public void setName(String name) {
46 this.name = name;
47 }
48
49 public void setStartTime(long startTime) {
50 this.startTime = startTime;
51 }
52
53 public void setStopTime(long stopTime) {
54 this.stopTime = stopTime;
55 }
56
57 public String getGroupName() {
58 return groupName;
59 }
60
61 public int getId() {
62 return id;
63 }
64
65 public String getName() {
66 return name;
67 }
68
69 public long getStartTime() {
70 return startTime;
71 }
72
73 public long getStopTime() {
74 return stopTime;
75 }
76
77 @SuppressWarnings("unchecked")
78 public Vector<TimeEvent> getTraceEvents() {
79 return traceEvents;
80 }
81
82 }
This page took 0.032482 seconds and 5 git commands to generate.