Enum Class RunState
- All Implemented Interfaces:
Serializable
,Comparable<RunState>
,java.lang.constant.Constable
RunState indicates the precise state of the Simulator.
Copyright (c) 2020-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe replication has ended, and the simulator cannot be restarted.The replication has started, and the simulator has been initialized, but it has not been started yet.The simulator has been instantiated, but not yet initialized with a Replication.The Simulator run() thread has started; the simulation is running.The Simulator has been started, but the run() thread did not start yet.The Simulator run() thread has been stopped; the simulator is not running.The stopping of the simulator has been initiated, but the run() thread is still running. -
Method Summary
-
Enum Constant Details
-
NOT_INITIALIZED
The simulator has been instantiated, but not yet initialized with a Replication. -
INITIALIZED
The replication has started, and the simulator has been initialized, but it has not been started yet. -
STARTING
The Simulator has been started, but the run() thread did not start yet. -
STARTED
The Simulator run() thread has started; the simulation is running. -
STOPPING
The stopping of the simulator has been initiated, but the run() thread is still running. -
STOPPED
The Simulator run() thread has been stopped; the simulator is not running. -
ENDED
The replication has ended, and the simulator cannot be restarted.
-
-
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
-