1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 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 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timeAnalysis
.test
.stub
.model
;
14 import java
.util
.Vector
;
16 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.model
.ITmfTimeAnalysisEntry
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.viewers
.timeAnalysis
.model
.TimeEvent
;
20 public class TraceImpl
implements ITmfTimeAnalysisEntry
{
21 // ========================================================================
23 // ========================================================================
25 private String name
= "traceDefaultName";
26 private long startTime
= 0;
27 private long stopTime
= 1;
28 private String groupName
= "defaultGroupName";
29 private String className
= "defaultClassName";
30 private Vector
<TimeEvent
> traceEvents
= new Vector
<TimeEvent
>();
32 // ========================================================================
34 // ========================================================================
36 public TraceImpl(int id
, String name
, long sTime
, long stopTime
,
37 String groupName
, String className
) {
40 this.startTime
= sTime
;
41 this.stopTime
= stopTime
;
42 this.groupName
= groupName
;
43 this.className
= className
;
46 // ========================================================================
48 // ========================================================================
50 public String
getClassName() {
54 public void setClassName(String className
) {
55 this.className
= className
;
58 public void setGroupName(String groupName
) {
59 this.groupName
= groupName
;
62 public void setId(int id
) {
66 public void setName(String name
) {
70 public void setStartTime(long startTime
) {
71 this.startTime
= startTime
;
74 public void setStopTime(long stopTime
) {
75 this.stopTime
= stopTime
;
78 public String
getGroupName() {
86 public String
getName() {
90 public long getStartTime() {
94 public long getStopTime() {
98 @SuppressWarnings("unchecked")
99 public Vector
<TimeEvent
> getTraceEvents() {
This page took 0.042785 seconds and 5 git commands to generate.