|
||||||||||
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.ParTransition
public class ParTransition
Class representing a set of parallel transitions.
Field Summary |
---|
Fields inherited from class modesteditor.core.stepsimulation.SimulationNode |
---|
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent |
Constructor Summary | |
---|---|
ParTransition(ParNode parent,
java.lang.String letter,
java.util.ArrayList<SimulationNode> trans)
Constructor for the ParTransitions with only one transition per language construct. |
|
ParTransition(SimulationNode parent,
java.lang.String letter)
Default constructor which registers the parent and the representing letter. |
Method Summary | |
---|---|
void |
addBreakTransition(BreakNode trans)
Method adding a break Node to the parallel transition |
void |
addPaltTransition(PaltTransition trans)
Adds a PaltTransition to the list of PaltTransitions |
void |
addPaltTransitionList(java.util.ArrayList<PaltTransition> trans)
Adds a PaltTransition list to the list of PaltTransitions |
void |
addParTransition(ParTransition trans)
Adds a transition to the transition pool. |
void |
addTransition(SimulationNode trans)
Adds a transition to the transition pool. |
void |
childIsFinished(SimulationNode child)
Child notifies the parent that is is finished. |
java.util.List<ParTransition> |
collectParTransitions()
Not needed since the class is already a transition |
java.util.List<SimulationNode> |
collectTransitions()
Not needed since the class is already a transition |
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.lang.String |
getAssignment()
|
java.util.ArrayList<PaltTransition> |
getPaltTransitions()
|
java.lang.String |
getRepresentingLetter()
|
java.util.List<SimulationNode> |
getTransitions()
|
void |
inDoSubtree()
Method that signals that the break in the transition is in a do loop |
boolean |
isEnabled()
Is enabled exactly if not disabled earlier and the transition list is not empty. |
boolean |
isThrowStatement()
|
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 |
relabelBy(java.lang.String newLabel)
Method relabels the transition in case of a relabeling. |
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 |
setAssignment(java.lang.String assignment)
|
void |
setThrowStatement()
Method called to indicate that the transition is a thrown exception and thus always enabled. |
void |
takeTransition()
If the transition is taken, this method ensures that all child transitions are taken parallely. |
void |
willBeCaught()
Method that signals that the thrown exception will be caught later on. |
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 ParTransition(ParNode parent, java.lang.String letter, java.util.ArrayList<SimulationNode> trans)
parent
- letter
- trans
- public ParTransition(SimulationNode parent, java.lang.String letter)
parent
- letter
- Method Detail |
---|
public void addTransition(SimulationNode trans)
trans
- public void addParTransition(ParTransition trans)
trans
- public void addBreakTransition(BreakNode trans)
trans
- public boolean isEnabled()
public void setThrowStatement()
public java.lang.String getRepresentingLetter()
public void relabelBy(java.lang.String newLabel)
newLabel
- public java.util.List<SimulationNode> getTransitions()
public void childIsFinished(SimulationNode child)
SimulationNode
childIsFinished
in class SimulationNode
public java.util.List<SimulationNode> collectTransitions()
collectTransitions
in class SimulationNode
public java.util.List<ParTransition> collectParTransitions()
collectParTransitions
in class SimulationNode
public void generateAlphabet()
SimulationNode
generateAlphabet
in class SimulationNode
public void releaseTransitions()
SimulationNode
releaseTransitions
in class SimulationNode
public void takeTransition()
takeTransition
in class SimulationNode
public void notificationOfChildActivity(SimulationNode child)
SimulationNode
notificationOfChildActivity
in class SimulationNode
public java.lang.String printTransition()
SimulationNode
printTransition
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 void addPaltTransition(PaltTransition trans)
trans
- transition to addpublic void addPaltTransitionList(java.util.ArrayList<PaltTransition> trans)
trans
- transitions to addpublic java.util.ArrayList<PaltTransition> getPaltTransitions()
public java.lang.String getAssignment()
public void setAssignment(java.lang.String assignment)
assignment
- the assignment to setpublic void inDoSubtree()
public void willBeCaught()
public boolean isThrowStatement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |