Monster fix: TMF model update + corresponding LTTng adaptations + JUnits
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / event / TmfTraceEvent.java
index 90e4ef956999e8cb9813e5e598a01b34d9fce3c1..f030752f892a2008831bf818328051dda8bf07da 100644 (file)
@@ -30,50 +30,61 @@ public class TmfTraceEvent extends TmfEvent {
 
     private final String fSourcePath;
     private final String fFileName;
-    private final int fLineNumber;
+    private final int    fLineNumber;
 
     // ========================================================================
     // Constructors
     // ========================================================================
 
        /**
-        * The constructor.
-        * 
-        * @param timestamp
+        * @param originalTS
+        * @param effectiveTS
         * @param source
         * @param type
         * @param content
         * @param reference
+        * @param path
+        * @param file
+        * @param line
         */
        public TmfTraceEvent(TmfTimestamp originalTS, TmfTimestamp effectiveTS, TmfEventSource source,
-                       TmfEventType type, TmfEventContent content, TmfEventReference reference,
-                       String path, String file, int line)
+                       TmfEventType type, TmfEventReference reference, String path, String file, int line)
        {
-               super(originalTS, effectiveTS, source, type,content, reference);
+               super(originalTS, effectiveTS, source, type, reference);
                fSourcePath = path;
-               fFileName = file;
+               fFileName   = file;
                fLineNumber = line;
        }
 
        /**
-        * The constructor.
-        * 
         * @param timestamp
         * @param source
         * @param type
         * @param content
         * @param reference
+        * @param path
+        * @param file
+        * @param line
         */
        public TmfTraceEvent(TmfTimestamp timestamp, TmfEventSource source, TmfEventType type,
-                       TmfEventContent content, TmfEventReference reference,
-                       String path, String file, int line)
+                       TmfEventReference reference, String path, String file, int line)
        {
-               super(timestamp, source, type,content, reference);
+               super(timestamp, source, type, reference);
                fSourcePath = path;
-               fFileName = file;
+               fFileName   = file;
                fLineNumber = line;
        }
 
+       /**
+        * @param other
+        */
+       public TmfTraceEvent(TmfTraceEvent other) {
+               super(other);
+               fSourcePath = other.fSourcePath;
+               fFileName   = other.fFileName;
+               fLineNumber = other.fLineNumber;
+       }
+
     // ========================================================================
     // Accessors
     // ========================================================================
@@ -99,4 +110,20 @@ public class TmfTraceEvent extends TmfEvent {
         return fLineNumber;
     }
 
+    // ========================================================================
+    // Operators
+    // ========================================================================
+
+    // TODO: Deep copy
+    @Override
+    public TmfTraceEvent clone() {
+       return new TmfTraceEvent(this);
+    }
+
+    // TODO: Proper format
+    @Override
+    public String toString() {
+       return null;
+    }
+
 }
This page took 0.02446 seconds and 5 git commands to generate.