|
||||||||||
| 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.ThrowNode
public class ThrowNode
Calss representing a throw statement in the simulation tree.
| Field Summary |
|---|
| Fields inherited from class modesteditor.core.stepsimulation.SimulationNode |
|---|
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent |
| Constructor Summary | |
|---|---|
ThrowNode(int line,
int column)
|
|
ThrowNode(int line,
int column,
java.lang.String exceptionName)
|
|
ThrowNode(int line,
int column,
java.lang.String exceptionName,
SimulationNode parent,
java.lang.String guard)
Default constructor |
|
| Method Summary | |
|---|---|
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. |
void |
generateAlphabet()
Method does nothing since the throw statement has no alphabet. |
java.lang.String |
getExceptionName()
|
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()
If the transition of this throw statement is taken, the exceptionThrown method is called which passes the exception up in the tree until a catch statement is reached. |
void |
willBeCaught()
Method that signals that the thrown exception will be caught later on. |
| Methods inherited from class modesteditor.core.stepsimulation.SimulationNode |
|---|
addChild, breakTransitionTaken, createSimHighlighting, 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 ThrowNode(int line,
int column)
public ThrowNode(int line,
int column,
java.lang.String exceptionName)
public ThrowNode(int line,
int column,
java.lang.String exceptionName,
SimulationNode parent,
java.lang.String guard)
line - column - exceptionName - the name of the exception which is eventually thrownparent - the parent node in the simulation treeguard - | Method Detail |
|---|
public void childIsFinished(SimulationNode child)
SimulationNode
childIsFinished in class SimulationNodepublic java.util.List<ParTransition> collectParTransitions()
SimulationNode
collectParTransitions in class SimulationNodepublic java.util.List<SimulationNode> collectTransitions()
SimulationNode
collectTransitions in class SimulationNodepublic void generateAlphabet()
generateAlphabet in class SimulationNodepublic void notificationOfChildActivity(SimulationNode child)
SimulationNode
notificationOfChildActivity in class SimulationNodepublic void releaseTransitions()
SimulationNode
releaseTransitions in class SimulationNodepublic void takeTransition()
takeTransition in class SimulationNodepublic java.lang.String getExceptionName()
public java.lang.String printTransition()
SimulationNode
printTransition in class SimulationNodepublic void willBeCaught()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||