modesteditor.core.stepsimulation
Class TryNode

java.lang.Object
  extended by modesteditor.core.stepsimulation.SimulationNode
      extended by modesteditor.core.stepsimulation.TryNode

public class TryNode
extends SimulationNode

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

TryNode

public TryNode(int line,
               int column)

TryNode

public TryNode(int line,
               int column,
               SimulationNode parent)

TryNode

public TryNode(int line,
               int column,
               SimulationNode parent,
               java.lang.String guard)
Default constructor

Parameters:
line -
column -
parent -
guard -
Method Detail

childIsFinished

public void childIsFinished(SimulationNode child)
Description copied from class: SimulationNode
Child notifies the parent that is is finished. Parent has to check if it is finished too.

Specified by:
childIsFinished in class SimulationNode

isFinished

public void isFinished()
Description copied from class: SimulationNode
Method called when the node is completely processed

Overrides:
isFinished in class SimulationNode

collectParTransitions

public java.util.List<ParTransition> collectParTransitions()
Method collects the ParTransitions of the active child.

Specified by:
collectParTransitions in class SimulationNode
Returns:
the list of parallel transitions

collectTransitions

public java.util.List<SimulationNode> collectTransitions()
Description copied from class: SimulationNode
Abstract method for generating the list of possible transitions.

Specified by:
collectTransitions in class SimulationNode
Returns:
the list of transitions

generateAlphabet

public void generateAlphabet()
Description copied from class: SimulationNode
Abstract method to generate the alphabet of the node.

Specified by:
generateAlphabet in class SimulationNode

notificationOfChildActivity

public void notificationOfChildActivity(SimulationNode child)
Description copied from class: SimulationNode
Method which is called from the child in order to notify the parent that it is active.

Specified by:
notificationOfChildActivity in class SimulationNode

releaseTransitions

public void releaseTransitions()
Description copied from class: SimulationNode
Method shall release the active transitions of the node an it's children in case a do loop is broken or a STOP occured ...

Specified by:
releaseTransitions in class SimulationNode

takeTransition

public void takeTransition()
Description copied from class: SimulationNode
Abstract method for taking a Transition, the node will care for itself how it organizes the transition.

Specified by:
takeTransition in class SimulationNode

setActive

public void setActive()
Overrides:
setActive in class SimulationNode

addCatch

public void addCatch(SimulationNode ca,
                     java.lang.String exc)

exceptionThrown

public void exceptionThrown(ThrowNode exc)
Description copied from class: SimulationNode
Method calling repeatedly the same method in the parent until it reaches a TryNode or the root.

Overrides:
exceptionThrown in class SimulationNode