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-2025 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/dsol/manual/" target="_blank">DSOL Manual</a>. The DSOL
10   * project is distributed under a three-clause BSD-style license, which can be found at
11   * <a href="https://simulation.tudelft.nl/dsol/docs/latest/license.html" target="_blank">DSOL License</a>.
12   * </p>
13   * @author <a href="https://github.com/averbraeck" target="_blank">Alexander Verbraeck</a>
14   */
15  public enum ContextScope
16  {
17      /**
18       * Enum constant for expressing interest in events concerning the object named by the target.
19       */
20      OBJECT_SCOPE,
21  
22      /**
23       * Enum constant for expressing interest in events concerning objects in the context named by the target, excluding the
24       * context named by the target.
25       */
26      LEVEL_SCOPE,
27  
28      /**
29       * Enum constant for expressing interest in events concerning objects in the context named by the target, including the
30       * context named by the target.
31       */
32      LEVEL_OBJECT_SCOPE,
33  
34      /**
35       * Enum constant for expressing interest in events concerning objects in the subtree of the object named by the target,
36       * including the object named by the target.
37       */
38      SUBTREE_SCOPE;
39  }