|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl
edu.memphis.ccrg.lida.framework.shared.LinkImpl
public class LinkImpl
A Link that connects a Node to a Linkable (Node or Link).
Field Summary | |
---|---|
protected PamLink |
groundingPamLink
PamLink in PAM that grounds this Link. |
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION |
Constructor Summary | |
---|---|
LinkImpl()
Default constructor |
|
LinkImpl(LinkImpl l)
Copy constructor |
|
LinkImpl(Node source,
Linkable sink,
LinkCategory category)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
This method compares this LinkImpl with any kind of Link. |
LinkCategory |
getCategory()
Get LinkCategory of this link. |
ExtendedId |
getExtendedId()
Gets extendedId. |
PamLink |
getGroundingPamLink()
Get the grounding PamLink for this link. |
java.lang.String |
getLabel()
Gets label. |
java.lang.Object |
getParam(java.lang.String name,
java.lang.Object defaultValue)
A convenience method to read parameters from the Map of properties set with the init() method. |
Linkable |
getSink()
One end of the link which receives activation from the source. |
Node |
getSource()
One end of the link which provides activation to the sink. |
int |
hashCode()
|
void |
init()
This is a convenience method to initialize this Object. |
void |
init(java.util.Map<java.lang.String,?> params)
This method initializes the module with parameters specified in agent.xml |
boolean |
isSimpleLink()
Returns whether Link is Simple (connects two nodes) |
void |
setCategory(LinkCategory category)
Set LinkCategory. |
void |
setGroundingPamLink(PamLink l)
Set the grounding PamLink for this link. |
void |
setSink(Linkable sink)
Set sink linkable. |
void |
setSource(Node source)
Set source linkable. |
java.lang.String |
toString()
|
void |
updateLinkValues(Link link)
Updates the values of this LinkImpl based on the passed in Link. |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl |
---|
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
decay, excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, getTotalActivation, isRemovable, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Field Detail |
---|
protected PamLink groundingPamLink
Constructor Detail |
---|
public LinkImpl()
public LinkImpl(Node source, Linkable sink, LinkCategory category)
source
- source Node
sink
- sink Linkable
category
- link's LinkCategory
public LinkImpl(LinkImpl l)
l
- source LinkImpl
Method Detail |
---|
public void init(java.util.Map<java.lang.String,?> params)
Initializable
init
in interface Initializable
params
- Map of parameters indexed by String namespublic void init()
Initializable
init
in interface Initializable
public java.lang.Object getParam(java.lang.String name, java.lang.Object defaultValue)
Initializable
getParam
in interface Initializable
name
- the parameter namedefaultValue
- the default value to be returned if the parameter doesn't exist.
public ExtendedId getExtendedId()
Linkable
getExtendedId
in interface Linkable
public Linkable getSink()
Link
getSink
in interface Link
public Node getSource()
Link
getSource
in interface Link
public LinkCategory getCategory()
Link
getCategory
in interface Link
public void setSink(Linkable sink)
Link
setSink
in interface Link
sink
- the new sinkpublic void setSource(Node source)
Link
setSource
in interface Link
source
- the new sourcepublic void setCategory(LinkCategory category)
Link
setCategory
in interface Link
category
- the new categorypublic PamLink getGroundingPamLink()
Link
getGroundingPamLink
in interface Link
public void setGroundingPamLink(PamLink l)
Link
setGroundingPamLink
in interface Link
l
- the new grounding pam linkpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getLabel()
Linkable
getLabel
in interface Linkable
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isSimpleLink()
Link
isSimpleLink
in interface Link
public void updateLinkValues(Link link)
updateLinkValues
in interface Link
link
- Link whose values are used to update with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |