Package epidemic.model
Enum Class HealthStatus
- All Implemented Interfaces:
Serializable,Comparable<HealthStatus>,Constable
Definiuje dopuszczalne stany epidemiczne agenta w systemie.
Wykorzystywane przez menedżerów infekcji do decydowania o mechanice zarażania i kwarantanny.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBezobjawowi nosiciele patogenu.Organizmy zdrowe, w pełni podatne na zarażenie patogenem z zewnątrz.Ozdrowieńcy, którzy przechorowali infekcję.Pełnoobjawowi pacjenci, aktywnie rozprzestrzeniający wirusa oraz narażeni na bezpośrednie ryzyko śmiertelności. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthStatusReturns the enum constant of this class with the specified name.static HealthStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEALTHY
Organizmy zdrowe, w pełni podatne na zarażenie patogenem z zewnątrz. -
CARRIER
Bezobjawowi nosiciele patogenu. Przenoszą wirusa, ale sami są odporni na ryzyko zgonu wywołanego infekcją. -
SICK
Pełnoobjawowi pacjenci, aktywnie rozprzestrzeniający wirusa oraz narażeni na bezpośrednie ryzyko śmiertelności. -
RECOVERED
Ozdrowieńcy, którzy przechorowali infekcję. Zależnie od ustawień konfiguracji mogą zyskiwać odporność.
-
-
Constructor Details
-
HealthStatus
private HealthStatus()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-