SpeedLimitTypeSpeedLegal.java

  1. package org.opentrafficsim.road.network.speed;

  2. /**
  3.  * Similar to {@code SpeedLimitTypeSpeed} but implements the marker interface {@code LegalSpeedLimit}.
  4.  * <p>
  5.  * Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  6.  * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
  7.  * <p>
  8.  * @version $Revision$, $LastChangedDate$, by $Author$, initial version Apr 30, 2016 <br>
  9.  * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
  10.  * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
  11.  */

  12. public class SpeedLimitTypeSpeedLegal extends SpeedLimitTypeSpeed implements LegalSpeedLimit
  13. {

  14.     /** */
  15.     private static final long serialVersionUID = 20160501L;

  16.     /**
  17.      * Constructor.
  18.      * @param id String; id of this speed limit type, which must be unique
  19.      * @throws NullPointerException if id is null
  20.      */
  21.     public SpeedLimitTypeSpeedLegal(final String id)
  22.     {
  23.         super(id);
  24.     }

  25.     /** {@inheritDoc} */
  26.     @Override
  27.     public final String toString()
  28.     {
  29.         return "SpeedLimitTypeSpeedLegal [" + getId() + "]";
  30.     }

  31. }