org.jactr.core.queue.timedevents
Class DelayedBufferInsertionTimedEvent

java.lang.Object
  extended by org.jactr.core.queue.timedevents.AbstractTimedEvent
      extended by org.jactr.core.queue.timedevents.DelayedBufferInsertionTimedEvent
All Implemented Interfaces:
ITimedEvent, IBufferBasedTimedEvent

public class DelayedBufferInsertionTimedEvent
extends AbstractTimedEvent
implements IBufferBasedTimedEvent

insert a chunk into a specific buffer after a certain time has elapsed

Author:
developer

Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Constructor Summary
DelayedBufferInsertionTimedEvent(IActivationBuffer buffer, IChunk chunkToInsert, double startTime, double endTime)
           
 
Method Summary
 void fire(double time)
          called when this event should be fired..
 IChunk getBoundChunk()
          return the chunk that is (or will be) in the buffer that will be manipulated
 IActivationBuffer getBuffer()
          return the buffer that this timed event will be posting changes to.
 IChunk getChunkToInsert()
          the chunk that is to be inserted into the buffer
 IChunk getInsertedChunk()
          return the chunk that is actually in the buffer after firing, often this is a copy of chunktoinsert
 
Methods inherited from class org.jactr.core.queue.timedevents.AbstractTimedEvent
abort, getEndTime, getStartTime, hasAborted, hasFired, setTimes, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.queue.ITimedEvent
abort, getEndTime, getStartTime, hasAborted, hasFired
 

Field Detail

LOGGER

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

Constructor Detail

DelayedBufferInsertionTimedEvent

public DelayedBufferInsertionTimedEvent(IActivationBuffer buffer,
                                        IChunk chunkToInsert,
                                        double startTime,
                                        double endTime)
Method Detail

fire

public void fire(double time)
Description copied from class: AbstractTimedEvent
called when this event should be fired..

Specified by:
fire in interface ITimedEvent
Overrides:
fire in class AbstractTimedEvent
Parameters:
time - Description of the Parameter

getChunkToInsert

public IChunk getChunkToInsert()
the chunk that is to be inserted into the buffer

Returns:

getInsertedChunk

public IChunk getInsertedChunk()
return the chunk that is actually in the buffer after firing, often this is a copy of chunktoinsert

Returns:

getBuffer

public IActivationBuffer getBuffer()
Description copied from interface: IBufferBasedTimedEvent
return the buffer that this timed event will be posting changes to.

Specified by:
getBuffer in interface IBufferBasedTimedEvent
Returns:

getBoundChunk

public IChunk getBoundChunk()
Description copied from interface: IBufferBasedTimedEvent
return the chunk that is (or will be) in the buffer that will be manipulated

Specified by:
getBoundChunk in interface IBufferBasedTimedEvent
Returns: