public class Selector
extends java.lang.Object
implements java.lang.Comparable
Structure with the set of complex for the rules
Constructor and Description |
---|
Selector(int atr,
int op,
double val)
Constructor
|
Selector(int atr,
int op,
double[] val)
Constructor for several values
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Function to compare two objects of this class
|
int |
getAtributo()
Return the id of the attribute
|
int |
getOperador()
Return the id of the operator
|
double |
getValor()
Return the value associated with the attribute
|
double[] |
getValores()
Return the set of values for the selector
|
void |
print()
Show the selector
|
void |
setAtributo(int i)
Sets the attribute
|
void |
setOperador(int i)
Sets the operator
|
void |
setValor(double f)
Sets the value for the selector
|
void |
setValores(double[] f)
Sets a set of value for the selector
|
public Selector(int atr, int op, double val)
Constructor
atr
- Attribute to addop
- Operator to addval
- Value to addpublic Selector(int atr, int op, double[] val)
Constructor for several values
atr
- Attribute to addop
- Operator to addval
- Array of values to addpublic int compareTo(java.lang.Object o)
Function to compare two objects of this class
compareTo
in interface java.lang.Comparable
o
- Selector to comparepublic int getAtributo()
Return the id of the attribute
public int getOperador()
Return the id of the operator
public double getValor()
Return the value associated with the attribute
public double[] getValores()
Return the set of values for the selector
public void setAtributo(int i)
Sets the attribute
i
- Value of the attributepublic void setOperador(int i)
Sets the operator
i
- Value of the operatorpublic void setValor(double f)
Sets the value for the selector
f
- Value of the selectorpublic void setValores(double[] f)
Sets a set of value for the selector
f
- Array of values of the selectorpublic void print()
Show the selector