org.jactr.core.runtime.controller.impl
Class ModelListener

java.lang.Object
  extended by org.jactr.core.model.event.ModelListenerAdaptor
      extended by org.jactr.core.runtime.controller.impl.ModelListener
All Implemented Interfaces:
java.util.EventListener, IModelListener

public class ModelListener
extends ModelListenerAdaptor


Constructor Summary
ModelListener(RuntimeState state)
           
 
Method Summary
 void cycleStarted(ModelEvent me)
          called at the start of each cycle.
 void modelDisconnected(ModelEvent me)
          called on disconnect
 void modelResumed(ModelEvent me)
          called when the model resumes
 void modelStarted(ModelEvent me)
          called once the model has started its execution.
 void modelSuspended(ModelEvent me)
          called when the model enters a suspended state due to a break point or explicitly forced by the controller
 void setShouldSuspend(boolean shouldSuspend)
           
 void suspendModel(IModel model)
           
 
Methods inherited from class org.jactr.core.model.event.ModelListenerAdaptor
bufferInstalled, cycleStopped, exceptionThrown, extensionInstalled, instrumentInstalled, logEvent, modelConnected, modelInitialized, modelStopped, moduleInstalled, parameterChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelListener

public ModelListener(RuntimeState state)
Method Detail

setShouldSuspend

public void setShouldSuspend(boolean shouldSuspend)

suspendModel

public void suspendModel(IModel model)

cycleStarted

public void cycleStarted(ModelEvent me)
Description copied from interface: IModelListener
called at the start of each cycle.

Specified by:
cycleStarted in interface IModelListener
Overrides:
cycleStarted in class ModelListenerAdaptor

modelStarted

public void modelStarted(ModelEvent me)
Description copied from interface: IModelListener
called once the model has started its execution. this is called shortly after modelConnected

Specified by:
modelStarted in interface IModelListener
Overrides:
modelStarted in class ModelListenerAdaptor

modelResumed

public void modelResumed(ModelEvent me)
Description copied from interface: IModelListener
called when the model resumes

Specified by:
modelResumed in interface IModelListener
Overrides:
modelResumed in class ModelListenerAdaptor
See Also:
IModelListener.modelResumed(org.jactr.core.model.event.ModelEvent)

modelSuspended

public void modelSuspended(ModelEvent me)
Description copied from interface: IModelListener
called when the model enters a suspended state due to a break point or explicitly forced by the controller

Specified by:
modelSuspended in interface IModelListener
Overrides:
modelSuspended in class ModelListenerAdaptor
See Also:
IModelListener.modelSuspended(org.jactr.core.model.event.ModelEvent)

modelDisconnected

public void modelDisconnected(ModelEvent me)
Description copied from interface: IModelListener
called on disconnect

Specified by:
modelDisconnected in interface IModelListener
Overrides:
modelDisconnected in class ModelListenerAdaptor
See Also:
IModelListener.modelDisconnected(org.jactr.core.model.event.ModelEvent)