|
||||||||||
| 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.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).
ElementFactory| Field Summary | |
|---|---|
protected PamLink |
groundingPamLink
PamLink in a PerceptualAssociativeMemory 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)
Deprecated. Use ElementFactory.getLink(String, Node, Linkable, LinkCategory, String, String, double, double) instead. |
|
LinkImpl(Node src,
Linkable snk,
LinkCategory cat)
Deprecated. Use ElementFactory.getLink(Node, Linkable, LinkCategory) instead. |
|
| 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. |
java.lang.String |
getFactoryType()
Gets factory type |
PamLink |
getGroundingPamLink()
Get the grounding PamLink for this link. |
java.lang.String |
getLabel()
Gets label. |
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()
|
boolean |
isSimpleLink()
Returns whether Link is Simple (connects two nodes) |
void |
setCategory(LinkCategory c)
Set LinkCategory. |
void |
setFactoryType(java.lang.String t)
Sets factory type |
void |
setGroundingPamLink(PamLink l)
Set the grounding PamLink for this link. |
void |
setSink(Linkable snk)
Set sink linkable. |
void |
setSource(Node src)
Set source linkable. |
java.lang.String |
toString()
|
void |
updateLinkValues(Link l)
This default implementation of Link has all of its attributes updated by NodeStructureImpl when links are updated. |
| 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 edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
|---|
containsParameter, getParam, getParameters, init, init |
| 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 |
| Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
|---|
containsParameter, getParam, getParameters, init, init |
| Field Detail |
|---|
protected PamLink groundingPamLink
PamLink in a PerceptualAssociativeMemory that grounds this Link.
| Constructor Detail |
|---|
public LinkImpl()
@Deprecated
public LinkImpl(Node src,
Linkable snk,
LinkCategory cat)
ElementFactory.getLink(Node, Linkable, LinkCategory) instead.
Link with specified parameters.
src - source Nodesnk - sink Linkablecat - link's LinkCategory@Deprecated public LinkImpl(LinkImpl l)
ElementFactory.getLink(String, Node, Linkable, LinkCategory, String, String, double, double) instead.
l - source LinkImpl| Method Detail |
|---|
public ExtendedId getExtendedId()
Linkable
getExtendedId in interface Linkablepublic Linkable getSink()
Link
getSink in interface Linkpublic Node getSource()
Link
getSource in interface Linkpublic LinkCategory getCategory()
Link
getCategory in interface Linkpublic void setSink(Linkable snk)
Link
setSink in interface Linksnk - the new sinkpublic void setSource(Node src)
Link
setSource in interface Linksrc - the new sourcepublic void setCategory(LinkCategory c)
Link
setCategory in interface Linkc - the new categorypublic PamLink getGroundingPamLink()
Link
getGroundingPamLink in interface Linkpublic void setGroundingPamLink(PamLink l)
Link
setGroundingPamLink in interface Linkl - the new grounding pam linkpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getLabel()
Linkable
getLabel in interface Linkablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isSimpleLink()
Link
isSimpleLink in interface Linkpublic void updateLinkValues(Link l)
Link has all of its attributes updated by NodeStructureImpl when links are updated.
Therefore this class does not have to implement this method.
Any subclass with specific class members (e.g. PamLinkImpl) should however override this method.
updateLinkValues in interface Linkl - Link whose values are used to update with.PamLinkImpl.updateLinkValues(Link),
NodeStructureImpl.addLink(Link, String),
NodeStructureImpl.getNewLink(Link, String, Node, Linkable, LinkCategory)public java.lang.String getFactoryType()
Linkable
getFactoryType in interface LinkableElementFactorypublic void setFactoryType(java.lang.String t)
Linkable
setFactoryType in interface Linkablet - the factory type of the LinkableElementFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||