public static class VehicleModel.MassBased extends Object implements VehicleModel
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
VehicleModel.MassBased
MINMAX, NONE
Constructor and Description |
---|
MassBased(Mass mass,
double momentOfInertiaAboutZ) |
Modifier and Type | Method and Description |
---|---|
Acceleration |
boundAcceleration(Acceleration acceleration,
LaneBasedGTU gtu)
Returns a bounded acceleration.
|
Mass |
getMass()
GTU mass.
|
double |
getMomentOfInertiaAboutZ()
Moment of inertia about z-axis and center point of gravity.
|
public MassBased(Mass mass, double momentOfInertiaAboutZ)
mass
- Mass; massmomentOfInertiaAboutZ
- double; moment of inertia about z-axispublic Acceleration boundAcceleration(Acceleration acceleration, LaneBasedGTU gtu)
boundAcceleration
in interface VehicleModel
acceleration
- Acceleration; intended accelerationgtu
- LaneBasedGTU; gtupublic Mass getMass()
getMass
in interface VehicleModel
public double getMomentOfInertiaAboutZ()
getMomentOfInertiaAboutZ
in interface VehicleModel
Copyright © 2014–2019 Delft University of Technology. All rights reserved.