HeadwayStopLine.java

  1. package org.opentrafficsim.road.gtu.lane.perception.headway;

  2. import org.djunits.value.vdouble.scalar.Length;
  3. import org.opentrafficsim.core.gtu.GTUException;
  4. import org.opentrafficsim.road.network.lane.Lane;

  5. /**
  6.  * <p>
  7.  * Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  8.  * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
  9.  * <p>
  10.  * @version $Revision$, $LastChangedDate$, by $Author$, initial version Jun 30, 2016 <br>
  11.  * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
  12.  * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
  13.  * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
  14.  */
  15. public final class HeadwayStopLine extends AbstractHeadwayLaneBasedObject
  16. {

  17.     /** */
  18.     private static final long serialVersionUID = 20160630L;

  19.     /**
  20.      * Construct a new HeadwayStopLine.
  21.      * @param id String; the id of the object for comparison purposes, can not be null.
  22.      * @param distance the distance to the other object; if this constructor is used, distance cannot be null.
  23.      * @param lane Lane; lane
  24.      * @throws GTUException when id is null, or parameters are inconsistent
  25.      */
  26.     public HeadwayStopLine(final String id, final Length distance, final Lane lane) throws GTUException
  27.     {
  28.         super(ObjectType.STOPLINE, id, distance, lane);
  29.     }

  30.     /** {@inheritDoc} */
  31.     @Override
  32.     public String toString()
  33.     {
  34.         return super.toString();
  35.     }

  36. }