Package org.opentrafficsim.core.gtu
Class GtuCharacteristics
java.lang.Object
org.opentrafficsim.core.gtu.GtuCharacteristics
- All Implemented Interfaces:
Serializable
Characteristics of a GTU. This class is used to store all characteristics of a (not-yet constructed) GTU.
Copyright (c) 2013-2023 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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGtuCharacteristics
(GtuType gtuType, Length length, Length width, Speed maximumSpeed, Acceleration maximumAcceleration, Acceleration maximumDeceleration, Length front) Construct a new set of GtuCharacteristics. -
Method Summary
Modifier and TypeMethodDescriptionfinal Length
getFront()
Retrieve the front position relative to the reference position.final GtuType
Retrieve the GTU type.final Length
Retrieve the length.final Acceleration
Retrieve the maximum acceleration.final Acceleration
Retrieve the maximum deceleration.final Speed
Retrieve the maximum speed.final Length
getWidth()
Retrieve the width.toString()
-
Constructor Details
-
GtuCharacteristics
public GtuCharacteristics(GtuType gtuType, Length length, Length width, Speed maximumSpeed, Acceleration maximumAcceleration, Acceleration maximumDeceleration, Length front) Construct a new set of GtuCharacteristics.- Parameters:
gtuType
- GtuType; type of the (not yet constructed) GTUlength
- Length; the length of the (non yet constructed) GTUwidth
- Length; the width of the (non yet constructed) GTUmaximumSpeed
- Speed; the maximum speed of the (non yet constructed) GTUmaximumAcceleration
- Acceleration; maximum accelerationmaximumDeceleration
- Acceleration; maximum decelerationfront
- Length; front position relative to the reference position
-
-
Method Details
-
getGtuType
Retrieve the GTU type.- Returns:
- GtuType
-
getLength
Retrieve the length.- Returns:
- Length
-
getWidth
Retrieve the width.- Returns:
- Length
-
getMaximumSpeed
Retrieve the maximum speed.- Returns:
- Speed
-
getMaximumAcceleration
Retrieve the maximum acceleration.- Returns:
- Acceleration
-
getMaximumDeceleration
Retrieve the maximum deceleration.- Returns:
- Acceleration
-
getFront
Retrieve the front position relative to the reference position.- Returns:
- Length
-
toString
-