AnyLogic
Expand
Font size
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
See Also:
Engine.setSimultaneousEventsSelectionMode(EventSelectionMode)

Enum Constant Summary

Enum 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

Method Summary

All Methods Static Methods Concrete Methods 
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

Methods inherited from class java.lang.Enum

compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

EVENT_SELECTION_LIFO

public static final Engine.EventSelectionMode 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_FIFO

public static final Engine.EventSelectionMode 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_RANDOM

public static final Engine.EventSelectionMode 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.

Method Detail

values

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

valueOf

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 name
java.lang.NullPointerException - if the argument is null
How can we improve this article?