|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodesteditor.core.stepsimulation.SimulationNode
public abstract class SimulationNode
This is a generic node in the stepsimulation tree.
Field Summary | |
---|---|
protected java.util.ArrayList<java.lang.String> |
alphabet
|
protected java.util.ArrayList<SimulationNode> |
children
|
protected int |
column
|
protected java.lang.String |
guard
|
protected boolean |
hidden
|
protected boolean |
isActive
|
protected int |
length
|
protected int |
line
|
protected java.lang.String |
newLabel
|
protected SimulationNode |
parent
|
Constructor Summary | |
---|---|
SimulationNode()
|
|
SimulationNode(int line,
int column)
Constructor setting the line and column of the node. |
Method Summary | |
---|---|
void |
addChild(SimulationNode child)
Method which adds a child to the children list |
void |
breakTransitionTaken()
Method that propagates the break action until it reaches a do. |
abstract void |
childIsFinished(SimulationNode child)
Child notifies the parent that is is finished. |
abstract java.util.List<ParTransition> |
collectParTransitions()
Abstract method for generating the list of parallel transitions of the node. |
abstract 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 |
exceptionThrown(ThrowNode exc)
Method calling repeatedly the same method in the parent until it reaches a TryNode or the root. |
abstract void |
generateAlphabet()
Abstract method to generate the alphabet of the node. |
java.util.ArrayList<java.lang.String> |
getAlphabet()
|
int |
getColumn()
|
java.lang.String |
getGuard()
|
int |
getLength()
|
int |
getLine()
|
java.lang.String |
getName()
|
SimulationNode |
getParent()
|
java.util.ArrayList<SimulationNode> |
getParentList()
|
void |
hide()
Method hides the action for printing. |
boolean |
isActive()
|
void |
isFinished()
Method called when the node is completely processed |
boolean |
isHidden()
|
abstract 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 |
relabelNode(java.lang.String newLabel)
|
abstract 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 |
setParent(SimulationNode parent)
|
void |
stopCalled()
Method calling repeatedly the same method in the parent until it reaches the root. |
abstract void |
takeTransition()
Abstract method for taking a Transition, the node will care for itself how it organizes the transition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SimulationNode parent
protected boolean isActive
protected java.util.ArrayList<java.lang.String> alphabet
protected java.util.ArrayList<SimulationNode> children
protected int line
protected int column
protected int length
protected java.lang.String guard
protected boolean hidden
protected java.lang.String newLabel
Constructor Detail |
---|
public SimulationNode()
public SimulationNode(int line, int column)
line
- column
- Method Detail |
---|
public abstract void takeTransition()
node
- public abstract void generateAlphabet()
public void isFinished()
public abstract java.util.List<SimulationNode> collectTransitions()
public abstract java.util.List<ParTransition> collectParTransitions()
public void addChild(SimulationNode child)
child
- public abstract void childIsFinished(SimulationNode child)
child
- public void breakTransitionTaken()
public abstract void releaseTransitions()
public abstract void notificationOfChildActivity(SimulationNode child)
child
- public java.lang.String printTransition()
public void stopCalled()
public void exceptionThrown(ThrowNode exc)
exc
- public java.util.ArrayList<SimulationNode> getParentList()
public java.util.ArrayList<org.eclipse.core.resources.IMarker> createSimHighlighting(org.eclipse.core.resources.IResource resource, org.eclipse.jface.text.IDocument document, boolean isPalt)
resource
- where to add the markersdocument
- needed in order to calculate the offsets
public void relabelNode(java.lang.String newLabel)
public boolean isActive()
public void setActive()
public SimulationNode getParent()
public void setParent(SimulationNode parent)
public java.util.ArrayList<java.lang.String> getAlphabet()
public int getColumn()
public int getLength()
public int getLine()
public boolean isHidden()
public void hide()
public java.lang.String getName()
public java.lang.String getGuard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |