org.jactr.core.production.event
Class ProductionEvent

java.lang.Object
  extended by org.jactr.core.event.AbstractACTREvent<IProduction,IProductionListener>
      extended by 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>


Nested Class Summary
static class ProductionEvent.Type
           
 
Constructor Summary
ProductionEvent(IProduction source)
           
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)
           
 
Method Summary
 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()
           
 
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
 
Methods inherited from interface org.jactr.core.event.IACTREvent
getSimulationTime, getSource, getSystemTime
 

Constructor Detail

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)
Method Detail

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>