org.mindswap.pellet.rete
Class Variable

java.lang.Object
  extended by org.mindswap.pellet.rete.Variable
All Implemented Interfaces:
java.lang.Comparable, Term

public class Variable
extends java.lang.Object
implements Term, java.lang.Comparable


Constructor Summary
Variable(java.lang.String variableName)
          Creates a variable.
 
Method Summary
 int compareTo(java.lang.Object arg0)
           
 boolean equals(java.lang.Object other)
          Checks if this variable is equal to some other variable.
 java.lang.String getVariableName()
          Returns the name of this variable.
 int hashCode()
           
 java.lang.String toString()
          Converts this variable to a string.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String variableName)
Creates a variable.

Parameters:
variableName - the name of the variable
Method Detail

getVariableName

public java.lang.String getVariableName()
Returns the name of this variable.

Returns:
the name of this variable

toString

public java.lang.String toString()
Converts this variable to a string.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of the variable

equals

public boolean equals(java.lang.Object other)
Checks if this variable is equal to some other variable.

Overrides:
equals in class java.lang.Object
Parameters:
other - the other object
Returns:
true if this variable is equal to some other variable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

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


Copyright © 2007-2009 Natalya Keberle. All Rights Reserved.