Enum Class ContextScope
- All Implemented Interfaces:
Serializable
,Comparable<ContextScope>
,java.lang.constant.Constable
ContextScope defines the area of interest for a Listener for the EventContextInterface. Events can be generated for the
current node, for all nodes on the current level (excluding or including the node itself), or for the subtree starting at the
current node.
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 ConstantDescriptionEnum constant for expressing interest in events concerning objects in the context named by the target, including the context named by the target.Enum constant for expressing interest in events concerning objects in the context named by the target, excluding the context named by the target.Enum constant for expressing interest in events concerning the object named by the target.Enum constant for expressing interest in events concerning objects in the subtree of the object named by the target, including the object named by the target. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextScope
Returns the enum constant of this class with the specified name.static ContextScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT_SCOPE
Enum constant for expressing interest in events concerning the object named by the target. -
LEVEL_SCOPE
Enum constant for expressing interest in events concerning objects in the context named by the target, excluding the context named by the target. -
LEVEL_OBJECT_SCOPE
Enum constant for expressing interest in events concerning objects in the context named by the target, including the context named by the target. -
SUBTREE_SCOPE
Enum constant for expressing interest in events concerning objects in the subtree of the object named by the target, including the object named by the target.
-
-
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
-