org.jactr.core.model.event
Class ModelEvent

java.lang.Object
  extended by org.jactr.core.event.AbstractACTREvent<IModel,IModelListener>
      extended by org.jactr.core.model.event.ModelEvent
All Implemented Interfaces:
IACTREvent<IModel,IModelListener>

public class ModelEvent
extends AbstractACTREvent<IModel,IModelListener>


Nested Class Summary
static class ModelEvent.Type
           
 
Constructor Summary
ModelEvent(IModel model, IActivationBuffer buffer)
           
ModelEvent(IModel model, IExtension extension)
           
ModelEvent(IModel model, IInstrument instrument)
           
ModelEvent(IModel model, IModule module)
           
ModelEvent(IModel model, ModelEvent.Type type)
           
ModelEvent(IModel model, ModelEvent.Type type, java.lang.Throwable thrown)
           
ModelEvent(IModel model, java.lang.Throwable thrown)
           
 
Method Summary
 void fire(IModelListener listener)
          dispatch this event to a listener on the provided executor
 IActivationBuffer getBuffer()
           
 java.lang.Throwable getException()
           
 IExtension getExtension()
           
 IInstrument getInstrument()
           
 java.lang.String getMessage()
           
 IModule getModule()
           
 ModelEvent.Type getType()
           
 
Methods inherited from class org.jactr.core.event.AbstractACTREvent
getSimulationTime, getSource, getSystemTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelEvent

public ModelEvent(IModel model,
                  ModelEvent.Type type)

ModelEvent

public ModelEvent(IModel model,
                  IModule module)

ModelEvent

public ModelEvent(IModel model,
                  IExtension extension)

ModelEvent

public ModelEvent(IModel model,
                  IActivationBuffer buffer)

ModelEvent

public ModelEvent(IModel model,
                  IInstrument instrument)

ModelEvent

public ModelEvent(IModel model,
                  java.lang.Throwable thrown)

ModelEvent

public ModelEvent(IModel model,
                  ModelEvent.Type type,
                  java.lang.Throwable thrown)
Method Detail

getMessage

public java.lang.String getMessage()

fire

public void fire(IModelListener listener)
Description copied from interface: IACTREvent
dispatch this event to a listener on the provided executor

Specified by:
fire in interface IACTREvent<IModel,IModelListener>
Specified by:
fire in class AbstractACTREvent<IModel,IModelListener>

getType

public ModelEvent.Type getType()

getException

public java.lang.Throwable getException()

getModule

public IModule getModule()

getExtension

public IExtension getExtension()

getBuffer

public IActivationBuffer getBuffer()

getInstrument

public IInstrument getInstrument()