net.sf.extjwnl.data.relationship
Class SymmetricRelationship

java.lang.Object
  extended by net.sf.extjwnl.data.relationship.Relationship
      extended by net.sf.extjwnl.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 synonymy (since, if a is a synonym of b, then be is a synonym of a). Symmetric relationships 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.

Author:
John Didion

Constructor Summary
SymmetricRelationship(PointerType type, PointerTargetNodeList nodes, Synset sourceSynset, Synset targetSynset)
           
 
Method Summary
 Relationship reverse()
           
 
Methods inherited from class net.sf.extjwnl.data.relationship.Relationship
equals, getDepth, getNodeList, getSize, getSourcePointerTarget, getSourceSynset, getTargetPointerTarget, getTargetSynset, getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, 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()
                     throws CloneNotSupportedException
Specified by:
reverse in class Relationship
Throws:
CloneNotSupportedException


Copyright © 2011. All Rights Reserved.