Package com.tt1.simserver.model
Enum Class SimulationStatus
- All Implemented Interfaces:
Serializable,Comparable<SimulationStatus>,Constable
Identifica los estados por los que transita una simulación en el servidor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEl motor ha terminado todos los pasos y el resultado final está listo para ser consultado.La solicitud ha sido registrada, pero el motor todavía no ha empezado a procesar sus turnos.El motor está actualmente ejecutando cálculos y avanzando los turnos de la simulación. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimulationStatusReturns the enum constant of this class with the specified name.static SimulationStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
La solicitud ha sido registrada, pero el motor todavía no ha empezado a procesar sus turnos. -
RUNNING
El motor está actualmente ejecutando cálculos y avanzando los turnos de la simulación. -
COMPLETED
El motor ha terminado todos los pasos y el resultado final está listo para ser consultado.
-
-
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
-