[291390] Fix for TmfExperiment and TmfDataRequest.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng / src / org / eclipse / linuxtools / lttng / event / LttngEventReference.java
CommitLineData
5d10d135
ASL
1/*******************************************************************************
2 * Copyright (c) 2009 Ericsson
3 *
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
8 *
9 * Contributors:
10 * William Bourque (wbourque@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.lttng.event;
14
15import org.eclipse.linuxtools.tmf.event.*;
16
17/**
146a887c
FC
18 * <b><u>LttngEventReference</u></b>
19 * <p>
5d10d135 20 * Lttng specific implementation of the TmfEventReference
146a887c
FC
21 * <p>
22 * The Lttng implementation is the same as the basic Tmf Implementation but allow construction with a String
5d10d135
ASL
23 */
24public class LttngEventReference extends TmfEventReference {
25
146a887c 26 private String tracepath = "";
5d10d135
ASL
27
28 /**
146a887c 29 * Constructor with parameters
5d10d135 30 *
146a887c 31 * @param referencePath A string that will be our reference
5d10d135 32 */
146a887c 33 public LttngEventReference(String newTracefilePath, String newTracePath) {
5d10d135
ASL
34 super(newTracefilePath);
35
146a887c
FC
36 // Save the path of the trace
37 tracepath = newTracePath;
5d10d135
ASL
38 }
39
3fbd810a
FC
40 /**
41 * Copy Constructor
42 *
43 * @param oldReference Reference to copy
44 */
45 public LttngEventReference(LttngEventReference oldReference) {
46 this( oldReference.getValue().toString(), oldReference.getTracepath() );
47 }
48
5d10d135
ASL
49
50 public String getTracepath() {
146a887c 51 return tracepath;
5d10d135 52 }
3fbd810a 53
146a887c
FC
54 public void setTracepath(String tracepath) {
55 this.tracepath = tracepath;
5d10d135
ASL
56 }
57
3fbd810a
FC
58
59 @Override
60 public String toString() {
61 return tracepath + " " + this.getValue();
62 }
63
5d10d135 64}
This page took 0.025778 seconds and 5 git commands to generate.