|
||||||||||
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.AltNode
modesteditor.core.stepsimulation.PaltNode
public class PaltNode
Class representing a palt statement.
Field Summary |
---|
Fields inherited from class modesteditor.core.stepsimulation.AltNode |
---|
activeChild |
Fields inherited from class modesteditor.core.stepsimulation.SimulationNode |
---|
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent |
Constructor Summary | |
---|---|
PaltNode(int line,
int column,
SimulationNode parent)
Default constructor |
Method Summary | |
---|---|
void |
addChild(SimulationNode child)
Method adds a child to the list if it is an Alternative. |
void |
childIsFinished(SimulationNode child)
Method activates the alternatives if the actionGuard has been taken or finishes the PaltNode if an Alternative is done. |
java.util.List<ParTransition> |
collectParTransitions()
If a child is active the ParTransitions from this child are collected. |
java.util.List<SimulationNode> |
collectTransitions()
Method collects all children if not a child is already active |
java.util.ArrayList<org.eclipse.core.resources.IMarker> |
createSimHighlighting(org.eclipse.core.resources.IResource resource,
org.eclipse.jface.text.IDocument document,
boolean isPalt)
Method that creates the markers that do the highlighting in the step simulation. |
void |
generateAlphabet()
Method generates the alphabet from the actionGuard and all the alternatives. |
java.lang.String |
getName()
|
java.util.ArrayList<PaltTransition> |
getPaltTransitions()
Method for generating the list of PaltTransition of the node |
double |
getWeightSum()
|
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()
Sets the node active and all children in the children list |
void |
takeTransition()
No transition to be taken, only child can be consumed. |
Methods inherited from class modesteditor.core.stepsimulation.AltNode |
---|
getParentList, isFinished |
Methods inherited from class modesteditor.core.stepsimulation.SimulationNode |
---|
breakTransitionTaken, exceptionThrown, getAlphabet, getColumn, getGuard, getLength, getLine, getParent, 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 PaltNode(int line, int column, SimulationNode parent)
line
- column
- parent
- Method Detail |
---|
public void addChild(SimulationNode child)
addChild
in class SimulationNode
child
- to addpublic void setActive()
AltNode
setActive
in class AltNode
public void generateAlphabet()
generateAlphabet
in class AltNode
public java.util.List<SimulationNode> collectTransitions()
AltNode
collectTransitions
in class AltNode
public java.util.List<ParTransition> collectParTransitions()
collectParTransitions
in class AltNode
public void releaseTransitions()
SimulationNode
releaseTransitions
in class AltNode
public void childIsFinished(SimulationNode child)
childIsFinished
in class AltNode
child
- that is finishedpublic java.lang.String printTransition()
SimulationNode
printTransition
in class SimulationNode
public double getWeightSum()
public java.util.ArrayList<PaltTransition> getPaltTransitions()
public void notificationOfChildActivity(SimulationNode child)
SimulationNode
notificationOfChildActivity
in class AltNode
public void takeTransition()
AltNode
takeTransition
in class AltNode
public java.util.ArrayList<org.eclipse.core.resources.IMarker> createSimHighlighting(org.eclipse.core.resources.IResource resource, org.eclipse.jface.text.IDocument document, boolean isPalt)
SimulationNode
createSimHighlighting
in class SimulationNode
resource
- where to add the markersdocument
- needed in order to calculate the offsets
public java.lang.String getName()
getName
in class SimulationNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |