Package com.anylogic.engine
- java.lang.Object
-
- java.lang.Enum<Engine.EventSelectionMode>
-
- com.anylogic.engine.Engine.EventSelectionMode
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Engine.EventSelectionMode>
- Enclosing class:
- Engine
public static enum Engine.EventSelectionMode extends java.lang.Enum<Engine.EventSelectionMode>
Simultaneous event selection mode constants
EVENT_SELECTION_FIFO |
Deterministic selection mode (first in - first out) constant for
Engine.setSimultaneousEventsSelectionMode(EventSelectionMode) Offers good performance, simultaneous events are executed in the same order they were scheduled. This is the default mode used by engine |
EVENT_SELECTION_LIFO |
Deterministic selection mode (last in - first out) constant for
Engine.setSimultaneousEventsSelectionMode(EventSelectionMode) Offers good performance, simultaneous events are executed in the reverse to the order they were scheduled |
EVENT_SELECTION_RANDOM |
Random selection mode constant for
Engine.setSimultaneousEventsSelectionMode(EventSelectionMode) This mode is slower than EVENT_SELECTION_FIFO or EVENT_SELECTION_LIFO This mode utilises the default random number generator of the Engine. |
Enum Constant | Description |
---|
static Engine.EventSelectionMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Engine.EventSelectionMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final Engine.EventSelectionMode EVENT_SELECTION_LIFO
Deterministic selection mode (last in - first out) constant for
Offers good performance, simultaneous events are executed in the reverse to the order they were scheduled
Engine.setSimultaneousEventsSelectionMode(EventSelectionMode)
Offers good performance, simultaneous events are executed in the reverse to the order they were scheduled
public static final Engine.EventSelectionMode EVENT_SELECTION_FIFO
Deterministic selection mode (first in - first out) constant for
Offers good performance, simultaneous events are executed in the same order they were scheduled.
This is the default mode used by engine
Engine.setSimultaneousEventsSelectionMode(EventSelectionMode)
Offers good performance, simultaneous events are executed in the same order they were scheduled.
This is the default mode used by engine
public static final Engine.EventSelectionMode EVENT_SELECTION_RANDOM
Random selection mode constant for
This mode is slower than
This mode utilises the default random number generator of the Engine.
Engine.setSimultaneousEventsSelectionMode(EventSelectionMode)
This mode is slower than
EVENT_SELECTION_FIFO
or EVENT_SELECTION_LIFO
This mode utilises the default random number generator of the Engine.
public static Engine.EventSelectionMode[] values()
Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Engine.EventSelectionMode c : Engine.EventSelectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
public static Engine.EventSelectionMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
How can we improve this article?
-