com.rapidminer.operator.learner.igss.hypothesis
Class Literal

java.lang.Object
  extended by com.rapidminer.operator.learner.igss.hypothesis.Literal
All Implemented Interfaces:
java.io.Serializable

public class Literal
extends java.lang.Object
implements java.io.Serializable

Objects of this class represent a literal in a conjunctive rule.

Author:
Dirk Dach
See Also:
Serialized Form

Constructor Summary
Literal(Attribute a, int v)
          Constructs a new Literal.
Literal(Attribute a, int v, int i)
          Constructs a new Literal.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if both attributes and both values are equal.
 Attribute getAttribute()
          Returns the attribute of this literals.
 int getIndex()
          Returns the literals' index(1.dimension) in the allLiterals[][] array of the class ConjunctiveRule.
 int getValue()
          Returns the index of the value of this literals' attribute.
 int hashCode()
           
 java.lang.String toString()
          Returns a String represenation of this Literal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Literal

public Literal(Attribute a,
               int v)
Constructs a new Literal.


Literal

public Literal(Attribute a,
               int v,
               int i)
Constructs a new Literal.

Method Detail

getAttribute

public Attribute getAttribute()
Returns the attribute of this literals.


getValue

public int getValue()
Returns the index of the value of this literals' attribute.


getIndex

public int getIndex()
Returns the literals' index(1.dimension) in the allLiterals[][] array of the class ConjunctiveRule.


equals

public boolean equals(java.lang.Object o)
Returns true if both attributes and both values are equal.

Overrides:
equals in class java.lang.Object

hashCode

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

toString

public java.lang.String toString()
Returns a String represenation of this Literal.

Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I