public class Selector
extends java.lang.Object
implements java.lang.Comparable
Class to stores selectors with the form (attribute operator values)
Constructor and Description |
---|
Selector(int attribute,
int operation,
double[] values,
int util)
Class to stores selectors with the form (attribute operator values
|
Selector(int attribute,
int op,
java.lang.String[] nominal,
double[] numeric,
int util)
Class to stores selectors with the form (attribute operator values
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Function to compare two objects of the selector class
|
int |
getAttribute()
Returns the attribute's id
|
int |
getNumValues()
Returns the number of values for this selector
|
java.lang.String |
getNValue()
Returns the nominal value of the associated value
|
java.lang.String[] |
getNValues()
Return the set of nominal values of the selector
|
int |
getOperator()
Return the operator's id
|
double[] |
getValues()
Returns the set of values of the selector
|
double |
getZeroValue()
Return the attribute's value associated
|
void |
print()
Shows the content of a selector: attribute-operator-value
|
void |
setAtribute(int i)
Assign the attribute
|
void |
setOperator(int i)
Assign the operator
|
void |
setValues(double[] f)
Assign the values
|
void |
setZeroValue(double f)
Assign the value
|
public Selector(int attribute, int op, java.lang.String[] nominal, double[] numeric, int util)
Class to stores selectors with the form (attribute operator values
attribute
- attributeop
- operatornominal
- nominal valuesnumeric
- values expressed in numerical wayutil
- el number ofvaluespublic Selector(int attribute, int operation, double[] values, int util)
Class to stores selectors with the form (attribute operator values
attribute
- attributeoperation
- operatorvalues
- set of values (at = a b c)util
- number of valuespublic int compareTo(java.lang.Object o)
Function to compare two objects of the selector class
compareTo
in interface java.lang.Comparable
o
- Objeto Seclector to comparepublic int getAttribute()
Returns the attribute's id
public int getOperator()
Return the operator's id
public double getZeroValue()
Return the attribute's value associated
public java.lang.String getNValue()
Returns the nominal value of the associated value
public double[] getValues()
Returns the set of values of the selector
public java.lang.String[] getNValues()
Return the set of nominal values of the selector
public int getNumValues()
public void setAtribute(int i)
Assign the attribute
i
- atribute's valuepublic void setOperator(int i)
Assign the operator
i
- value of the operatorpublic void setZeroValue(double f)
Assign the value
f
- valuepublic void setValues(double[] f)
Assign the values
f
- valuespublic void print()
Shows the content of a selector: attribute-operator-value