Enum Class HealthStatus

java.lang.Object
java.lang.Enum<HealthStatus>
epidemic.model.HealthStatus
All Implemented Interfaces:
Serializable, Comparable<HealthStatus>, Constable

public enum HealthStatus extends Enum<HealthStatus>
Definiuje dopuszczalne stany epidemiczne agenta w systemie. Wykorzystywane przez menedżerów infekcji do decydowania o mechanice zarażania i kwarantanny.
  • Enum Constant Details

    • HEALTHY

      public static final HealthStatus HEALTHY
      Organizmy zdrowe, w pełni podatne na zarażenie patogenem z zewnątrz.
    • CARRIER

      public static final HealthStatus CARRIER
      Bezobjawowi nosiciele patogenu. Przenoszą wirusa, ale sami są odporni na ryzyko zgonu wywołanego infekcją.
    • SICK

      public static final HealthStatus SICK
      Pełnoobjawowi pacjenci, aktywnie rozprzestrzeniający wirusa oraz narażeni na bezpośrednie ryzyko śmiertelności.
    • RECOVERED

      public static final HealthStatus RECOVERED
      Ozdrowieńcy, którzy przechorowali infekcję. Zależnie od ustawień konfiguracji mogą zyskiwać odporność.
  • Constructor Details

    • HealthStatus

      private HealthStatus()
  • Method Details

    • values

      public static HealthStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HealthStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null