dragon.nlp
Class Triple

java.lang.Object
  |
  +--dragon.nlp.Triple
All Implemented Interfaces:
java.lang.Comparable, FrequencySortable, IndexSortable, SortedElement, WeightSortable

public class Triple
extends java.lang.Object
implements java.lang.Comparable, SortedElement

Triple is data structure for binary relation extracted from text

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
Triple(Concept first, Concept second)
           
 
Method Summary
 void addFrequency(int inc)
           
 int compareTo(java.lang.Object obj)
           
 boolean equalTo(Triple triple)
           
 java.lang.String[] getCandidateTUI()
           
 java.lang.String getCandidateTUI(int index)
           
 int getCandidateTUINum()
           
 Concept getFirstConcept()
           
 int getFrequency()
           
 int getIndex()
           
 java.lang.Object getMemo()
           
 Concept getSecondConcept()
           
 java.lang.String getTUI()
           
 double getWeight()
           
 void setCandidateTUI(java.lang.String[] can_rel)
           
 void setFrequency(int freq)
           
 void setIndex(int index)
           
 void setMemo(java.lang.Object memo)
           
 void setTUI(java.lang.String rel)
           
 void setWeight(double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Triple

public Triple(Concept first,
              Concept second)
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

getIndex

public int getIndex()
Specified by:
getIndex in interface IndexSortable

setIndex

public void setIndex(int index)
Specified by:
setIndex in interface IndexSortable

getMemo

public java.lang.Object getMemo()

setMemo

public void setMemo(java.lang.Object memo)

getFirstConcept

public Concept getFirstConcept()

getSecondConcept

public Concept getSecondConcept()

getTUI

public java.lang.String getTUI()

setTUI

public void setTUI(java.lang.String rel)

getCandidateTUI

public java.lang.String[] getCandidateTUI()

getCandidateTUI

public java.lang.String getCandidateTUI(int index)

getCandidateTUINum

public int getCandidateTUINum()

setCandidateTUI

public void setCandidateTUI(java.lang.String[] can_rel)

getWeight

public double getWeight()
Specified by:
getWeight in interface WeightSortable

setWeight

public void setWeight(double weight)
Specified by:
setWeight in interface WeightSortable

getFrequency

public int getFrequency()
Specified by:
getFrequency in interface FrequencySortable

setFrequency

public void setFrequency(int freq)
Specified by:
setFrequency in interface FrequencySortable

addFrequency

public void addFrequency(int inc)

equalTo

public boolean equalTo(Triple triple)