X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Finternal%2Ftmf%2Fcore%2Fstatesystem%2FTransientState.java;h=1fae851b79620611a11ad2f56d6e8c8b38fc4d94;hb=602c06978f31419b646228e973021e02672fcd11;hp=19ec969c647a8b0d28b0284c34c7a7ef5fb6e3b5;hpb=e96ab5c46df14c54d13b59f8d960f052fc190ac1;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/TransientState.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/TransientState.java index 19ec969c64..1fae851b79 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/TransientState.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/TransientState.java @@ -68,16 +68,18 @@ class TransientState { return latestTime; } - ITmfStateValue getOngoingStateValue(int index) - throws AttributeNotFoundException { - + ITmfStateValue getOngoingStateValue(int index) throws AttributeNotFoundException { checkValidAttribute(index); return ongoingStateInfo.get(index); } + long getOngoingStartTime(int index) throws AttributeNotFoundException { + checkValidAttribute(index); + return ongoingStateStartTimes.get(index); + } + void changeOngoingStateValue(int index, ITmfStateValue newValue) throws AttributeNotFoundException { - checkValidAttribute(index); ongoingStateInfo.set(index, newValue); } @@ -89,17 +91,13 @@ class TransientState { * @param quark * @throws AttributeNotFoundException */ - ITmfStateInterval getOngoingInterval(int quark) - throws AttributeNotFoundException { - + ITmfStateInterval getOngoingInterval(int quark) throws AttributeNotFoundException { checkValidAttribute(quark); return new TmfStateInterval(ongoingStateStartTimes.get(quark), -1, quark, ongoingStateInfo.get(quark)); } - private void checkValidAttribute(int quark) - throws AttributeNotFoundException { - + private void checkValidAttribute(int quark) throws AttributeNotFoundException { if (quark > ongoingStateInfo.size() - 1 || quark < 0) { throw new AttributeNotFoundException(); }