public class ACQ_Query
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
classification
Defines if this query is positive or negative
|
protected boolean |
isClassified
Defines if the classification of this query has been determined or not
|
protected ACQ_Scope |
scope
Variables involved in this query
|
protected int[] |
values
Values for these variables
|
Constructor and Description |
---|
ACQ_Query()
Empty constructor
|
ACQ_Query(ACQ_Scope scope,
int[] values)
Constructor for a query from a scope and a set of values
|
Modifier and Type | Method and Description |
---|---|
void |
classify_as(ACQ_Query asked_query)
Set the classification of this query to the same value of the specified query
|
void |
classify(boolean classification)
Set if this query is positive or not
|
ACQ_Scope |
getScope()
Returns the scope of this query
|
int[] |
getTuple()
Returns the set of values of this query
|
int |
getValue(int numvar)
Returns the value of the specified variable in this query
|
boolean |
isClassified()
Checks if this query has been classified or not
|
boolean |
isEmpty()
Checks if the scope of this query is empty
|
boolean |
isPositive()
Returns the classification of this query
|
java.lang.String |
toString() |
protected boolean classification
protected boolean isClassified
protected final ACQ_Scope scope
protected final int[] values
public ACQ_Query(ACQ_Scope scope, int[] values)
scope
- Variables of this queryvalues
- Values of these variablespublic ACQ_Query()
public int[] getTuple()
public boolean isEmpty()
public void classify_as(ACQ_Query asked_query)
asked_query
- Query used to set the classification of this querypublic boolean isPositive()
public int getValue(int numvar)
numvar
- Identify the variablepublic boolean isClassified()
public void classify(boolean classification)
classification
- true if this query is positive, else falsepublic java.lang.String toString()
toString
in class java.lang.Object
public ACQ_Scope getScope()