+/*******************************************************************************\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.timeAnalysis.test.stub.model;\r
\r
import java.util.Vector;\r
\r
\r
public class TraceImpl implements ITmfTimeAnalysisEntry {\r
+ // ========================================================================\r
+ // Data\r
+ // ========================================================================\r
private int id = 0;\r
private String name = "traceDefaultName";\r
private long startTime = 0;\r
private long stopTime = 1;\r
private String groupName = "defaultGroupName";\r
private String className = "defaultClassName";\r
- \r
- public String getClassName() {\r
- return className;\r
- }\r
-\r
- public void setClassName(String className) {\r
- this.className = className;\r
- }\r
-\r
private Vector<TimeEvent> traceEvents = new Vector<TimeEvent>();\r
+ \r
+ // ========================================================================\r
+ // Constructor\r
+ // ========================================================================\r
\r
public TraceImpl(int id, String name, long sTime, long stopTime,\r
String groupName, String className) {\r
this.className = className;\r
}\r
\r
+ // ========================================================================\r
+ // Methods\r
+ // ========================================================================\r
+\r
+ public String getClassName() {\r
+ return className;\r
+ }\r
+\r
+ public void setClassName(String className) {\r
+ this.className = className;\r
+ }\r
+\r
public void setGroupName(String groupName) {\r
this.groupName = groupName;\r
}\r