modesteditor.core.stepsimulation
Class ActionNode

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

public class ActionNode
extends SimulationNode

The class representing an action in the MoDeST code.


Field Summary
 
Fields inherited from class modesteditor.core.stepsimulation.SimulationNode
alphabet, children, column, guard, hidden, isActive, length, line, newLabel, parent
 
Constructor Summary
ActionNode(java.lang.String name, int line, int column, SimulationNode parent, java.lang.String guard)
          Constructor that sets the parent node and the name
 
Method Summary
 void childIsFinished(SimulationNode child)
          Never gets called since an action has no children.
 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()
          Puts the name of the action in the alphabet if it's not a STOP or a tau action.
 java.lang.String getAssignment()
           
 java.lang.String getName()
           
 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.
 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()
           
 void setAssignment(java.lang.String assignment)
           
 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, exceptionThrown, getAlphabet, getColumn, getGuard, getLength, getLine, getParent, getParentList, hide, isActive, isHidden, relabelNode, setParent, stopCalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionNode

public ActionNode(java.lang.String name,
                  int line,
                  int column,
                  SimulationNode parent,
                  java.lang.String guard)
Constructor that sets the parent node and the name

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

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

collectParTransitions

public java.util.List<ParTransition> collectParTransitions()
Description copied from class: SimulationNode
Abstract method for generating the list of parallel transitions of the node. The method also adds disabled transitions for the letters in the alphabet that cannot be taken.

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

generateAlphabet

public void generateAlphabet()
Puts the name of the action in the alphabet if it's not a STOP or a tau action.

Specified by:
generateAlphabet in class SimulationNode

setActive

public void setActive()
Overrides:
setActive 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

isFinished

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

Overrides:
isFinished in class SimulationNode

childIsFinished

public void childIsFinished(SimulationNode child)
Never gets called since an action has no children.

Specified by:
childIsFinished 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

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

printTransition

public java.lang.String printTransition()
Description copied from class: SimulationNode
Method that prints the SimulationNode TODO better incoporation in Eclipse

Overrides:
printTransition in class SimulationNode

getName

public java.lang.String getName()
Overrides:
getName in class SimulationNode
Returns:
the name of the action

getAssignment

public java.lang.String getAssignment()
Returns:
the assignment in the case of an assignment block without a palt.

setAssignment

public void setAssignment(java.lang.String assignment)
Parameters:
assignment - the assignment to set