org.jactr.core.buffer.six
Class AbstractCapacityBuffer6

java.lang.Object
  extended by org.jactr.core.buffer.AbstractActivationBuffer
      extended by org.jactr.core.buffer.six.AbstractActivationBuffer6
          extended by org.jactr.core.buffer.six.AbstractRequestableBuffer6
              extended by org.jactr.core.buffer.six.AbstractCapacityBuffer6
All Implemented Interfaces:
IActivationBuffer, ICapacityBuffer, IRequestableBuffer, IStatusBuffer, ISlotContainer, IUniqueSlotContainer, IInitializable, IParameterized
Direct Known Subclasses:
AbstractCapacityPMActivationBuffer6

public abstract class AbstractCapacityBuffer6
extends AbstractRequestableBuffer6
implements ICapacityBuffer


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jactr.core.buffer.ICapacityBuffer
ICapacityBuffer.EjectionPolicy
 
Field Summary
 
Fields inherited from class org.jactr.core.buffer.AbstractActivationBuffer
ACTIVATION_PARAM, GOAL_VALUE_PARAM, STRICT_HARVESTING_PARAM
 
Fields inherited from interface org.jactr.core.buffer.ICapacityBuffer
EJECTION_POLICY_PARAM
 
Fields inherited from interface org.jactr.core.buffer.IActivationBuffer
AURAL, AURAL_LOCATION, GOAL, IMAGINAL, MOTOR, RETRIEVAL, VISUAL, VISUAL_LOCATION, VOCAL
 
Fields inherited from interface org.jactr.core.buffer.six.IStatusBuffer
BUFFER_SLOT, STATE_SLOT
 
Constructor Summary
AbstractCapacityBuffer6(java.lang.String name, IModule module)
           
 
Method Summary
 void dispose()
          clean up resources, called by the module that created the buffer
 ICapacityBuffer.EjectionPolicy getEjectionPolicy()
           
 java.lang.String getParameter(java.lang.String key)
          return parameter value - null if not defined.
 java.util.Collection<java.lang.String> getPossibleParameters()
          Return all parameters that can be read
 java.util.Collection<java.lang.String> getSetableParameters()
          Return list of all parameters that can be set.
 void initialize()
          must be called after the model has started so that we can ensure that the status slot values are properly initialized
 void setEjectionPolicy(ICapacityBuffer.EjectionPolicy policy)
           
 void setParameter(java.lang.String key, java.lang.String value)
          Set the named parameter
 
Methods inherited from class org.jactr.core.buffer.six.AbstractRequestableBuffer6
request
 
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, getActivationSpreader, getG, getModel, getModule, getName, getSourceChunk, getSourceChunks, getSourceChunks, handlesEncoding, isStrictHarvestingEnabled, matched, removeListener, removeSourceChunk, setActivation, setActivationSpreader, setG, setStrictHarvestingEnabled, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.buffer.ICapacityBuffer
getSourceChunks
 
Methods inherited from interface org.jactr.core.buffer.IActivationBuffer
addListener, addSourceChunk, clear, contains, getActivation, getG, getModel, getModule, getName, getSourceChunk, getSourceChunks, handlesEncoding, isStrictHarvestingEnabled, matched, removeListener, removeSourceChunk, setActivation, setG
 
Methods inherited from interface org.jactr.core.buffer.IRequestableBuffer
willAccept
 

Constructor Detail

AbstractCapacityBuffer6

public AbstractCapacityBuffer6(java.lang.String name,
                               IModule module)
Method Detail

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 AbstractActivationBuffer6

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 AbstractActivationBuffer6

getEjectionPolicy

public ICapacityBuffer.EjectionPolicy getEjectionPolicy()
Specified by:
getEjectionPolicy in interface ICapacityBuffer

setEjectionPolicy

public void setEjectionPolicy(ICapacityBuffer.EjectionPolicy policy)
Specified by:
setEjectionPolicy in interface ICapacityBuffer

getPossibleParameters

public java.util.Collection<java.lang.String> getPossibleParameters()
Description copied from interface: IParameterized
Return all parameters that can be read

Specified by:
getPossibleParameters in interface IParameterized
Overrides:
getPossibleParameters in class AbstractActivationBuffer
Returns:
The possibleParameters value
See Also:
IParameterized.getPossibleParameters()

getSetableParameters

public java.util.Collection<java.lang.String> getSetableParameters()
Description copied from interface: IParameterized
Return list of all parameters that can be set.

Specified by:
getSetableParameters in interface IParameterized
Overrides:
getSetableParameters in class AbstractActivationBuffer
Returns:
The setableParameters value
See Also:
IParameterized.getSetableParameters()

getParameter

public java.lang.String getParameter(java.lang.String key)
Description copied from interface: IParameterized
return parameter value - null if not defined.

Specified by:
getParameter in interface IParameterized
Overrides:
getParameter in class AbstractActivationBuffer
Parameters:
key - Description of the Parameter
Returns:
The parameter value
See Also:
IParameterized.getParameter(java.lang.String)

setParameter

public void setParameter(java.lang.String key,
                         java.lang.String value)
Description copied from interface: IParameterized
Set the named parameter

Specified by:
setParameter in interface IParameterized
Overrides:
setParameter in class AbstractActivationBuffer
See Also:
IParameterized.setParameter(java.lang.String, String)