|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PerceptualAssociativeMemory
A main module which contains feature detectors, nodes, and links.
Method Summary | |
---|---|
PamLink |
addDefaultLink(Link link)
Deprecated. Use either addLink(String, Node, Linkable, LinkCategory) or
addDefaultLink(Node, Linkable, LinkCategory) instead. |
PamLink |
addDefaultLink(Node src,
Linkable snk,
LinkCategory cat)
Adds a new PamLink of default type to PAM. |
java.util.Set<PamLink> |
addDefaultLinks(java.util.Set<? extends Link> links)
Deprecated. Use either addLink(String, Node, Linkable, LinkCategory) or
addDefaultLink(Node, Linkable, LinkCategory) instead. |
PamNode |
addDefaultNode(Node node)
Deprecated. Use either addNode(String, String) or addDefaultNode(String) instead. |
PamNode |
addDefaultNode(java.lang.String label)
Adds a new PamNode of default type to PAM with specified label. |
java.util.Set<PamNode> |
addDefaultNodes(java.util.Set<? extends Node> nodes)
Deprecated. Use either addNode(String, String) or
addDefaultNode(String) instead. |
void |
addDetectionAlgorithm(DetectionAlgorithm fd)
Adds specified DetectionAlgorithm to be run. |
PamLink |
addLink(java.lang.String type,
Node src,
Linkable snk,
LinkCategory cat)
Adds a new PamLink of specified type to PAM. |
LinkCategory |
addLinkCategory(LinkCategory cat)
Adds a COPY of specified LinkCategory to this PerceptualAssociativeMemory . |
PamNode |
addNode(java.lang.String type,
java.lang.String label)
Adds a new PamNode of specified type to PAM with specified label. |
void |
addPamListener(PamListener pl)
Adds PamListener . |
void |
addToPercept(Link l)
Adds Link to the percept. |
void |
addToPercept(Node n)
Adds Node to the percept. |
void |
addToPercept(NodeStructure ns)
Adds a NodeStructure to the percept. |
boolean |
containsLink(ExtendedId id)
Contains link. |
boolean |
containsLink(Link link)
Returns true if this PAM contains specified PamLink. |
boolean |
containsNode(ExtendedId id)
Contains node. |
boolean |
containsNode(Node node)
Returns true if this PAM contains specified PamNode. |
double |
getDownscaleFactor()
Gets downscaleFactor |
Link |
getLink(ExtendedId id)
|
java.util.Collection<LinkCategory> |
getLinkCategories()
Returns all categories in this Pam |
LinkCategory |
getLinkCategory(int id)
Returns LinkCategory with specified id. |
java.util.Collection<Link> |
getLinks()
Returns an unmodifiable collection of the PamLink s in this PAM as Link s. |
Node |
getNode(ExtendedId id)
Returns the PamNode with specified ExtendedId or null |
Node |
getNode(int id)
Returns the PamNode with specified id from this PAM or null. |
Node |
getNode(java.lang.String label)
Returns the PamNode with specified label or null. |
java.util.Collection<Node> |
getNodes()
Returns an unmodifiable collection of the PamNode s in this PAM as Node s. |
PropagationStrategy |
getPropagationStrategy()
Gets PropagationStrategy governing how activation is propagated in this PAM. |
double |
getUpscaleFactor()
Gets upscaleFactor |
boolean |
isOverPerceptThreshold(PamLinkable l)
Returns whether PamLinkable is above percept threshold. |
void |
propagateActivationToParents(PamNode pamNode)
Propagates activation from a PamNode to its parents. |
void |
receiveExcitation(PamLinkable linkable,
double amount)
Excites specified PamLinkable an amount of activation. |
void |
receiveExcitation(java.util.Set<PamLinkable> linkables,
double amount)
Excites PamLinkable with an amount of activation. |
void |
setDownscaleFactor(double f)
Sets downscaleFactor |
void |
setPerceptThreshold(double t)
Sets perceptThreshold |
void |
setPropagationStrategy(PropagationStrategy strategy)
Sets PropagationStrategy governing how activation is propagated in this PAM. |
void |
setUpscaleFactor(double f)
Sets upscaleFactor |
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule |
---|
addListener, addSubModule, containsSubmodule, containsSubmodule, decayModule, 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, init |
Method Detail |
---|
PamNode addDefaultNode(java.lang.String label)
PamNode
of default type to PAM with specified label.
Label must be unique. If not, existing node with specified label is returned.
label
- the label of the new PamNode
PamNode
added to PAM, the existing Node with specified label or nullPamNode addNode(java.lang.String type, java.lang.String label)
PamNode
of specified type to PAM with specified label. Type should refer to a subclass of PamNodeImpl
.
Label must be unique. If not, existing node with specified label is returned.
type
- the type of the new PamNode
label
- the label of the new PamNode
PamNode
added to PAM, the existing Node with specified label or nullPamLink addDefaultLink(Node src, Linkable snk, LinkCategory cat)
PamLink
of default type to PAM. If a link with the same attributes already exists
the existing link will be returned instead.
src
- the link's sourcesnk
- the link's sinkcat
- the link's category
PamLink addLink(java.lang.String type, Node src, Linkable snk, LinkCategory cat)
PamLink
of specified type to PAM. Type should refer to a subclass of PamLinkImpl
.
If a link with the same attributes already exists the existing link will be returned instead.
type
- link's typesrc
- the link's sourcesnk
- the link's sinkcat
- the link's category
@Deprecated PamNode addDefaultNode(Node node)
addNode(String, String)
or addDefaultNode(String)
instead.
PerceptualAssociativeMemory
.
Node will be of Pam's default type.
node
- PamNode
@Deprecated java.util.Set<PamNode> addDefaultNodes(java.util.Set<? extends Node> nodes)
addNode(String, String)
or
addDefaultNode(String)
instead.
nodes
- nodes to add
@Deprecated PamLink addDefaultLink(Link link)
addLink(String, Node, Linkable, LinkCategory)
or
addDefaultLink(Node, Linkable, LinkCategory)
instead.
link
- PamLink to add
@Deprecated java.util.Set<PamLink> addDefaultLinks(java.util.Set<? extends Link> links)
addLink(String, Node, Linkable, LinkCategory)
or
addDefaultLink(Node, Linkable, LinkCategory)
instead.
links
- PamLinks to add
void addDetectionAlgorithm(DetectionAlgorithm fd)
DetectionAlgorithm
to be run.
fd
- DetectionAlgorithm
void addPamListener(PamListener pl)
PamListener
.
pl
- listenervoid setPropagationStrategy(PropagationStrategy strategy)
PropagationStrategy
governing how activation is propagated in this PAM.
strategy
- PropagationStrategy
PropagationStrategy getPropagationStrategy()
PropagationStrategy
governing how activation is propagated in this PAM.
PropagationStrategy
void receiveExcitation(PamLinkable linkable, double amount)
PamLinkable
an amount of activation.
linkable
- Id of the PamLinkable receiving the activationamount
- amount of activation to excite{@link BasicDetectionAlgorithm}
void receiveExcitation(java.util.Set<PamLinkable> linkables, double amount)
PamLinkable
with an amount of activation.
linkables
- Ids of PamLinkable to be excitedamount
- amount of activationvoid propagateActivationToParents(PamNode pamNode)
PamNode
to its parents.
pamNode
- The PamNode
to propagate activation from.ExcitationTask
,
PropagationTask
void addToPercept(NodeStructure ns)
ns
- NodeStructurevoid addToPercept(Node n)
Node
to the percept.
n
- Node to addvoid addToPercept(Link l)
Link
to the percept.
l
- Link to addLinkCategory getLinkCategory(int id)
id
- id of LinkCategory sought
java.util.Collection<LinkCategory> getLinkCategories()
LinkCategory
LinkCategory addLinkCategory(LinkCategory cat)
PerceptualAssociativeMemory
.
Category must also be a node in order to be added. Node will be of Pam's default type.
cat
- LinkCategory
boolean containsNode(Node node)
node
- the node
boolean containsNode(ExtendedId id)
id
- ExtendedId of sought node
boolean containsLink(Link link)
link
- the link
boolean containsLink(ExtendedId id)
id
- ExtendedId of sought link
void setPerceptThreshold(double t)
t
- threshold for a Linkable
to become part of the perceptvoid setUpscaleFactor(double f)
f
- scale factor for feed-forward activation propagationdouble getUpscaleFactor()
void setDownscaleFactor(double f)
f
- scale factor for top-down activation propagationdouble getDownscaleFactor()
boolean isOverPerceptThreshold(PamLinkable l)
l
- a PamLinkable
Node getNode(int id)
PamNode
with specified id from this PAM or null.
id
- the id
Node getNode(ExtendedId id)
PamNode
with specified ExtendedId
or null
id
- sought ExtendedId
Node getNode(java.lang.String label)
PamNode
with specified label or null.
This method is intended to be used only during initialization.
label
- sought
Link getLink(ExtendedId id)
id
- link's eid
PamLink
with specified id from this PAM or null.java.util.Collection<Node> getNodes()
PamNode
s in this PAM as Node
s.
java.util.Collection<Link> getLinks()
PamLink
s in this PAM as Link
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |