public class ProductionEvent extends AbstractACTREvent<IProduction,IProductionListener> implements IParameterEvent<IProduction,IProductionListener>
Modifier and Type | Class and Description |
---|---|
static class |
ProductionEvent.Type |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_newValue |
protected java.lang.Object |
_oldValue |
protected java.lang.String |
_parameterName |
protected ProductionEvent.Type |
_type |
Modifier | Constructor and Description |
---|---|
|
ProductionEvent(IProduction source) |
protected |
ProductionEvent(IProduction source,
ProductionEvent.Type type) |
|
ProductionEvent(IProduction source,
ProductionEvent.Type type,
IAction action) |
|
ProductionEvent(IProduction source,
ProductionEvent.Type type,
ICondition condition) |
|
ProductionEvent(IProduction source,
ProductionEvent.Type type,
IInstantiation instantiation) |
|
ProductionEvent(IProduction source,
java.lang.String parameterName,
java.lang.Object newValue,
java.lang.Object oldValue) |
Modifier and Type | Method and Description |
---|---|
void |
fire(IProductionListener listener)
dispatch this event to a listener on the provided executor
|
IAction |
getAction() |
ICondition |
getCondition() |
IInstantiation |
getInstantiation() |
java.lang.Object |
getNewParameterValue() |
java.lang.Object |
getOldParameterValue() |
java.lang.String |
getParameterName() |
ProductionEvent.Type |
getType() |
getSimulationTime, getSource, getSystemTime, setSimulationTime, setSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSimulationTime, getSource, getSystemTime
protected ProductionEvent.Type _type
protected java.lang.String _parameterName
protected java.lang.Object _newValue
protected java.lang.Object _oldValue
protected ProductionEvent(IProduction source, ProductionEvent.Type type)
public ProductionEvent(IProduction source)
public ProductionEvent(IProduction source, ProductionEvent.Type type, IInstantiation instantiation)
public ProductionEvent(IProduction source, ProductionEvent.Type type, ICondition condition)
public ProductionEvent(IProduction source, ProductionEvent.Type type, IAction action)
public ProductionEvent(IProduction source, java.lang.String parameterName, java.lang.Object newValue, java.lang.Object oldValue)
public ProductionEvent.Type getType()
public void fire(IProductionListener listener)
IACTREvent
fire
in interface IACTREvent<IProduction,IProductionListener>
fire
in class AbstractACTREvent<IProduction,IProductionListener>
public IInstantiation getInstantiation()
public ICondition getCondition()
public IAction getAction()
public java.lang.String getParameterName()
getParameterName
in interface IParameterEvent<IProduction,IProductionListener>
public java.lang.Object getOldParameterValue()
getOldParameterValue
in interface IParameterEvent<IProduction,IProductionListener>
public java.lang.Object getNewParameterValue()
getNewParameterValue
in interface IParameterEvent<IProduction,IProductionListener>