|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IActivationBuffer
Represents a general case buffer in a model. Most buffers are already defined (goal, retrieval, and the RPM buffers) it is rare that a buffer will be added - but the capacity is necessary. Buffers are also the only source of external activation to be propogated to its contents.
| Field Summary | |
|---|---|
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
|
| Method Summary | |
|---|---|
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 |
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.. |
| Methods inherited from interface org.jactr.core.utils.IInitializable |
|---|
initialize |
| Field Detail |
|---|
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
| Method Detail |
|---|
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()
IActivationBufferListenerIChunk addSourceChunk(IChunk c)
c - chunk to be added
removeSourceChunk(IChunk),
IActivationBufferListenervoid removeSourceChunk(IChunk c)
IActivationBufferListenerIChunk getSourceChunk()
java.util.Collection<IChunk> getSourceChunks()
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||