org.jactr.core.production.event
Class ProductionEvent
java.lang.Object
org.jactr.core.event.AbstractACTREvent<IProduction,IProductionListener>
org.jactr.core.production.event.ProductionEvent
- All Implemented Interfaces:
- IACTREvent<IProduction,IProductionListener>, IParameterEvent<IProduction,IProductionListener>
public class ProductionEvent
- extends AbstractACTREvent<IProduction,IProductionListener>
- implements IParameterEvent<IProduction,IProductionListener>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductionEvent
public ProductionEvent(IProduction source)
ProductionEvent
public ProductionEvent(IProduction source,
ProductionEvent.Type type,
IInstantiation instantiation)
ProductionEvent
public ProductionEvent(IProduction source,
ProductionEvent.Type type,
ICondition condition)
ProductionEvent
public ProductionEvent(IProduction source,
ProductionEvent.Type type,
IAction action)
ProductionEvent
public ProductionEvent(IProduction source,
java.lang.String parameterName,
java.lang.Object newValue,
java.lang.Object oldValue)
getType
public ProductionEvent.Type getType()
fire
public void fire(IProductionListener listener)
- Description copied from interface:
IACTREvent
- dispatch this event to a listener on the provided executor
- Specified by:
fire in interface IACTREvent<IProduction,IProductionListener>- Specified by:
fire in class AbstractACTREvent<IProduction,IProductionListener>
getInstantiation
public IInstantiation getInstantiation()
getCondition
public ICondition getCondition()
getAction
public IAction getAction()
getParameterName
public java.lang.String getParameterName()
- Specified by:
getParameterName in interface IParameterEvent<IProduction,IProductionListener>
getOldParameterValue
public java.lang.Object getOldParameterValue()
- Specified by:
getOldParameterValue in interface IParameterEvent<IProduction,IProductionListener>
getNewParameterValue
public java.lang.Object getNewParameterValue()
- Specified by:
getNewParameterValue in interface IParameterEvent<IProduction,IProductionListener>