|
||||||||||
| 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.SequentialProcess
public class SequentialProcess
Class representing a sequential process in the step simulation tree. Possibly the root node of the simulation since the whole simulation is a sequential process.
| Field Summary |
|---|
| Fields inherited from class modesteditor.core.stepsimulation.SimulationNode |
|---|
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent |
| Constructor Summary | |
|---|---|
SequentialProcess()
Constructor for the root node which is definitively a sequential process. |
|
SequentialProcess(int line,
int column,
SimulationNode parent)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addRelabeling(java.util.ArrayList<java.lang.String> relabel,
java.util.ArrayList<java.lang.String> labelby)
Method creates a relabeling map for process in case of a relabel statement. |
void |
childIsFinished(SimulationNode child)
If the child is not the last child in the children list, the next one is set active. |
java.util.List<ParTransition> |
collectParTransitions()
Method collects the transitions from the active child. |
java.util.List<SimulationNode> |
collectTransitions()
Method collects the transitions from the active child. |
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 |
exceptionThrown(ThrowNode exc)
Method sets the notification parameter for an abort of the simulation due to an exception thrown if the process is the root. |
void |
extendAlphabet(java.util.ArrayList<java.lang.String> extend)
Method sets the alphabet extension in case of an extend statement. |
void |
generateAlphabet()
Generates the alphabet as a union of the alphabets of the children taking account of relabeling. |
void |
hideAlphabet(java.util.ArrayList<java.lang.String> hide)
Method sets the alphabet to hide in case of a hide statement. |
boolean |
isExceptionAborted()
|
void |
isFinished()
Method called when the node is completely processed |
boolean |
isRoot()
Check if this is the root node. |
boolean |
isStopped()
|
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 the first child in the children list |
void |
setHighlightInfos(java.lang.String processName,
int line,
int column)
|
void |
stopCalled()
Method sets the notification parameter for an abort of the simulation due to a STOP if the process is the root. |
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, getAlphabet, getColumn, getGuard, getLength, getLine, getName, getParent, getParentList, hide, isActive, isHidden, relabelNode, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequentialProcess(int line,
int column,
SimulationNode parent)
line - column - parent - public SequentialProcess()
| Method Detail |
|---|
public boolean isRoot()
public void setActive()
setActive in class SimulationNodepublic void childIsFinished(SimulationNode child)
childIsFinished in class SimulationNodepublic void releaseTransitions()
SimulationNode
releaseTransitions in class SimulationNodepublic 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 void generateAlphabet()
generateAlphabet in class SimulationNodepublic void takeTransition()
SimulationNode
takeTransition in class SimulationNodepublic void notificationOfChildActivity(SimulationNode child)
SimulationNode
notificationOfChildActivity in class SimulationNodepublic java.lang.String printTransition()
SimulationNode
printTransition in class SimulationNodepublic void stopCalled()
stopCalled in class SimulationNodepublic boolean isStopped()
public void exceptionThrown(ThrowNode exc)
exceptionThrown in class SimulationNodepublic boolean isExceptionAborted()
public void extendAlphabet(java.util.ArrayList<java.lang.String> extend)
extend - public void hideAlphabet(java.util.ArrayList<java.lang.String> hide)
hide -
public void addRelabeling(java.util.ArrayList<java.lang.String> relabel,
java.util.ArrayList<java.lang.String> labelby)
relabel - actions to relabellabelby - new labelsfor the actions to relabel
public void setHighlightInfos(java.lang.String processName,
int line,
int column)
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 SimulationNoderesource - where to add the markersdocument - needed in order to calculate the offsets
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||