|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.data.Term
public class Term
This class represents a term in the antecedent of a rule.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.myra.framework.Info |
---|
net.sf.myra.framework.Info.Void |
Constructor Summary | |
---|---|
Term(java.lang.String attribute,
int index)
Default constructor. |
Method Summary | |
---|---|
Term |
clone()
|
boolean |
equals(java.lang.Object o)
|
boolean |
equals(Term o)
Compares this term against the specified term for equality. |
java.lang.String |
getAttribute()
Returns the term's attribute name. |
int |
getIndex()
Returns the term's attribute index. |
Operator |
getOperator()
Returns the term's operator. |
double[] |
getValues()
Returns the term values. |
boolean |
satisfies(double value)
Verifies if the specified attribute value satisfies the term. |
void |
setDescription(java.lang.String... description)
Sets the term values description. |
void |
setOperator(Operator operator)
Sets the term operator. |
void |
setValues(double... values)
Sets the term values. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Term(java.lang.String attribute, int index)
attribute
- the attribute name.index
- the attribute index.Method Detail |
---|
public java.lang.String getAttribute()
public Operator getOperator()
public int getIndex()
public double[] getValues()
public void setOperator(Operator operator)
operator
- the operator to set.public void setValues(double... values)
values
- the values to set.public void setDescription(java.lang.String... description)
description
- the array of values description.public boolean satisfies(double value)
value
- the attribute value.
true
if the attribute value satisfies the term
operator; false
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(Term o)
o
- the term to be compared to.
true
if both terms are equal; false
otherwise.public Term clone()
clone
in interface net.sf.myra.framework.Info
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |