View Javadoc
1   package org.opentrafficsim.road.gtu.lane.perception.headway;
2   
3   import org.djunits.value.vdouble.scalar.Length;
4   import org.opentrafficsim.core.gtu.GtuException;
5   import org.opentrafficsim.road.network.lane.Lane;
6   
7   /**
8    * <p>
9    * Copyright (c) 2013-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/averbraeck">Alexander Verbraeck</a>
13   * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a>
14   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
15   */
16  public final class HeadwayStopLine extends AbstractHeadwayLaneBasedObject
17  {
18  
19      /** */
20      private static final long serialVersionUID = 20160630L;
21  
22      /**
23       * Construct a new HeadwayStopLine.
24       * @param id String; the id of the object for comparison purposes, can not be null.
25       * @param distance the distance to the other object; if this constructor is used, distance cannot be null.
26       * @param lane Lane; lane
27       * @throws GtuException when id is null, or parameters are inconsistent
28       */
29      public HeadwayStopLine(final String id, final Length distance, final Lane lane) throws GtuException
30      {
31          super(ObjectType.STOPLINE, id, distance, lane);
32      }
33  
34      /** {@inheritDoc} */
35      @Override
36      public String toString()
37      {
38          return super.toString();
39      }
40  
41  }