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-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, 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
ConstructorsConstructorDescriptionMassBased
(org.djunits.value.vdouble.scalar.Mass mass, double momentOfInertiaAboutZ) -
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Acceleration
boundAcceleration
(org.djunits.value.vdouble.scalar.Acceleration acceleration, LaneBasedGtu gtu) Returns a bounded acceleration.org.djunits.value.vdouble.scalar.Mass
getMass()
GTU mass.double
Moment of inertia about z-axis and center point of gravity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opentrafficsim.road.gtu.lane.VehicleModel
isBrakingLightsOn
-
Constructor Details
-
MassBased
public MassBased(org.djunits.value.vdouble.scalar.Mass mass, double momentOfInertiaAboutZ) - Parameters:
mass
- massmomentOfInertiaAboutZ
- moment of inertia about z-axis
-
-
Method Details
-
boundAcceleration
public org.djunits.value.vdouble.scalar.Acceleration boundAcceleration(org.djunits.value.vdouble.scalar.Acceleration acceleration, LaneBasedGtu gtu) Description copied from interface:VehicleModel
Returns a bounded acceleration.- Specified by:
boundAcceleration
in interfaceVehicleModel
- Parameters:
acceleration
- intended accelerationgtu
- gtu- Returns:
- possible acceleration
-
getMass
public org.djunits.value.vdouble.scalar.Mass getMass()Description copied from interface:VehicleModel
GTU mass.- Specified by:
getMass
in interfaceVehicleModel
- Returns:
- GTU mass
-
getMomentOfInertiaAboutZ
public double getMomentOfInertiaAboutZ()Description copied from interface:VehicleModel
Moment of inertia about z-axis and center point of gravity.- Specified by:
getMomentOfInertiaAboutZ
in interfaceVehicleModel
- Returns:
- moment of inertia about z-axis
-