SpeedLimitTypeSpeed.java

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

  2. import org.djunits.value.vdouble.scalar.Speed;

  3. /**
  4.  * Implementation of SpeedLimitType suitable for the most common speed info class {@code Speed}.
  5.  * <p>
  6.  * Copyright (c) 2013-2018 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 Apr 30, 2016 <br>
  10.  * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
  11.  * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
  12.  */
  13. public class SpeedLimitTypeSpeed extends SpeedLimitType<Speed>
  14. {

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

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

  26.     /** {@inheritDoc} */
  27.     @Override
  28.     @SuppressWarnings("checkstyle:designforextension")
  29.     public String toString()
  30.     {
  31.         return "SpeedLimitTypeSpeed [" + getId() + "]";
  32.     }

  33. }