|
||||||||||
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.Alternative
public class Alternative
Class representing an alternative 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 | |
---|---|
Alternative(int line,
int column,
SimulationNode parent)
Default constructor |
|
Alternative(int line,
int column,
SimulationNode parent,
double weight)
Constructor for an alternative of a palt node including the weight. |
Method Summary | |
---|---|
void |
childIsFinished(SimulationNode child)
Child notifies the parent that is is finished. |
java.util.List<ParTransition> |
collectParTransitions()
Abstract method for generating the list of parallel transitions of the node. |
java.util.List<SimulationNode> |
collectTransitions()
Abstract method for generating the list of possible transitions. |
void |
generateAlphabet()
Generates the alphabet as the union of all children, which should be only one child in fact. |
java.lang.String |
getAssignment()
|
double |
getWeight()
|
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. |
java.lang.String |
printTransition()
Method that prints the SimulationNode TODO better incoporation in Eclipse |
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()
|
void |
setAssignment(java.lang.String assignment)
|
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, getParentList, hide, isActive, isHidden, relabelNode, setParent, stopCalled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Alternative(int line, int column, SimulationNode parent)
line
- column
- parent
- public Alternative(int line, int column, SimulationNode parent, double weight)
line
- column
- parent
- weight
- Method Detail |
---|
public void childIsFinished(SimulationNode child)
SimulationNode
childIsFinished
in class SimulationNode
public void isFinished()
SimulationNode
isFinished
in class SimulationNode
public java.util.List<SimulationNode> collectTransitions()
SimulationNode
collectTransitions
in class SimulationNode
public java.util.List<ParTransition> collectParTransitions()
SimulationNode
collectParTransitions
in class SimulationNode
public void generateAlphabet()
generateAlphabet
in class SimulationNode
public void releaseTransitions()
SimulationNode
releaseTransitions
in class SimulationNode
public void takeTransition()
SimulationNode
takeTransition
in class SimulationNode
public void setActive()
setActive
in class SimulationNode
public void notificationOfChildActivity(SimulationNode child)
SimulationNode
notificationOfChildActivity
in class SimulationNode
public double getWeight()
public java.lang.String printTransition()
SimulationNode
printTransition
in class SimulationNode
public void setAssignment(java.lang.String assignment)
assignment
- the assignment to setpublic java.lang.String getAssignment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |