Package org.opentrafficsim.road.gtu.lane
Class VehicleModel.MassBased
java.lang.Object
org.opentrafficsim.road.gtu.lane.VehicleModel.MassBased
- All Implemented Interfaces:
VehicleModel
- Enclosing interface:
- VehicleModel
Defines (fixed) mass and moment of inertia about z-axis. Acceleration is limited using
VehicleModel.MINMAX
.
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, Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.VehicleModel
VehicleModel.MassBased
-
Field Summary
Fields inherited from interface org.opentrafficsim.road.gtu.lane.VehicleModel
MINMAX, NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboundAcceleration
(Acceleration acceleration, LaneBasedGtu gtu) Returns a bounded acceleration.getMass()
GTU mass.double
Moment of inertia about z-axis and center point of gravity.
-
Constructor Details
-
MassBased
- Parameters:
mass
- Mass; massmomentOfInertiaAboutZ
- double; moment of inertia about z-axis
-
-
Method Details
-
boundAcceleration
Returns a bounded acceleration.- Specified by:
boundAcceleration
in interfaceVehicleModel
- Parameters:
acceleration
- Acceleration; intended accelerationgtu
- LaneBasedGtu; gtu- Returns:
- Acceleration; possible acceleration
-
getMass
GTU mass.- Specified by:
getMass
in interfaceVehicleModel
- Returns:
- GTU mass
-
getMomentOfInertiaAboutZ
public double getMomentOfInertiaAboutZ()Moment of inertia about z-axis and center point of gravity.- Specified by:
getMomentOfInertiaAboutZ
in interfaceVehicleModel
- Returns:
- moment of inertia about z-axis
-