public class DefaultAuralLocationBuffer extends AbstractPMActivationBuffer6 implements IAuralLocationBuffer
Modifier and Type | Field and Description |
---|---|
protected ITimedEvent |
_pendingScan |
protected boolean |
_stuffPending |
_pendingTimedEvents
ACTIVATION_PARAM, GOAL_VALUE_PARAM, STRICT_HARVESTING_PARAM
EXECUTION_SLOT, IS_BUFFER_STUFF_REQUEST, MODALITY_SLOT, PREPARATION_SLOT, PROCESSOR_SLOT
BUFFER_SLOT, ERROR_CHANGED_TOO_MUCH_CHUNK, ERROR_DELETED_CHUNK, ERROR_INVALID_INDEX_CHUNK, ERROR_NO_LONGER_AVAILABLE_CHUNK, ERROR_NOTHING_AVAILABLE_CHUNK, ERROR_NOTHING_MATCHES_CHUNK, ERROR_SLOT, ERROR_UNKNOWN_CHUNK, STATE_SLOT
AURAL, AURAL_LOCATION, GOAL, IMAGINAL, MOTOR, RETRIEVAL, VISUAL, VISUAL_LOCATION, VOCAL
Constructor and Description |
---|
DefaultAuralLocationBuffer(IAuralModule module) |
Modifier and Type | Method and Description |
---|---|
void |
cancelBufferStuff() |
void |
checkForBufferStuff() |
void |
enqueueTimedEvent(ITimedEvent timedEvent)
called when we want to queue a timed event onto the model's event queue
this also tracks all the pending events so that if they fire or get aborted
we are notified, and it permits us to abort when a clear is called
|
protected void |
grabReferences()
called once the model is started.
|
void |
initialize()
intialize this component
|
boolean |
isBufferStuffPending() |
protected boolean |
isValidChunkType(IChunkType chunkType)
check to see if a chunk of this chunktype can be added as a source chunk
|
protected void |
setSourceChunkInternal(IChunk chunk) |
addSourceChunkInternal, clear, clearInternal, dispose, getCompilableContext, isExecutionBusy, isExecutionFree, isModalityBusy, isModalityFree, isPreparationBusy, isPreparationFree, isProcessorBusy, isProcessorFree, removeSourceChunkInternal, setExecutionChunk, setModalityChunk, setPreparationChunk, setProcessorChunk, shouldCopyOnInsertion, willAccept
addRequestDelegate, getRequestDelegates, getSourceChunkInternal, getSourceChunksInternal, removeRequestDelegate, requestInternal
request
addListener, addSlot, addSourceChunk, bind, checkStatusSlotContent, getBusyChunk, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getRequestedChunk, getSlot, getSlots, getSlots, getUnrequestedChunk, hasSlot, isBufferEmpty, isBufferFull, isBufferRequested, isBufferUnrequested, isErrorSet, isStateBusy, isStateError, isStateFree, removeListener, removeSlot, setBufferChunk, setErrorChunk, setStateChunk, setStatusSlotContent, shouldAcceptAsSource, sourceChunkCopied, valueChanged
addListener, contains, containsExact, getActivation, getActivationSpreader, getEventDispatcher, getG, getLock, getModel, getModule, getName, getParameter, getPossibleParameters, getSetableParameters, getSourceChunk, getSourceChunks, getSourceChunks, handlesEncoding, isStrictHarvestingEnabled, matched, matchedInternal, removeListener, removeSourceChunk, setActivation, setActivationSpreader, setG, setParameter, setStrictHarvestingEnabled, toString
addAdapterFactory, getAdapter, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isExecutionBusy, isExecutionFree, isModalityBusy, isModalityFree, isPreparationBusy, isPreparationFree, isProcessorBusy, isProcessorFree, setExecutionChunk, setModalityChunk, setPreparationChunk, setProcessorChunk
bind, isBufferEmpty, isBufferFull, isBufferRequested, isBufferUnrequested, isErrorSet, isStateBusy, isStateError, isStateFree, setBufferChunk, setErrorChunk, setStateChunk
addListener, removeListener, valueChanged
getSlot, hasSlot
addSlot, getSlots, getSlots, removeSlot
addRequestDelegate, getRequestDelegates, removeRequestDelegate
request, willAccept
addListener, addSourceChunk, clear, contains, dispose, getActivation, getG, getModel, getModule, getName, getSourceChunk, getSourceChunks, getSourceChunks, handlesEncoding, isStrictHarvestingEnabled, matched, removeListener, removeSourceChunk, setActivation, setG
getAdapter
protected ITimedEvent _pendingScan
protected boolean _stuffPending
public DefaultAuralLocationBuffer(IAuralModule module)
name
- model
- module
- public void enqueueTimedEvent(ITimedEvent timedEvent)
AbstractPMActivationBuffer6
enqueueTimedEvent
in interface IEventTrackingActivationBuffer
enqueueTimedEvent
in class AbstractPMActivationBuffer6
public void initialize()
IInitializable
initialize
in interface IInitializable
initialize
in class AbstractPMActivationBuffer6
protected void grabReferences()
AbstractActivationBuffer
grabReferences
in class AbstractPMActivationBuffer6
protected void setSourceChunkInternal(IChunk chunk)
setSourceChunkInternal
in class DefaultDelegatedRequestableBuffer6
protected boolean isValidChunkType(IChunkType chunkType)
AbstractPMActivationBuffer6
isValidChunkType
in class AbstractPMActivationBuffer6
AbstractPMActivationBuffer6.isValidChunkType(org.jactr.core.chunktype.IChunkType)
public void checkForBufferStuff()
checkForBufferStuff
in interface IAuralLocationBuffer
public boolean isBufferStuffPending()
isBufferStuffPending
in interface IAuralLocationBuffer
public void cancelBufferStuff()
cancelBufferStuff
in interface IAuralLocationBuffer