Package org.opentrafficsim.road.network
Class LaneType
java.lang.Object
org.opentrafficsim.base.HierarchicalType<T,I>
org.opentrafficsim.core.compatibility.GtuCompatibleInfraType<LaneType,Lane>
org.opentrafficsim.road.network.LaneType
- All Implemented Interfaces:
Identifiable,Type<LaneType>,Compatibility<GtuType,LaneType>
Lane type to indicate compatibility with GTU types. The id of a LaneType should be unique. This is, however, not checked or
enforced, as the LaneType is not a singleton as the result of the compatibilitySet. Different simulations running in the same
GTU can have different compatibilitySets for LaneTypes with the same id. Therefore, uniqueness is not enforced.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Guus Tamminga
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opentrafficsim.core.compatibility.GtuCompatibleInfraType
addCompatibleGtuType, addIncompatibleGtuType, clearCompatibilityCache, getGtuCompatibility, getInfrastructure, isCompatible, isCompatibleOnInfraLevelMethods inherited from class org.opentrafficsim.base.HierarchicalType
commonAncestor, equals, getChildren, getId, getParent, hashCode, isOfType
-
Constructor Details
-
LaneType
Constructor for root-level Lane types. The parent will benull.- Parameters:
id- the id of the lane type.- Throws:
NullPointerException- if the id is null
-
LaneType
Create a new Lane type with a compatibility set.- Parameters:
id- the id of the lane type.parent- parent type- Throws:
NullPointerException- if the id is null
-
-
Method Details