Enum Class SimulationStatus

java.lang.Object
java.lang.Enum<SimulationStatus>
com.tt1.simserver.model.SimulationStatus
All Implemented Interfaces:
Serializable, Comparable<SimulationStatus>, Constable

public enum SimulationStatus extends Enum<SimulationStatus>
Identifica los estados por los que transita una simulación en el servidor.
  • Enum Constant Details

    • PENDING

      public static final SimulationStatus PENDING
      La solicitud ha sido registrada, pero el motor todavía no ha empezado a procesar sus turnos.
    • RUNNING

      public static final SimulationStatus RUNNING
      El motor está actualmente ejecutando cálculos y avanzando los turnos de la simulación.
    • COMPLETED

      public static final SimulationStatus COMPLETED
      El motor ha terminado todos los pasos y el resultado final está listo para ser consultado.
  • Method Details

    • values

      public static SimulationStatus[] 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 SimulationStatus 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