net.didion.jwnl.data.relationship
Class SymmetricRelationship
java.lang.Object
net.didion.jwnl.data.relationship.Relationship
net.didion.jwnl.data.relationship.SymmetricRelationship
public class SymmetricRelationship
- extends Relationship
A symmetric relationship is one whose type is symmetric (its own inverse). An example of a symmetric
relationship is synonomy (since, if a is a synonym of b, then be is a synonym of a). Symmetric relationsips
differ from asymmetric relationships in that there is no definite divergence point between the ancestry of
the source and target synsets. Another way of saying this is that the target synset will always been in
the source's ancestry, and vice versa. For this reason, symmetric relationships have no concept of a
common parent index.
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
SymmetricRelationship
public SymmetricRelationship(PointerType type,
PointerTargetNodeList nodes,
Synset sourceSynset,
Synset targetSynset)
reverse
public Relationship reverse()
- Specified by:
reverse
in class Relationship