Class Logic.Age

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Logic

    public static class Logic.Age
    extends Logic
    The Age condition type tests the patient's age, in a given unit. (Ex, years for adults or months for young children)
    See Also:
    Serialized Form
    • Constructor Detail

      • Age

        public Age()
    • Method Detail

      • test

        public boolean test​(Person person,
                            long time)
        Description copied from class: Logic
        Test whether the logic is true for the given person at the given time.
        Specified by:
        test in class Logic
        Parameters:
        person - Person to execute logic against
        time - Timestamp to execute logic against
        Returns:
        boolean - whether or not the given condition is true or not