Enum Class Mode

All Implemented Interfaces:
Serializable, Comparable<Mode>, Constable

public enum Mode extends Enum<Mode>
Modes of the model. Currently thefollowing modes are supported:
DYNAMICS
follow the time series of the model. This is the default.
STATISTICS_SAMPLE
generate samples to create statistics of the model. Run model until it stops and advertise that a new data point is available. Start next sample, once the data is retrieved and processed.
STATISTICS_UPDATE
generate samples from single run to create statistics of the model reflecting the different states of the population.
  • Enum Constant Details

    • DYNAMICS

      public static final Mode DYNAMICS
      Dynamics: follow the time series of the model.
    • STATISTICS_SAMPLE

      public static final Mode STATISTICS_SAMPLE
      Statistics: generate samples to create statistics of the model. Run model until it stops and advertise that a new data point is available. Start next sample, once the data is retrieved and processed.
    • STATISTICS_UPDATE

      public static final Mode STATISTICS_UPDATE
      Statistics: generate samples from single run to create statistics of the model reflecting the different states of the population.
  • Field Details

    • id

      String id
      Identifying id of the type of mode.
  • Constructor Details

    • Mode

      private Mode(String id)
      Construct an enum for the type of mode.
      Parameters:
      id - the identifier of the mode
  • Method Details

    • values

      public static Mode[] 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 Mode 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Mode>