|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.memphis.ccrg.lida.framework.initialization.InitializableImpl
edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
edu.memphis.ccrg.lida.episodicmemory.EpisodicMemoryImpl
public class EpisodicMemoryImpl
This is the canonical implementation of EpisodicMemory. It uses a
SparseDistributedMemory 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()
Constructs a new object with default values |
|
| Method Summary | |
|---|---|
void |
addListener(ModuleListener listener)
Override this method to add a listener to the module |
void |
decayModule(long ticks)
Decay only this Module. |
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: em.numOfHardLoc number of hard locations created in SDM to store data em.addressLength size of the hard locations' address em.wordLength size of the hard locations' words (storage) em.activationRadius size of the radius of the hypersphere used to find the "nearby" hard locations of an address |
void |
learn(Coalition coalition)
A place-holder method to remind implementing classes that they should implement learning. |
void |
receiveBroadcast(Coalition coalition)
Listener must receive a broadcast of a the winning Coalition
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, getModuleContent, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule, toString |
| Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
|---|
containsParameter, getParam, getParameters, init |
| 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, getModuleContent, 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 |
|---|
containsParameter, getParam, getParameters, 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 Initializableinit in class InitializableImplpublic void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener in interface FrameworkModuleaddListener in class FrameworkModuleImpllistener - - listener of this FrameworkModulepublic void receiveBroadcast(Coalition coalition)
BroadcastListenerCoalition
This method should return as possible in order to not delay the rest of the broadcasting.
receiveBroadcast in interface BroadcastListenercoalition - the Coalition that won the most recent competition for consciousnesspublic void receiveCue(NodeStructure ns)
NodeStructure In this implementation, first
the cue is translated to a BitVector.
receiveCue in interface CueListenerns - NodeStructure to retrieveTranslatorpublic void learn(Coalition coalition)
BroadcastListenerGlobalWorkspace
and thus it should be managed by the receiving module.
learn in interface BroadcastListenercoalition - the Coalition that won the most recent competition for consciousnesspublic void setTranslator(Translator translator)
Translator of this EpisodicMemoryImpl
translator - the Translator to setpublic Translator getTranslator()
Translator associated with this
EpisodicMemoryImpl
Translatorpublic SparseDistributedMemory getSdm()
EpisodicMemory
SparseDistributedMemorypublic void decayModule(long ticks)
FrameworkModule
decayModule in interface FrameworkModuleticks - number of ticks to decay.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||