public class Quantifier extends EnumeratedAttribute
boolean[]
or raw true
and false
counts. Accepts the following values:false
false
false
true
true
true
true
than false
true
than false
true
Modifier and Type | Field | Description |
---|---|---|
static Quantifier |
ALL |
ALL instance
|
static Quantifier |
ANY |
ANY instance
|
static Quantifier |
MAJORITY |
MAJORITY instance
|
static Quantifier |
NONE |
NONE instance
|
static Quantifier |
ONE |
ONE instance
|
value
Constructor | Description |
---|---|
Quantifier() |
Default constructor.
|
Quantifier(java.lang.String value) |
Construct a new Quantifier with the specified value.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
evaluate(boolean[] b) |
Evaluate a
boolean array. |
boolean |
evaluate(int t,
int f) |
Evaluate integer
true vs. |
java.lang.String[] |
getValues() |
Return the possible values.
|
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
public static final Quantifier ALL
public static final Quantifier ANY
public static final Quantifier ONE
public static final Quantifier MAJORITY
public static final Quantifier NONE
public Quantifier()
public Quantifier(java.lang.String value)
value
- the EnumeratedAttribute value.public java.lang.String[] getValues()
getValues
in class EnumeratedAttribute
public boolean evaluate(boolean[] b)
boolean
array.b
- the boolean[]
to evaluate.public boolean evaluate(int t, int f)
true
vs. false
counts.t
- the number of true
values.f
- the number of false
values.