|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.data.relationship.Relationship
public abstract class Relationship
A Relationship
encapsulates the relationship between two synsets. Basically, it is a list of
synsets/words that one must traverse to get from the source synset to the target synset of the
relationship, for some relationship type.
There are two types of relationships - Symmetric
and Asymmetric
.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Two relationships are assumed equal if they have the same source synset, target synset, and type |
int |
getDepth()
Get the depth of this relationship. |
PointerTargetNodeList |
getNodeList()
Get the list that contains the nodes of this relationship. |
int |
getSize()
|
PointerTarget |
getSourcePointerTarget()
Get the pointer target of the source node. |
Synset |
getSourceSynset()
Get the Synset that is the source of this relationship. |
PointerTarget |
getTargetPointerTarget()
Get the pointer target of the target node. |
Synset |
getTargetSynset()
Get the Synset that is the target of this relationship. |
PointerType |
getType()
|
abstract Relationship |
reverse()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public abstract Relationship reverse()
public PointerTargetNodeList getNodeList()
public PointerTarget getSourcePointerTarget()
public PointerTarget getTargetPointerTarget()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public PointerType getType()
public Synset getSourceSynset()
public Synset getTargetSynset()
public int getSize()
public int getDepth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |