|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.FrameworkModuleImpl
edu.memphis.ccrg.lida.episodicmemory.EpisodicMemoryImpl
public class EpisodicMemoryImpl
This is the canonical implementation of EpisodicMemory
. It uses a
sparse distributed memory to store the information.
Field Summary | |
---|---|
static int |
DEF_ACCESS_RADIUS
Default access radius for SparseDistributedMemory |
static int |
DEF_ADDRESS_LENGTH
Default address length for SparseDistributedMemory |
static int |
DEF_HARD_LOCATIONS
Default number of hard locations |
static int |
DEF_WORD_LENGTH
Default word length for SparseDistributedMemory |
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
taskSpawner |
Constructor Summary | |
---|---|
EpisodicMemoryImpl()
Default constructor |
Method Summary | |
---|---|
void |
addListener(ModuleListener listener)
Override this method to add a listener to the module |
void |
decayModule(long ticks)
Decay only this Module. |
java.lang.Object |
getModuleContent(java.lang.Object... params)
Intended to be called from the GUI. |
SparseDistributedMemory |
getSdm()
Returns the SDM used in this EpisodicMemory |
Translator |
getTranslator()
Returns the Translator associated with this
EpisodicMemoryImpl |
void |
init()
Will set parameters with the following names: tem.numOfHardLoc tem.addressLength tem.wordLength tem.activationRadius |
void |
learn(BroadcastContent content)
This is a placeholder method to remind implementing classes that they should implement learning. |
void |
receiveBroadcast(BroadcastContent bc)
This method should return as possible in order to not delay the rest of the broadcasting. |
void |
receiveCue(NodeStructure ns)
Receive a cue as a NodeStructure
In this implementation, first the cue is translated to a BitVector. |
void |
setTranslator(Translator translator)
Sets the Translator of this EpisodicMemoryImpl |
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule |
---|
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.FullyInitializable |
---|
setAssociatedModule |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
getParam, init |
Field Detail |
---|
public static final int DEF_HARD_LOCATIONS
public static final int DEF_ADDRESS_LENGTH
SparseDistributedMemory
public static final int DEF_WORD_LENGTH
SparseDistributedMemory
public static final int DEF_ACCESS_RADIUS
SparseDistributedMemory
Constructor Detail |
---|
public EpisodicMemoryImpl()
Method Detail |
---|
public void init()
init
in interface Initializable
init
in class FrameworkModuleImpl
FrameworkModuleImpl.init()
public void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener
in interface FrameworkModule
addListener
in class FrameworkModuleImpl
listener
- - listener of this FrameworkModulepublic void receiveBroadcast(BroadcastContent bc)
BroadcastListener
receiveBroadcast
in interface BroadcastListener
bc
- the Content of the Broadcastpublic void receiveCue(NodeStructure ns)
NodeStructure
In this implementation, first the cue is translated to a BitVector.
receiveCue
in interface CueListener
ns
- NodeStructure to retrieveTranslator
public void learn(BroadcastContent content)
BroadcastListener
GlobalWorkspace
but should be managed by the receiving module.
learn
in interface BroadcastListener
content
- contentpublic java.lang.Object getModuleContent(java.lang.Object... params)
FrameworkModuleImpl
getModuleContent
in interface FrameworkModule
getModuleContent
in class FrameworkModuleImpl
params
- - specifies what content will be returned.
public void setTranslator(Translator translator)
Translator
of this EpisodicMemoryImpl
translator
- the Translator
to setpublic Translator getTranslator()
Translator
associated with this
EpisodicMemoryImpl
public void decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.public SparseDistributedMemory getSdm()
EpisodicMemory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |