Enum Class Event.Status

java.lang.Object
java.lang.Enum<Event.Status>
com.amalgamasimulation.engine.Event.Status
All Implemented Interfaces:
Serializable, Comparable<Event.Status>, Constable
Enclosing class:
Event

public static enum Event.Status extends Enum<Event.Status>
Possible statuses of Event. Includes the following values:
  • SCHEDULED - after creation, before start of execution
  • EXECUTING - in process of executing
  • EXECUTED - after completion of execution
  • CANCELLED - cancelled before start of execution
  • Enum Constant Details

    • SCHEDULED

      public static final Event.Status SCHEDULED
      Events receive SCHEDULED status immediately after creation. Event remains in SCHEDULED status until it either starts being executed or cancelled
    • EXECUTING

      public static final Event.Status EXECUTING
      Events in process of execution are in EXECUTING status
    • EXECUTED

      public static final Event.Status EXECUTED
      Events that completed execution are in EXECUTED status
    • CANCELLED

      public static final Event.Status CANCELLED
      Events that have been cancelled and did not start executing are in CANCELLED status
  • Method Details

    • values

      public static Event.Status[] 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 Event.Status 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