public class CurrentStateCollector extends Object implements PlanItemVisitor
<p>A Visitor implementation used to extract the current display states from the state model.</p>
<p>Handling of states within completed stages: Completed sub-stages and occurred milestones are shown. Sub-stages and milestones in any other state will not be collected.</p>
<p>Handling of states within terminated stages: no sub-items (stages or milestones) will be collected.</p>
Constructor and Description |
---|
CurrentStateCollector(EngineListeners engineListeners) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(PlanItem planItem,
TransitionData transitionData)
Called once after all structure objects have been visited.
|
boolean |
enter(PlanItem planItem,
TransitionData transitionData)
Called for each plan item just before the plan item is visited.
|
void |
exit(PlanItem planItem,
TransitionData transitionData)
Called for each plan item just after the plan item has been visited.
|
ArrayList<CurrentState> |
getStates() |
void |
init(PlanItem planItem,
TransitionData transitionData)
Called once before any other calls in this interface.
|
public CurrentStateCollector(EngineListeners engineListeners)
public void init(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called once before any other calls in this interface.
init
in interface PlanItemVisitor
planItem
- the case plan model (the root).public boolean enter(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called for each plan item just before the plan item is visited.
enter
in interface PlanItemVisitor
planItem
- the plan item of interest.transitionData
- optional evaluation context.true
to recurse into a stage’s children.public void exit(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called for each plan item just after the plan item has been visited.
exit
in interface PlanItemVisitor
planItem
- the plan item of interest.public void cleanup(PlanItem planItem, TransitionData transitionData)
PlanItemVisitor
Called once after all structure objects have been visited.
cleanup
in interface PlanItemVisitor
planItem
- the case plan item (the root).public ArrayList<CurrentState> getStates()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.