Package org.opentrafficsim.core.gtu
Class GTUCharacteristics
- java.lang.Object
-
- org.opentrafficsim.core.gtu.GTUCharacteristics
-
- All Implemented Interfaces:
java.io.Serializable
public class GTUCharacteristics extends java.lang.Object implements java.io.Serializable
Characteristics of a GTU. This class is used to store all characteristics of a (not-yet constructed) GTU.Copyright (c) 2013-2020 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 Mar 8, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GTUCharacteristics(GTUType gtuType, Length length, Length width, Speed maximumSpeed, Acceleration maximumAcceleration, Acceleration maximumDeceleration, Length front)
Construct a new set of GTUCharacteristics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Length
getFront()
Retrieve the front position relative to the reference position.GTUType
getGTUType()
Retrieve the GTU type.Length
getLength()
Retrieve the length.Acceleration
getMaximumAcceleration()
Retrieve the maximum acceleration.Acceleration
getMaximumDeceleration()
Retrieve the maximum deceleration.Speed
getMaximumSpeed()
Retrieve the maximum speed.Length
getWidth()
Retrieve the width.java.lang.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
getGTUType
public final GTUType getGTUType()
Retrieve the GTU type.- Returns:
- GTUType
-
getLength
public final Length getLength()
Retrieve the length.- Returns:
- Length
-
getWidth
public final Length getWidth()
Retrieve the width.- Returns:
- Length
-
getMaximumSpeed
public final Speed getMaximumSpeed()
Retrieve the maximum speed.- Returns:
- Speed
-
getMaximumAcceleration
public final Acceleration getMaximumAcceleration()
Retrieve the maximum acceleration.- Returns:
- Acceleration
-
getMaximumDeceleration
public final Acceleration getMaximumDeceleration()
Retrieve the maximum deceleration.- Returns:
- Acceleration
-
getFront
public final Length getFront()
Retrieve the front position relative to the reference position.- Returns:
- Length
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-