View Javadoc
1   package org.opentrafficsim.animation.data;
2   
3   import org.opentrafficsim.draw.road.CrossSectionElementAnimation.ShoulderData;
4   import org.opentrafficsim.road.network.lane.Lane;
5   
6   /**
7    * Animation data of a shoulder.
8    * <p>
9    * Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
10   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
11   * </p>
12   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
13   */
14  public class AnimationShoulderData extends AnimationCrossSectionElementData<Lane> implements ShoulderData
15  {
16  
17      /**
18       * Constructor.
19       * @param shoulder Lane; shoulder.
20       */
21      public AnimationShoulderData(final Lane shoulder)
22      {
23          super(shoulder);
24      }
25  
26      /** {@inheritDoc} */
27      @Override
28      public String toString()
29      {
30          return "Shoulder " + getElement().getLink().getId() + " " + getElement().getOffsetAtBegin();
31      }
32  
33  }