Package org.opentrafficsim.core.gtu
Class GtuType
- All Implemented Interfaces:
Identifiable,Type<GtuType>
A GTU type is used to identify all sorts of properties and compatibilities for GTUs. For example, what lanes a GTU may drive
on, and what length of vehicle to get.
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
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opentrafficsim.base.HierarchicalType
commonAncestor, equals, getChildren, getId, getParent, hashCode, isOfType
-
Constructor Details
-
GtuType
Constructor for root-level GTU types. The parent will benull.- Parameters:
id- The id of the GtuType to make it identifiable.- Throws:
NullPointerException- if the id is null
-
GtuType
Constructor.- Parameters:
id- The id of the GtuType to make it identifiable.parent- parent GTU type.- Throws:
NullPointerException- if the id is null
-
-
Method Details