Class Logic.Gender

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

    public static class Logic.Gender
    extends Logic
    The Gender condition type tests the patient's gender. (M or F)
    See Also:
    Serialized Form
    • Constructor Detail

      • Gender

        public Gender()
    • Method Detail

      • test

        public boolean test​(Person person,
                            long time)
        Test whether the person's gender matches the specified gender.
        Specified by:
        test in class Logic
        Parameters:
        person - Person to test.
        time - Timestamp for the test.
        Returns:
        True if the gender matches, false otherwise.