|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.episodicmemory.sdm.BasicTranslator
public class BasicTranslator
This is the class that translates from nodes to boolean vectors and vice- versa. The translation works by assigning a unique index to every node.
Constructor Summary | |
---|---|
BasicTranslator()
Default constructor. |
|
BasicTranslator(int size,
PerceptualAssociativeMemory pam)
Constructor of the class. |
Method Summary | |
---|---|
PerceptualAssociativeMemory |
getPam()
|
int |
getSize()
|
void |
setPam(PerceptualAssociativeMemory pam)
|
void |
setSize(int size)
|
NodeStructure |
translate(cern.colt.bitvector.BitVector data)
Translates a bit vector into a node structure. |
cern.colt.bitvector.BitVector |
translate(NodeStructure structure)
Translates a node structure into a bit vector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicTranslator(int size, PerceptualAssociativeMemory pam)
size
- the number of positions of the bit vectorpam
- the PAM associated with this translatorpublic BasicTranslator()
Translator
.
Method Detail |
---|
public NodeStructure translate(cern.colt.bitvector.BitVector data)
translate
in interface Translator
data
- the boolean vector to be translated
BitVector
public cern.colt.bitvector.BitVector translate(NodeStructure structure)
translate
in interface Translator
structure
- the node structure to be translated
public int getSize()
public void setSize(int size)
size
- the vectors' size in the SparseDistributedMemory
public PerceptualAssociativeMemory getPam()
public void setPam(PerceptualAssociativeMemory pam)
pam
- the pam to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |