1 package org.opentrafficsim.animation.data;
2
3 import org.opentrafficsim.draw.road.LaneDetectorAnimation.LaneDetectorData;
4 import org.opentrafficsim.road.network.lane.object.detector.LaneDetector;
5
6 /**
7 * Animation data of a LaneDetector.
8 * <p>
9 * Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
10 * <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 AnimationLaneDetectorData extends AnimationLaneBasedObjectData<LaneDetector> implements LaneDetectorData
16 {
17
18 /**
19 * Constructor.
20 * @param laneDetector LaneDetector; lane detector.
21 */
22 public AnimationLaneDetectorData(final LaneDetector laneDetector)
23 {
24 super(laneDetector);
25 }
26
27 /** {@inheritDoc} */
28 @Override
29 public String toString()
30 {
31 return "Lane detector " + getObject().getFullId();
32 }
33
34 }