emolib.classifier.machinelearning
Class ARNReduced.GraphElement

java.lang.Object
  extended by emolib.classifier.machinelearning.ARNReduced.GraphElement
Enclosing class:
ARNReduced

public class ARNReduced.GraphElement
extends java.lang.Object

Inner class representing an element of the graph.


Constructor Summary
ARNReduced.GraphElement()
          Constructor.
 
Method Summary
 void addOneCount()
          Method to add one count.
 ARNReduced.GraphElement cloneElement()
          Function to clone this element.
 java.lang.String getLeftTerm()
          Method to get the left term of this link.
 java.lang.String getRightTerm()
          Method to get the right term of this link.
 java.lang.String getTerm()
          Method to get the term of this node.
 int getTermFrequency()
          Function to retrieve the number of counts.
 double getUtilityMeasure()
          Function to retrieve the utility measure.
 float getWeighedMeasure()
          Function to retrieve the weighed measure.
 boolean isLink()
          Function to see if this graph element is a link.
 boolean isNode()
          Function to see if this graph element is a node.
 void setAsLink()
          Method to set this graph element as a link.
 void setAsNode()
          Method to set this graph element as a node.
 void setLeftTerm(java.lang.String theTerm)
          Method to set the left term of this link.
 void setRightTerm(java.lang.String theTerm)
          Method to set the right term of this link.
 void setTerm(java.lang.String theTerm)
          Method to set the term of this node.
 void setTermFrequency(int tf)
          Method to set the number of counts.
 void setUtilityMeasure(double um)
          Method to set the utility measure.
 void setWeighedMeasure(float wm)
          Method to set the weighed measure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARNReduced.GraphElement

public ARNReduced.GraphElement()
Constructor.

Method Detail

setUtilityMeasure

public void setUtilityMeasure(double um)
Method to set the utility measure.

Parameters:
um - The value of the utility measure.

getUtilityMeasure

public double getUtilityMeasure()
Function to retrieve the utility measure.

Returns:
The value of the utility measure.

setWeighedMeasure

public void setWeighedMeasure(float wm)
Method to set the weighed measure.

Parameters:
wm - The value of the weighed measure.

getWeighedMeasure

public float getWeighedMeasure()
Function to retrieve the weighed measure.

Returns:
The value of the weighed measure.

setAsNode

public void setAsNode()
Method to set this graph element as a node.


setAsLink

public void setAsLink()
Method to set this graph element as a link.


isNode

public boolean isNode()
Function to see if this graph element is a node.

Returns:
True if it is a node.

isLink

public boolean isLink()
Function to see if this graph element is a link.

Returns:
True if it is a link.

setTerm

public void setTerm(java.lang.String theTerm)
Method to set the term of this node.

Parameters:
theTerm - The term to set.

setLeftTerm

public void setLeftTerm(java.lang.String theTerm)
Method to set the left term of this link.

Parameters:
theTerm - The term to set.

setRightTerm

public void setRightTerm(java.lang.String theTerm)
Method to set the right term of this link.

Parameters:
theTerm - The term to set.

getTerm

public java.lang.String getTerm()
Method to get the term of this node.

Returns:
The term.

getLeftTerm

public java.lang.String getLeftTerm()
Method to get the left term of this link.

Returns:
The term.

getRightTerm

public java.lang.String getRightTerm()
Method to get the right term of this link.

Returns:
The term.

addOneCount

public void addOneCount()
Method to add one count.


setTermFrequency

public void setTermFrequency(int tf)
Method to set the number of counts.

Parameters:
tf - The term frequency to set.

getTermFrequency

public int getTermFrequency()
Function to retrieve the number of counts.

Returns:
The number of counts (term frequency):

cloneElement

public ARNReduced.GraphElement cloneElement()
Function to clone this element.

Returns:
A clone of this element.