Class If
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.advanced.If
public class If
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function If returns the then-expression (2nd argument) if a condition (the
if-expression, 1st argument) is true, otherwise the optional else-expression (3rd argument). If
the if-expression is false and the else-expression is undefined, a 'missing value' is returned.
Arguments | Arguments data types | Return data type | Example |
---|---|---|---|
<if-exp> <then-exp> [<else-exp>] |
<if-exp>: boolean <then-exp>: any <else-exp>: same as <then-exp> |
same as <then-exp> |
If(Bilirubin < 1, 1, Bilirubin) The function returns 1 if the Bilirubin value is less than 1, otherwise the Bilirubin value. |
- 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 If
get()
static care.smith.top.model.Expression
of
(care.smith.top.model.Expression... args) static care.smith.top.model.Expression
of
(care.smith.top.model.Phenotype... 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) -
of
public static care.smith.top.model.Expression of(care.smith.top.model.Phenotype... 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
-