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 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 Type
    Method
    Description
    care.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
    of(care.smith.top.model.Phenotype phe, Number... range)
     
    static care.smith.top.model.Expression
    of(care.smith.top.model.Phenotype phe, String... range)
     
    static care.smith.top.model.Expression
    of(care.smith.top.model.Phenotype phe, List<care.smith.top.model.Expression> range)
     
    static care.smith.top.model.Expression
    of(List<care.smith.top.model.Expression> args)
     

    Methods inherited from class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity

    getFunction, getFunctionId, getType, maxArgumentNumber, minArgumentNumber, toString, toStringValues

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • get

      public static In get()
    • of

      public static care.smith.top.model.Expression of(List<care.smith.top.model.Expression> args)
    • 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 class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity