|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodesteditor.core.stepsimulation.SimulationNode
modesteditor.core.stepsimulation.ParNode
public class ParNode
Class representing a par statement in the step simulation tree.
| Field Summary |
|---|
| Fields inherited from class modesteditor.core.stepsimulation.SimulationNode |
|---|
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent |
| Constructor Summary | |
|---|---|
ParNode(int line,
int column,
SimulationNode parent)
Default constructor |
|
| Method Summary | |
|---|---|
java.util.ArrayList<PaltTransition> |
buildPaltTransitions(java.util.ArrayList<ParTransition> trans)
Method building the parallel PaltTransitions for the ParTransitions that have probabilistic alternatives. |
void |
childIsFinished(SimulationNode child)
Method removes the finished child from the list of active children. |
java.util.List<ParTransition> |
collectParTransitions()
Method first collects the ParTransitions from it's active children. |
java.util.List<SimulationNode> |
collectTransitions()
Method returns the collected parallel transitions from collectParTransitions. |
void |
generateAlphabet()
Abstract method to generate the alphabet of the node. |
java.util.ArrayList<SimulationNode> |
getParentList()
|
void |
isFinished()
Method called when the node is completely processed |
void |
notificationOfChildActivity(SimulationNode child)
Method which is called from the child in order to notify the parent that it is active. |
void |
releaseTransitions()
Method shall release the active transitions of the node an it's children in case a do loop is broken or a STOP occured ... |
void |
setActive()
Sets all children active and register them in the activeChildren List. |
void |
takeTransition()
Abstract method for taking a Transition, the node will care for itself how it organizes the transition. |
| Methods inherited from class modesteditor.core.stepsimulation.SimulationNode |
|---|
addChild, breakTransitionTaken, createSimHighlighting, exceptionThrown, getAlphabet, getColumn, getGuard, getLength, getLine, getName, getParent, hide, isActive, isHidden, printTransition, relabelNode, setParent, stopCalled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParNode(int line,
int column,
SimulationNode parent)
line - column - parent - | Method Detail |
|---|
public void setActive()
setActive in class SimulationNodepublic void childIsFinished(SimulationNode child)
childIsFinished in class SimulationNodechild - that is finishedpublic void isFinished()
SimulationNode
isFinished in class SimulationNodepublic java.util.List<SimulationNode> collectTransitions()
collectTransitions in class SimulationNodepublic java.util.List<ParTransition> collectParTransitions()
collectParTransitions in class SimulationNodepublic java.util.ArrayList<PaltTransition> buildPaltTransitions(java.util.ArrayList<ParTransition> trans)
trans - List of the transitions with the p-alternatives.
public void generateAlphabet()
SimulationNode
generateAlphabet in class SimulationNodepublic void releaseTransitions()
SimulationNode
releaseTransitions in class SimulationNodepublic void takeTransition()
SimulationNode
takeTransition in class SimulationNodepublic void notificationOfChildActivity(SimulationNode child)
SimulationNode
notificationOfChildActivity in class SimulationNodepublic java.util.ArrayList<SimulationNode> getParentList()
getParentList in class SimulationNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||