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)
        Test whether the person's age satisfies the specified condition.
        Specified by:
        test in class Logic
        Parameters:
        person - Person to test.
        time - Timestamp for the test.
        Returns:
        True if the age condition is satisfied, false otherwise.