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
 
public static class VehicleModel.MassBased extends java.lang.Object implements VehicleModel
Defines (fixed) mass and moment of inertia about z-axis.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.- Version:
 - $Revision$, $LastChangedDate$, by $Author$, initial version 8 jan. 2019 
 - 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 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccelerationboundAcceleration(Acceleration acceleration, LaneBasedGTU gtu)Returns a bounded acceleration.MassgetMass()GTU mass.doublegetMomentOfInertiaAboutZ()Moment of inertia about z-axis and center point of gravity. 
 - 
 
- 
- 
Constructor Detail
- 
MassBased
public MassBased(Mass mass, double momentOfInertiaAboutZ)
- Parameters:
 mass- Mass; massmomentOfInertiaAboutZ- double; moment of inertia about z-axis
 
 - 
 
- 
Method Detail
- 
boundAcceleration
public Acceleration boundAcceleration(Acceleration acceleration, LaneBasedGTU gtu)
Returns a bounded acceleration.- Specified by:
 boundAccelerationin interfaceVehicleModel- Parameters:
 acceleration- Acceleration; intended accelerationgtu- LaneBasedGTU; gtu- Returns:
 - Acceleration; possible acceleration
 
 
- 
getMass
public Mass getMass()
GTU mass.- Specified by:
 getMassin interfaceVehicleModel- Returns:
 - GTU mass
 
 
- 
getMomentOfInertiaAboutZ
public double getMomentOfInertiaAboutZ()
Moment of inertia about z-axis and center point of gravity.- Specified by:
 getMomentOfInertiaAboutZin interfaceVehicleModel- Returns:
 - moment of inertia about z-axis
 
 
 - 
 
 -