Class MaxTrue
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.bool.MaxTrue
public class MaxTrue
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function MaxTrue is an extended Boolean operation. The first argument specifies the
maximum number of subsequent arguments that may be true. If there are at most as many true
arguments (starting with the second argument), the function returns 'true', otherwise 'false'.
Arguments | Arguments data types | Return data type | Example |
---|---|---|---|
<max-num> <exp> <exp>+ |
<max-num>: number <exp>: boolean |
boolean |
MaxTrue(2, Overweight, Hypertension, Stroke) The function returns 'true' if at most two of the tree conditions are true, otherwise 'false'. |
- Author:
- TOP group
-
Method Summary
Modifier and TypeMethodDescriptioncare.smith.top.model.Expression
calculate
(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) static MaxTrue
get()
static care.smith.top.model.Expression
of
(care.smith.top.model.Expression... args) static care.smith.top.model.Expression
Methods inherited from class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
getFunction, getFunctionId, getType, maxArgumentNumber, minArgumentNumber, toString, toStringValues
-
Method Details
-
get
-
of
-
of
public static care.smith.top.model.Expression of(care.smith.top.model.Expression... args) -
calculate
public care.smith.top.model.Expression calculate(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) - Specified by:
calculate
in classcare.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
-