View Javadoc
1   package org.opentrafficsim.animation.data;
2   
3   import org.opentrafficsim.draw.road.BusStopAnimation.BusStopData;
4   import org.opentrafficsim.road.network.lane.object.BusStop;
5   
6   /**
7    * Animation data of a BusStop.
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 AnimationBusStopData extends AnimationLaneBasedObjectData<BusStop> implements BusStopData
15  {
16      
17      /**
18       * Constructor.
19       * @param busStop BusStop; bus stop.
20       */
21      public AnimationBusStopData(final BusStop busStop)
22      {
23          super(busStop);
24      }
25  
26      /** {@inheritDoc} */
27      @Override
28      public String toString()
29      {
30          return "Bus stop " + getObject().getFullId();
31      }
32      
33  }