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

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

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

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

  34. }