|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 Initializable
init
in class InitializableImpl
public void addListener(ModuleListener listener)
FrameworkModuleImpl
addListener
in interface FrameworkModule
addListener
in class FrameworkModuleImpl
listener
- - listener of this FrameworkModulepublic void receiveBroadcast(Coalition coalition)
BroadcastListener
Coalition
This method should return as possible in order to not delay the rest of the broadcasting.
receiveBroadcast
in interface BroadcastListener
coalition
- 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 CueListener
ns
- NodeStructure to retrieveTranslator
public void learn(Coalition coalition)
BroadcastListener
GlobalWorkspace
and thus it should be managed by the receiving module.
learn
in interface BroadcastListener
coalition
- 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
Translator
public SparseDistributedMemory getSdm()
EpisodicMemory
SparseDistributedMemory
public void decayModule(long ticks)
FrameworkModule
decayModule
in interface FrameworkModule
ticks
- number of ticks to decay.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |