Class SpeedLimitType<T>
java.lang.Object
org.opentrafficsim.base.Type<SpeedLimitType<T>>
org.opentrafficsim.road.network.speed.SpeedLimitType<T>
- Type Parameters:
T- Class of speed info that is linked to the speed limit type.
- All Implemented Interfaces:
Serializable,Identifiable
- Direct Known Subclasses:
SpeedLimitTypeSpeed
public class SpeedLimitType<T> extends Type<SpeedLimitType<T>> implements Serializable, Identifiable
Defines the type of a speed limit, resulting in different behavior.
Copyright (c) 2013-2019 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 29, 2016
- Author:
- Alexander Verbraeck, Wouter Schakel
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SpeedLimitType(String id, Class<T> infoClass)Constructor. -
Method Summary
-
Constructor Details
-
SpeedLimitType
Constructor.- Parameters:
id- String; id of this speed limit type, which must be uniqueinfoClass- Class<T>; class of the info related to this speed limit type- Throws:
NullPointerException- if id or info class is null
-
-
Method Details
-
getId
Returns the id.- Specified by:
getIdin interfaceIdentifiable- Returns:
- the id
-
getInfoClass
Returns the class of the info related to this speed limit type.- Returns:
- class of the info related to this speed limit type
-
hashCode
public final int hashCode() -
equals
-
toString
-