org.jactr.modules.pm.common.buffer
Class AbstractCapacityPMActivationBuffer6
java.lang.Object
org.jactr.core.buffer.AbstractActivationBuffer
org.jactr.core.buffer.six.AbstractActivationBuffer6
org.jactr.core.buffer.six.AbstractRequestableBuffer6
org.jactr.core.buffer.six.AbstractCapacityBuffer6
org.jactr.modules.pm.common.buffer.AbstractCapacityPMActivationBuffer6
- All Implemented Interfaces:
- IDelegatedRequestableBuffer, IActivationBuffer, ICapacityBuffer, IRequestableBuffer, IStatusBuffer, ICompilableBuffer, ISlotContainer, IUniqueSlotContainer, IInitializable, IParameterized, IEventTrackingActivationBuffer, IPerceptualBuffer
public abstract class AbstractCapacityPMActivationBuffer6
- extends AbstractCapacityBuffer6
- implements IDelegatedRequestableBuffer, IPerceptualBuffer, IEventTrackingActivationBuffer, ICompilableBuffer
- Author:
- developer
| Methods inherited from class org.jactr.core.buffer.six.AbstractActivationBuffer6 |
addSlot, addSourceChunk, bind, getBusyChunk, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getRequestedChunk, getSlot, getSlots, getSlots, getUnrequestedChunk, isBufferEmpty, isBufferFull, isBufferRequested, isBufferUnrequested, isStateBusy, isStateError, isStateFree, removeSlot, setBufferChunk, setStateChunk |
| Methods inherited from class org.jactr.core.buffer.AbstractActivationBuffer |
addListener, clear, contains, getActivation, getG, getModel, getModule, getName, getSourceChunk, getSourceChunks, handlesEncoding, isStrictHarvestingEnabled, matched, removeListener, removeSourceChunk, setActivation, setG, setStrictHarvestingEnabled |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCapacityPMActivationBuffer6
public AbstractCapacityPMActivationBuffer6(java.lang.String name,
IModule module)
dispose
public void dispose()
- Description copied from interface:
IActivationBuffer
- clean up resources, called by the module that created the buffer
- Specified by:
dispose in interface IActivationBuffer- Overrides:
dispose in class AbstractCapacityBuffer6
initialize
public void initialize()
- Description copied from class:
AbstractActivationBuffer6
- must be called after the model has started so that we can ensure that the
status slot values are properly initialized
- Specified by:
initialize in interface IInitializable- Overrides:
initialize in class AbstractCapacityBuffer6
enqueueTimedEvent
public 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
- Specified by:
enqueueTimedEvent in interface IEventTrackingActivationBuffer
- Parameters:
timedEvent -
addRequestDelegate
public void addRequestDelegate(IRequestDelegate processor)
- Specified by:
addRequestDelegate in interface IDelegatedRequestableBuffer
removeRequestDelegate
public void removeRequestDelegate(IRequestDelegate processor)
- Specified by:
removeRequestDelegate in interface IDelegatedRequestableBuffer
getRequestDelegates
public java.util.Collection<IRequestDelegate> getRequestDelegates()
- returns the actual backing collection
- Specified by:
getRequestDelegates in interface IDelegatedRequestableBuffer
- Returns:
willAccept
public boolean willAccept(IRequest request)
- Description copied from interface:
IRequestableBuffer
- return true if this buffer would accept this request
- Specified by:
willAccept in interface IRequestableBuffer
- Returns:
isModalityFree
public boolean isModalityFree()
- Specified by:
isModalityFree in interface IPerceptualBuffer
isProcessorFree
public boolean isProcessorFree()
- Specified by:
isProcessorFree in interface IPerceptualBuffer
isPreparationFree
public boolean isPreparationFree()
- Specified by:
isPreparationFree in interface IPerceptualBuffer
isExecutionFree
public boolean isExecutionFree()
- Specified by:
isExecutionFree in interface IPerceptualBuffer
isModalityBusy
public boolean isModalityBusy()
- Specified by:
isModalityBusy in interface IPerceptualBuffer
isProcessorBusy
public boolean isProcessorBusy()
- Specified by:
isProcessorBusy in interface IPerceptualBuffer
isPreparationBusy
public boolean isPreparationBusy()
- Specified by:
isPreparationBusy in interface IPerceptualBuffer
isExecutionBusy
public boolean isExecutionBusy()
- Specified by:
isExecutionBusy in interface IPerceptualBuffer
setModalityChunk
public void setModalityChunk(IChunk chunk)
- Specified by:
setModalityChunk in interface IPerceptualBuffer
setExecutionChunk
public void setExecutionChunk(IChunk chunk)
- Specified by:
setExecutionChunk in interface IPerceptualBuffer
setPreparationChunk
public void setPreparationChunk(IChunk chunk)
- Specified by:
setPreparationChunk in interface IPerceptualBuffer
setProcessorChunk
public void setProcessorChunk(IChunk chunk)
- Specified by:
setProcessorChunk in interface IPerceptualBuffer
getCompilableContext
public ICompilableContext getCompilableContext()
- Specified by:
getCompilableContext in interface ICompilableBuffer