modesteditor.core.stepsimulation
Class SimulationRoot

java.lang.Object
  extended by modesteditor.core.stepsimulation.SimulationRoot

public class SimulationRoot
extends java.lang.Object

Transition class between the simulatin model and the simulation framework like the view and the action.


Constructor Summary
SimulationRoot(SequentialProcess proc)
           
 
Method Summary
 void addListener(ISimulationListener list)
           
 void choiceTaken(SimulationNode alt, boolean isInBackTracking)
          Method called when a transition is chosen in the SimulationView.
 void clearState()
          Clears the state in die SimulationRoot in order to reprocess the transitions for backtracking.
 java.lang.String getFinishingMessage()
           
 java.lang.Object[] getModels()
          Method calls update and delivers the possible transitions to the content provider.
 boolean isFinished()
           
 void removeEditorListeners()
           
 void removeListener(ISimulationListener list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationRoot

public SimulationRoot(SequentialProcess proc)
Method Detail

getModels

public java.lang.Object[] getModels()
Method calls update and delivers the possible transitions to the content provider.

Returns:
the possible transitions

addListener

public void addListener(ISimulationListener list)

removeListener

public void removeListener(ISimulationListener list)

removeEditorListeners

public void removeEditorListeners()

choiceTaken

public void choiceTaken(SimulationNode alt,
                        boolean isInBackTracking)
Method called when a transition is chosen in the SimulationView.

Parameters:
alt -
isInBackTracking - tells if the choice is taken during backtracking

getFinishingMessage

public java.lang.String getFinishingMessage()
Returns:
the finishingMessage

isFinished

public boolean isFinished()
Returns:
if the simulation is finished

clearState

public void clearState()
Clears the state in die SimulationRoot in order to reprocess the transitions for backtracking.