package nl.tudelft.simulation.naming.context.event; /** * 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-2022 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://simulation.tudelft.nl/dsol/3.0/license.html. *

* @author Alexander Verbraeck */ public enum ContextScope { /** * Enum constant for expressing interest in events concerning the object named by the target. */ OBJECT_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_SCOPE, /** * Enum constant for expressing interest in events concerning objects in the context named by the target, including the * context named by the target. */ LEVEL_OBJECT_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. */ SUBTREE_SCOPE; }