Package org.evoludo.simulator.models
Enum Class Mode
- All Implemented Interfaces:
Serializable
,Comparable<Mode>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDynamics: follow the time series of the model.Statistics: generate samples to create statistics of the model.Statistics: generate samples from single run to create statistics of the model reflecting the different states of the population. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
DYNAMICS
Dynamics: follow the time series of the model. -
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
Statistics: generate samples from single run to create statistics of the model reflecting the different states of the population.
-
-
Field Details
-
id
String idIdentifying id of the type of mode.
-
-
Constructor Details
-
Mode
Construct an enum for the type of mode.- Parameters:
id
- the identifier of the mode
-
-
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
-
toString
-