gov.llnl.ontology.wordnet
Class SimpleRelatedForm

java.lang.Object
  extended by gov.llnl.ontology.wordnet.SimpleRelatedForm
All Implemented Interfaces:
RelatedForm

public class SimpleRelatedForm
extends Object
implements RelatedForm

A simple struct based implementation of a RelatedForm.

Author:
Keith Stevens

Field Summary
 int otherIndex
          The index of the related Lemma in the other Sysnet.
 int sourceIndex
          The index of the related Lemma in the source Sysnet.
 
Constructor Summary
SimpleRelatedForm(int sourceIndex, int otherIndex)
          Creates a new SimpleRelatedForm relating the lemma at index sourceIndex for the current Synset to the lemma at index otherIndex of another, related Synset.
 
Method Summary
 int otherIndex()
          Returns the index of the Lemma from a related Synset that is related to a Lemma in this Synset.
 int sourceIndex()
          Returns the index of the Lemma from this Sysnet that is related to another Lemma.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceIndex

public int sourceIndex
The index of the related Lemma in the source Sysnet.


otherIndex

public int otherIndex
The index of the related Lemma in the other Sysnet.

Constructor Detail

SimpleRelatedForm

public SimpleRelatedForm(int sourceIndex,
                         int otherIndex)
Creates a new SimpleRelatedForm relating the lemma at index sourceIndex for the current Synset to the lemma at index otherIndex of another, related Synset.

Method Detail

sourceIndex

public int sourceIndex()
Returns the index of the Lemma from this Sysnet that is related to another Lemma.

Specified by:
sourceIndex in interface RelatedForm

otherIndex

public int otherIndex()
Returns the index of the Lemma from a related Synset that is related to a Lemma in this Synset.

Specified by:
otherIndex in interface RelatedForm


Copyright © 2010-2011. All Rights Reserved.