package nl.tudelft.simulation.naming.context; /** * ContextScope defines the area of interest for a NamingListener for the EventContextInterface. Events can be generated for the * current node, for all nodes on the current level, or for the subtree starting at the current node *

* Copyright (c) 2020-2020 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. */ ONELEVEL_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; }