Class In
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.set.In
public class In
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function In return 'true' if the given value (1st argument) lies in a given range (2nd
argument), otherwise 'false'. The function is automatically generated for all phenotype
restrictions and does not have to be defined manually.
Arguments | Arguments data types | Return data type | Example |
---|---|---|---|
<value-exp> <restr-exp> |
<value-exp>: number or string <restr-exp>: same as <value-exp> |
boolean |
In(Body_Temperature, Increased) The function returns 'true' if the actual temperature value lies in the increased range. |
<value-exp> <range-value> <range-value>+ |
<value-exp>: number or string <range-value>: same as <value-exp> |
boolean |
In(Blood_Group, A, B) The function returns 'true' if the actual blood group is A or B. |
- 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 In
get()
static care.smith.top.model.Expression
of
(care.smith.top.model.Expression... args) static care.smith.top.model.Expression
static care.smith.top.model.Expression
static care.smith.top.model.Expression
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 phe, List<care.smith.top.model.Expression> range) -
of
public static care.smith.top.model.Expression of(care.smith.top.model.Phenotype phe, String... range) -
of
public static care.smith.top.model.Expression of(care.smith.top.model.Phenotype phe, Number... range) -
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
-