View Javadoc
1   package org.opentrafficsim.editor.extensions.map;
2   
3   import org.opentrafficsim.draw.road.LaneDetectorAnimation.SinkData;
4   import org.opentrafficsim.editor.OtsEditor;
5   import org.opentrafficsim.editor.XsdTreeNode;
6   
7   /**
8    * Sink data for the editor Map.
9    * <p>
10   * Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
11   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
12   * </p>
13   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
14   */
15  public class MapSinkData extends MapLaneBasedObjectData implements SinkData
16  {
17  
18      /** */
19      private static final long serialVersionUID = 20240302L;
20  
21      /**
22       * Constructor.
23       * @param map Map; map.
24       * @param node XsdTreeNode; node Ots.Network.Link.TrafficLight.
25       * @param editor OtsEditor; editor.
26       */
27      public MapSinkData(final EditorMap map, final XsdTreeNode node, final OtsEditor editor)
28      {
29          super(map, node, editor);
30      }
31  
32      /** {@inheritDoc} */
33      @Override
34      public String toString()
35      {
36          return "Sink " + getLinkLanePositionId();
37      }
38  
39  }