public class Condition
extends java.lang.Object
Condition
Modifier and Type | Field and Description |
---|---|
static int |
ANY
Tag (ANY).
|
static int |
DISTINTO
Tag (NOT EQUAL).
|
static int |
ENTRE
Tag (BETWEEN).
|
static int |
IGUAL
Tag (EQUAL).
|
static int |
MAYOR
Tag (GREATER).
|
static int |
MAYORIGUAL
Tag (GREATER EQUAL).
|
static int |
MENOR
Tag (LESSER).
|
static int |
MENORIGUAL
Tag (LESSER EQUAL).
|
static int |
TIPOMAX
Tag (MAX TYPE).
|
Constructor and Description |
---|
Condition(double valor1,
double valor2,
java.lang.String nombre)
Constructor
|
Condition(double valor,
int tipo,
java.lang.String nombre)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Condition |
clone()
Make a copy of a Constructor object
|
int |
getType()
Returns the type of the condition (gene)
|
boolean |
matching(double valor,
boolean perdido)
Determines if the value is covered by this condition
|
java.lang.String |
print()
Create a string according to the type of the condition
|
public static final int ANY
public static final int IGUAL
public static final int DISTINTO
public static final int MENORIGUAL
public static final int MAYORIGUAL
public static final int MENOR
public static final int MAYOR
public static final int ENTRE
public static final int TIPOMAX
public Condition(double valor, int tipo, java.lang.String nombre)
Constructor
valor
- double Value of the conditiontipo
- int Type of the conditionnombre
- String Name of the conditionpublic Condition(double valor1, double valor2, java.lang.String nombre)
Constructor
valor1
- double Lower value of the condition "ENTRE"valor2
- double Upper value of the condition "ENTRE"nombre
- String Name of the conditionpublic Condition clone()
Make a copy of a Constructor object
clone
in class java.lang.Object
public boolean matching(double valor, boolean perdido)
Determines if the value is covered by this condition
valor
- double value to compareperdido
- boolean true is the value is a missing-valuepublic int getType()
Returns the type of the condition (gene)
public java.lang.String print()
Create a string according to the type of the condition