org.jactr.core.event
Class AbstractACTREvent<S,L>

java.lang.Object
  extended by org.jactr.core.event.AbstractACTREvent<S,L>
All Implemented Interfaces:
IACTREvent<S,L>
Direct Known Subclasses:
ActivationBufferEvent, ACTRRuntimeEvent, BreakpointEvent, ChunkEvent, ChunkTypeEvent, DeclarativeModuleEvent, LogEvent, ModelEvent, MotorModuleEvent, ParameterEvent, ProceduralModuleEvent, ProductionEvent, RetrievalModuleEvent, TimedEventEvent, VisualFeatureMapEvent, VisualModuleEvent

public abstract class AbstractACTREvent<S,L>
extends java.lang.Object
implements IACTREvent<S,L>


Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Method Summary
abstract  void fire(L listener)
          dispatch this event to a listener on the provided executor
 double getSimulationTime()
          the time this event occured based on the simulation clock
 S getSource()
          The source of the event
 long getSystemTime()
          the time this event occured based on the system clock
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
logger definition

Method Detail

getSimulationTime

public double getSimulationTime()
Description copied from interface: IACTREvent
the time this event occured based on the simulation clock

Specified by:
getSimulationTime in interface IACTREvent<S,L>
Returns:

getSource

public S getSource()
Description copied from interface: IACTREvent
The source of the event

Specified by:
getSource in interface IACTREvent<S,L>
Returns:
the originating object

getSystemTime

public long getSystemTime()
Description copied from interface: IACTREvent
the time this event occured based on the system clock

Specified by:
getSystemTime in interface IACTREvent<S,L>
Returns:

fire

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

Specified by:
fire in interface IACTREvent<S,L>