Class ForEach
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.advanced.ForEach
public class ForEach
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function ForEach (loop) executes an expression (2nd argument) for each value of a
phenotype class (input variable, 1st argument) and returns a list of result expressions (i.e. one
result expression per input phenotype value).
| Arguments | Arguments data types | Return data type | Example |
|---|---|---|---|
| <input-var> <exp> |
<input-var>: number <exp>: any |
list of values of the same data type as <exp> |
ForEach(Creatinine, CreatinineCheck) The CreatinineCheck is executed for each Creatinine value. A boolean list expression is returned. |
- Author:
- TOP group
-
Method Summary
Modifier and TypeMethodDescriptioncare.smith.top.model.Expressioncalculate(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) static ForEachget()static care.smith.top.model.Expressionof(care.smith.top.model.Expression... args) static care.smith.top.model.Expressionof(care.smith.top.model.Phenotype... args) static care.smith.top.model.ExpressionMethods 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:
calculatein classcare.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
-