View Javadoc
1   package nl.tudelft.simulation.naming.context.event;
2   
3   /**
4    * ContextScope defines the area of interest for a Listener for the EventContextInterface. Events can be generated for the
5    * current node, for all nodes on the current level (excluding or including the node itself), or for the subtree starting at the
6    * current node.
7    * <p>
8    * Copyright (c) 2020-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See
9    * for project information <a href="https://simulation.tudelft.nl/" target="_blank"> https://simulation.tudelft.nl</a>. The DSOL
10   * project is distributed under a three-clause BSD-style license, which can be found at
11   * <a href="https://https://simulation.tudelft.nl/dsol/docs/latest/license.html" target="_blank">
12   * https://https://simulation.tudelft.nl/dsol/docs/latest/license.html</a>.
13   * </p>
14   * @author <a href="https://www.tudelft.nl/averbraeck" target="_blank">Alexander Verbraeck</a>
15   */
16  public enum ContextScope
17  {
18      /**
19       * Enum constant for expressing interest in events concerning the object named by the target.
20       */
21      OBJECT_SCOPE,
22  
23      /**
24       * Enum constant for expressing interest in events concerning objects in the context named by the target, excluding the
25       * context named by the target.
26       */
27      LEVEL_SCOPE,
28  
29      /**
30       * Enum constant for expressing interest in events concerning objects in the context named by the target, including the
31       * context named by the target.
32       */
33      LEVEL_OBJECT_SCOPE,
34  
35      /**
36       * Enum constant for expressing interest in events concerning objects in the subtree of the object named by the target,
37       * including the object named by the target.
38       */
39      SUBTREE_SCOPE;
40  }