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-2024 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, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Speed maximumSpeed, org.djunits.value.vdouble.scalar.Acceleration maximumAcceleration, org.djunits.value.vdouble.scalar.Acceleration maximumDeceleration, org.djunits.value.vdouble.scalar.Length front) Construct a new set of GtuCharacteristics. -
Method Summary
Modifier and TypeMethodDescriptionfinal org.djunits.value.vdouble.scalar.LengthgetFront()Retrieve the front position relative to the reference position.final GtuTypeRetrieve the GTU type.final org.djunits.value.vdouble.scalar.LengthRetrieve the length.final org.djunits.value.vdouble.scalar.AccelerationRetrieve the maximum acceleration.final org.djunits.value.vdouble.scalar.AccelerationRetrieve the maximum deceleration.final org.djunits.value.vdouble.scalar.SpeedRetrieve the maximum speed.final org.djunits.value.vdouble.scalar.LengthgetWidth()Retrieve the width.toString()
-
Constructor Details
-
GtuCharacteristics
public GtuCharacteristics(GtuType gtuType, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Speed maximumSpeed, org.djunits.value.vdouble.scalar.Acceleration maximumAcceleration, org.djunits.value.vdouble.scalar.Acceleration maximumDeceleration, org.djunits.value.vdouble.scalar.Length front) Construct a new set of GtuCharacteristics.- Parameters:
gtuType- type of the (not yet constructed) GTUlength- the length of the (non yet constructed) GTUwidth- the width of the (non yet constructed) GTUmaximumSpeed- the maximum speed of the (non yet constructed) GTUmaximumAcceleration- maximum accelerationmaximumDeceleration- maximum decelerationfront- front position relative to the reference position
-
-
Method Details
-
getGtuType
Retrieve the GTU type.- Returns:
- GtuType
-
getLength
public final org.djunits.value.vdouble.scalar.Length getLength()Retrieve the length.- Returns:
- Length
-
getWidth
public final org.djunits.value.vdouble.scalar.Length getWidth()Retrieve the width.- Returns:
- Length
-
getMaximumSpeed
public final org.djunits.value.vdouble.scalar.Speed getMaximumSpeed()Retrieve the maximum speed.- Returns:
- Speed
-
getMaximumAcceleration
public final org.djunits.value.vdouble.scalar.Acceleration getMaximumAcceleration()Retrieve the maximum acceleration.- Returns:
- Acceleration
-
getMaximumDeceleration
public final org.djunits.value.vdouble.scalar.Acceleration getMaximumDeceleration()Retrieve the maximum deceleration.- Returns:
- Acceleration
-
getFront
public final org.djunits.value.vdouble.scalar.Length getFront()Retrieve the front position relative to the reference position.- Returns:
- Length
-
toString
-