org.jactr.core.model.event
Class DecoratedModelListener

java.lang.Object
  extended by org.jactr.core.model.event.DecoratedModelListener
All Implemented Interfaces:
java.util.EventListener, IModelListener

public class DecoratedModelListener
extends java.lang.Object
implements IModelListener

Author:
developer

Constructor Summary
DecoratedModelListener()
           
DecoratedModelListener(IModelListener listener)
           
 
Method Summary
 void bufferInstalled(ModelEvent me)
          called after a buffer has been installed
 void cycleStarted(ModelEvent me)
          called at the start of each cycle.
 void cycleStopped(ModelEvent me)
          called at the end of each cycle.
 void exceptionThrown(ModelEvent me)
          called in an exception occurs during the normal run.
 void extensionInstalled(ModelEvent me)
          called after an extension has been installed
 void instrumentInstalled(ModelEvent me)
          called after an instrument has been installed
 void modelConnected(ModelEvent me)
          called when the model has been connected to the runtime and possibly CommonReality
 void modelDisconnected(ModelEvent me)
          called on disconnect
 void modelInitialized(ModelEvent me)
          called after the model has been initialized - i.e.
 void modelResumed(ModelEvent me)
          called when the model resumes
 void modelStarted(ModelEvent me)
          called once the model has started its execution.
 void modelStopped(ModelEvent me)
          called when the model's execution has completed.
 void modelSuspended(ModelEvent me)
          called when the model enters a suspended state due to a break point or explicitly forced by the controller
 void moduleInstalled(ModelEvent me)
          called after a module has been installed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedModelListener

public DecoratedModelListener()

DecoratedModelListener

public DecoratedModelListener(IModelListener listener)
Method Detail

bufferInstalled

public void bufferInstalled(ModelEvent me)
Description copied from interface: IModelListener
called after a buffer has been installed

Specified by:
bufferInstalled in interface IModelListener
See Also:
IModelListener.bufferInstalled(org.jactr.core.model.event.ModelEvent)

cycleStarted

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

Specified by:
cycleStarted in interface IModelListener
See Also:
IModelListener.cycleStarted(org.jactr.core.model.event.ModelEvent)

exceptionThrown

public void exceptionThrown(ModelEvent me)
Description copied from interface: IModelListener
called in an exception occurs during the normal run. after firing this event, modelStopped will be called

Specified by:
exceptionThrown in interface IModelListener
See Also:
IModelListener.exceptionThrown(org.jactr.core.model.event.ModelEvent)

extensionInstalled

public void extensionInstalled(ModelEvent me)
Description copied from interface: IModelListener
called after an extension has been installed

Specified by:
extensionInstalled in interface IModelListener
See Also:
IModelListener.extensionInstalled(org.jactr.core.model.event.ModelEvent)

instrumentInstalled

public void instrumentInstalled(ModelEvent me)
Description copied from interface: IModelListener
called after an instrument has been installed

Specified by:
instrumentInstalled in interface IModelListener
See Also:
IModelListener.instrumentInstalled(org.jactr.core.model.event.ModelEvent)

modelConnected

public void modelConnected(ModelEvent me)
Description copied from interface: IModelListener
called when the model has been connected to the runtime and possibly CommonReality

Specified by:
modelConnected in interface IModelListener
See Also:
IModelListener.modelConnected(org.jactr.core.model.event.ModelEvent)

modelInitialized

public void modelInitialized(ModelEvent me)
Description copied from interface: IModelListener
called after the model has been initialized - i.e. all the chunks and related content have been added and the model is in a runnable state

Specified by:
modelInitialized in interface IModelListener
See Also:
IModelListener.modelInitialized(org.jactr.core.model.event.ModelEvent)

modelResumed

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

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

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
See Also:
IModelListener.modelStarted(org.jactr.core.model.event.ModelEvent)

modelStopped

public void modelStopped(ModelEvent me)
Description copied from interface: IModelListener
called when the model's execution has completed. this is always the second to last event. disconnected is the final one

Specified by:
modelStopped in interface IModelListener
See Also:
IModelListener.modelStopped(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
See Also:
IModelListener.modelSuspended(org.jactr.core.model.event.ModelEvent)

moduleInstalled

public void moduleInstalled(ModelEvent me)
Description copied from interface: IModelListener
called after a module has been installed

Specified by:
moduleInstalled in interface IModelListener
See Also:
IModelListener.moduleInstalled(org.jactr.core.model.event.ModelEvent)

cycleStopped

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

Specified by:
cycleStopped in interface IModelListener
See Also:
IModelListener.cycleStopped(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
See Also:
IModelListener.modelDisconnected(org.jactr.core.model.event.ModelEvent)