|
||||||||||
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.PaltTransition
public class PaltTransition
This class represents a PaltTransition which is taken after the action guarding the palt was taken.
Field Summary |
---|
Fields inherited from class modesteditor.core.stepsimulation.SimulationNode |
---|
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent |
Constructor Summary | |
---|---|
PaltTransition(int line,
int column)
Constructor for setting line and column parameters. |
|
PaltTransition(int line,
int column,
double prob,
java.util.ArrayList<SimulationNode> alt)
Default constructor |
|
PaltTransition(int line,
int column,
double prob,
SimulationNode alt)
Constructor for the PaltNode |
Method Summary | |
---|---|
void |
addAlternative(PaltTransition alt)
Method for adding an alternative in a parallel setting. |
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. |
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()
Abstract method to generate the alphabet of the node. |
java.util.ArrayList<SimulationNode> |
getPAlternatives()
|
double |
getProbability()
|
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 |
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, exceptionThrown, getAlphabet, getColumn, getGuard, getLength, getLine, getName, getParent, getParentList, hide, isActive, isFinished, isHidden, relabelNode, setActive, setParent, stopCalled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaltTransition(int line, int column)
line
- column
- public PaltTransition(int line, int column, double prob, java.util.ArrayList<SimulationNode> alt)
line
- column
- prob
- probability of the transitionalt
- alternatives that can be taken in the transition
(can be more than one in a parallel case).public PaltTransition(int line, int column, double prob, SimulationNode alt)
line
- column
- prob
- probability of the transitionalt
- first alternative that can be taken in the transitionMethod Detail |
---|
public void addAlternative(PaltTransition alt)
prob
- alt
- public void childIsFinished(SimulationNode child)
SimulationNode
childIsFinished
in class SimulationNode
public java.util.List<ParTransition> collectParTransitions()
SimulationNode
collectParTransitions
in class SimulationNode
public java.util.List<SimulationNode> collectTransitions()
SimulationNode
collectTransitions
in class SimulationNode
public void generateAlphabet()
SimulationNode
generateAlphabet
in class SimulationNode
public void notificationOfChildActivity(SimulationNode child)
SimulationNode
notificationOfChildActivity
in class SimulationNode
public void releaseTransitions()
SimulationNode
releaseTransitions
in class SimulationNode
public void takeTransition()
SimulationNode
takeTransition
in class SimulationNode
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.util.ArrayList<SimulationNode> getPAlternatives()
public double getProbability()
public java.lang.String printTransition()
SimulationNode
printTransition
in class SimulationNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |