Class SpeedLimitTypeSpeedLegal
- java.lang.Object
-
- org.opentrafficsim.base.Type<SpeedLimitType<T>>
-
- org.opentrafficsim.road.network.speed.SpeedLimitType<Speed>
-
- org.opentrafficsim.road.network.speed.SpeedLimitTypeSpeed
-
- org.opentrafficsim.road.network.speed.SpeedLimitTypeSpeedLegal
-
- All Implemented Interfaces:
Serializable
,org.opentrafficsim.base.Identifiable
,LegalSpeedLimit
public class SpeedLimitTypeSpeedLegal extends SpeedLimitTypeSpeed implements LegalSpeedLimit
Similar toSpeedLimitTypeSpeed
but implements the marker interfaceLegalSpeedLimit
.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Apr 30, 2016
- Author:
- Alexander Verbraeck, Wouter Schakel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpeedLimitTypeSpeedLegal(String id)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class org.opentrafficsim.road.network.speed.SpeedLimitType
equals, getId, getInfoClass, hashCode
-
-
-
-
Constructor Detail
-
SpeedLimitTypeSpeedLegal
public SpeedLimitTypeSpeedLegal(String id)
Constructor.- Parameters:
id
- String; id of this speed limit type, which must be unique- Throws:
NullPointerException
- if id is null
-
-
Method Detail
-
toString
public final String toString()
- Overrides:
toString
in classSpeedLimitTypeSpeed
-
-