public interface IActivationBuffer extends IInitializable, IAdaptable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AURAL
Description of the Field
|
static java.lang.String |
AURAL_LOCATION
Description of the Field
|
static java.lang.String |
GOAL |
static java.lang.String |
IMAGINAL |
static java.lang.String |
MOTOR
Description of the Field
|
static java.lang.String |
RETRIEVAL
Description of the Field
|
static java.lang.String |
VISUAL
Description of the Field
|
static java.lang.String |
VISUAL_LOCATION
Description of the Field
|
static java.lang.String |
VOCAL |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IActivationBufferListener abl,
java.util.concurrent.Executor executor)
add a buffer listener
|
IChunk |
addSourceChunk(IChunk c)
add a chunk to the buffer.
|
void |
clear()
flush the contents of the buffer and notify any listeners
|
IChunk |
contains(IChunk c)
returns the buffer's source chunk that is symbolically equal to c, or null
if none is available or symbolically equal.
|
void |
dispose()
clean up resources, called by the module that created the buffer
|
double |
getActivation()
return the activation of the buffer
|
double |
getG()
return the goal value of this buffer.
|
IModel |
getModel() |
IModule |
getModule()
return the module that controls this buffer
|
java.lang.String |
getName()
return the buffer's name
|
IChunk |
getSourceChunk()
return a chunk from the buffer - the exact behavior is specified by the
particular buffer
|
java.util.Collection<IChunk> |
getSourceChunks()
return all the chunks in the buffer
|
java.util.Collection<IChunk> |
getSourceChunks(java.util.Collection<IChunk> container) |
boolean |
handlesEncoding()
returns true if this buffer is responsible for handling the encoding of
chunks that are in it.
|
boolean |
isStrictHarvestingEnabled()
strict harvesting forces the removal of buffer content that is matched
against in the LHS, but not acted upon in the RHS.
|
void |
matched(IChunk chunk)
called from within an instantiation notifying the buffer that this chunk
has been matched in the production that is about to fire.
|
void |
removeListener(IActivationBufferListener abl)
remove a buffer listener
|
void |
removeSourceChunk(IChunk c)
remove a chunk from the buffer, and notify listeners
|
void |
setActivation(double activation)
Set the value of the spreading activation.
|
void |
setG(double g)
set the goal value of this buffer..
|
initialize
getAdapter
static final java.lang.String GOAL
static final java.lang.String IMAGINAL
static final java.lang.String RETRIEVAL
static final java.lang.String VISUAL
static final java.lang.String VISUAL_LOCATION
static final java.lang.String AURAL
static final java.lang.String AURAL_LOCATION
static final java.lang.String MOTOR
static final java.lang.String VOCAL
void matched(IChunk chunk)
chunk
- void setActivation(double activation)
activation
- 0.0 to deactivatedouble getActivation()
void setG(double g)
g
- The new g valuedouble getG()
void clear()
IActivationBufferListener
IChunk addSourceChunk(IChunk c)
c
- chunk to be addedremoveSourceChunk(IChunk)
,
IActivationBufferListener
void removeSourceChunk(IChunk c)
IActivationBufferListener
IChunk getSourceChunk()
java.util.Collection<IChunk> getSourceChunks()
java.util.Collection<IChunk> getSourceChunks(java.util.Collection<IChunk> container)
IChunk contains(IChunk c)
#getSourceChunks()#contains(IChunk)
IChunk.equalsSymbolic(IChunk)
void addListener(IActivationBufferListener abl, java.util.concurrent.Executor executor)
void removeListener(IActivationBufferListener abl)
java.lang.String getName()
IModel getModel()
boolean handlesEncoding()
IModule getModule()
void dispose()
boolean isStrictHarvestingEnabled()
DefaultProceduralModule6