tmf.core: Introduce TmfTimestamp factory methods
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui.tests / src / org / eclipse / tracecompass / tmf / ui / tests / views / uml2sd / loader / Uml2SDTestTimestamp.java
index 04c060d7a1bc51f8dddbbe3648ef614fdb65685f..c9fa64b294d94055402224a8a09e51375fb6af50 100644 (file)
@@ -20,10 +20,14 @@ import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp;
  *
  */
 public class Uml2SDTestTimestamp extends TmfTimestamp {
+
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
 
+    private final long fValue;
+    private final int fScale;
+
     // ------------------------------------------------------------------------
     // Constructors
     // ------------------------------------------------------------------------
@@ -33,11 +37,22 @@ public class Uml2SDTestTimestamp extends TmfTimestamp {
      * @param value time as long value (nanoseconds)
      */
     public Uml2SDTestTimestamp(long value) {
-        super(value, IUml2SDTestConstants.TIME_SCALE);
+        fValue = value;
+        fScale = IUml2SDTestConstants.TIME_SCALE;
     }
 
     // ------------------------------------------------------------------------
     // Operations
     // ------------------------------------------------------------------------
 
+    @Override
+    public long getValue() {
+        return fValue;
+    }
+
+    @Override
+    public int getScale() {
+        return fScale;
+    }
+
 }
This page took 0.042759 seconds and 5 git commands to generate.