Enum Class ReplicationState
- All Implemented Interfaces:
Serializable
,Comparable<ReplicationState>
,java.lang.constant.Constable
ReplicationState indicates the precise state of the replication that is being executed by 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 END_REPLICATION_EVENT has been fired.The replication has ended, but the run() thread is still running; the END_REPLICATION_EVENT has not yet been fired.The simulator has been initialized with the replication, but it has not been started yet, and the the START_REPLICATION_EVENT has not yet been fired.The simulator has been instantiated, but not yet initialized with a Replication.The execution of the replication has started, the START_REPLICATION_EVENT has been fired. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicationState
Returns the enum constant of this class with the specified name.static ReplicationState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_INITIALIZED
The simulator has been instantiated, but not yet initialized with a Replication. -
INITIALIZED
The simulator has been initialized with the replication, but it has not been started yet, and the the START_REPLICATION_EVENT has not yet been fired. -
STARTED
The execution of the replication has started, the START_REPLICATION_EVENT has been fired. -
ENDING
The replication has ended, but the run() thread is still running; the END_REPLICATION_EVENT has not yet been fired. -
ENDED
The replication has ended, and the simulator cannot be restarted; the END_REPLICATION_EVENT has been fired.
-
-
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
-