tmf: Provide a special interval end time return value for views
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 1 May 2012 20:13:46 +0000 (16:13 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 2 May 2012 03:36:53 +0000 (23:36 -0400)
commiteaad89a06157d383e04406b4841b178bc07f9827
tree70546801fe62d2ffe306d81412853b0dda633669
parent6a1074cec70411d3614c5817824c99bb1c1dbda3
tmf: Provide a special interval end time return value for views

The complete state model in TMF is based on the fact that states
end *before* the next state is started. This ensures we cannot
have 2 active states for a given attribute at a given timestamp.

However, this is not ideal for the viewers, because it leaves
gaps between intervals if we use those timestamps as-is. After
much head-banging, the simplest solution that was found was to
add a method in the ITmfStateInterval interface that viewers can
use to get their own version of the interval's end time.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/interval/ITmfStateInterval.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/interval/TmfStateInterval.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/backend/historytree/HTInterval.java
This page took 0.024971 seconds and 5 git commands to generate.