net.didion.jwnl.data.relationship
Class SymmetricRelationship

java.lang.Object
  extended by net.didion.jwnl.data.relationship.Relationship
      extended by 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.


Constructor Summary
SymmetricRelationship(PointerType type, PointerTargetNodeList nodes, Synset sourceSynset, Synset targetSynset)
           
 
Method Summary
 Relationship reverse()
           
 
Methods inherited from class net.didion.jwnl.data.relationship.Relationship
equals, getDepth, getNodeList, getSize, getSourcePointerTarget, getSourceSynset, getTargetPointerTarget, getTargetSynset, getType, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SymmetricRelationship

public SymmetricRelationship(PointerType type,
                             PointerTargetNodeList nodes,
                             Synset sourceSynset,
                             Synset targetSynset)
Method Detail

reverse

public Relationship reverse()
Specified by:
reverse in class Relationship