tmf: Add a method to query an ongoing state's start time
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / statesystem / ITmfStateSystem.java
index 6891dcdb37d6b7a3105f09df16e6c0cc5b4b2220..d432643e3cb4bd403f0a335c024150bf9bc8eb74 100644 (file)
@@ -220,6 +220,19 @@ public interface ITmfStateSystem {
     public ITmfStateValue queryOngoingState(int attributeQuark)
             throws AttributeNotFoundException;
 
+    /**
+     * Get the start time of the current ongoing state, for the specified
+     * attribute.
+     *
+     * @param attribute
+     *            Quark of the attribute
+     * @return The current start time of the ongoing state
+     * @throws AttributeNotFoundException
+     *             If the attribute is invalid
+     */
+    public long getOngoingStartTime(int attribute)
+            throws AttributeNotFoundException;
+
     /**
      * Load the complete state information at time 't' into the returned List.
      * You can then get the intervals for single attributes by using
This page took 0.02414 seconds and 5 git commands to generate.