public class ModelEvent extends AbstractACTREvent<IModel,IModelListener>
Modifier and Type | Class and Description |
---|---|
static class |
ModelEvent.Type |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_newValue |
protected java.lang.Object |
_oldValue |
protected ModelEvent.Type |
_type |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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() |
getSimulationTime, getSource, getSystemTime, setSimulationTime, setSource
protected ModelEvent.Type _type
protected java.lang.Object _oldValue
protected java.lang.Object _newValue
public ModelEvent(IModel model, ModelEvent.Type type)
public ModelEvent(IModel model, IExtension extension)
public ModelEvent(IModel model, IActivationBuffer buffer)
public ModelEvent(IModel model, IInstrument instrument)
public ModelEvent(IModel model, java.lang.Throwable thrown)
public ModelEvent(IModel model, ModelEvent.Type type, java.lang.Throwable thrown)
public java.lang.String getMessage()
public void fire(IModelListener listener)
IACTREvent
fire
in interface IACTREvent<IModel,IModelListener>
fire
in class AbstractACTREvent<IModel,IModelListener>
public ModelEvent.Type getType()
public java.lang.Throwable getException()
public IModule getModule()
public IExtension getExtension()
public IActivationBuffer getBuffer()
public IInstrument getInstrument()