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.
-
-
Constructor Summary
Constructors Constructor Description SymmetricRelationship(PointerType type, PointerTargetNodeList nodes, Synset sourceSynset, Synset targetSynset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Relationship
reverse()
-
Methods inherited from class net.didion.jwnl.data.relationship.Relationship
equals, getDepth, getNodeList, getSize, getSourcePointerTarget, getSourceSynset, getTargetPointerTarget, getTargetSynset, getType, toString
-
-
-
-
Constructor Detail
-
SymmetricRelationship
public SymmetricRelationship(PointerType type, PointerTargetNodeList nodes, Synset sourceSynset, Synset targetSynset)
-
-
Method Detail
-
reverse
public Relationship reverse()
- Specified by:
reverse
in classRelationship
-
-