|
||||||||||
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.TryNode
public class TryNode
Class representing a try block with it's catch statements.
Field Summary |
---|
Fields inherited from class modesteditor.core.stepsimulation.SimulationNode |
---|
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent |
Constructor Summary | |
---|---|
TryNode(int line,
int column)
|
|
TryNode(int line,
int column,
SimulationNode parent)
|
|
TryNode(int line,
int column,
SimulationNode parent,
java.lang.String guard)
Default constructor |
Method Summary | |
---|---|
void |
addCatch(SimulationNode ca,
java.lang.String exc)
|
void |
childIsFinished(SimulationNode child)
Child notifies the parent that is is finished. |
java.util.List<ParTransition> |
collectParTransitions()
Method collects the ParTransitions of the active child. |
java.util.List<SimulationNode> |
collectTransitions()
Abstract method for generating the list of possible transitions. |
void |
exceptionThrown(ThrowNode exc)
Method calling repeatedly the same method in the parent until it reaches a TryNode or the root. |
void |
generateAlphabet()
Abstract method to generate the alphabet of the node. |
void |
isFinished()
Method called when the node is completely processed |
void |
notificationOfChildActivity(SimulationNode child)
Method which is called from the child in order to notify the parent that it is active. |
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 |
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, createSimHighlighting, getAlphabet, getColumn, getGuard, getLength, getLine, getName, getParent, getParentList, hide, isActive, isHidden, printTransition, relabelNode, setParent, stopCalled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TryNode(int line, int column)
public TryNode(int line, int column, SimulationNode parent)
public TryNode(int line, int column, SimulationNode parent, java.lang.String guard)
line
- column
- parent
- guard
- Method Detail |
---|
public void childIsFinished(SimulationNode child)
SimulationNode
childIsFinished
in class SimulationNode
public void isFinished()
SimulationNode
isFinished
in class SimulationNode
public java.util.List<ParTransition> collectParTransitions()
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 void setActive()
setActive
in class SimulationNode
public void addCatch(SimulationNode ca, java.lang.String exc)
public void exceptionThrown(ThrowNode exc)
SimulationNode
exceptionThrown
in class SimulationNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |