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 Object implements 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
  • Constructor Details

    • MassBased

      public MassBased(org.djunits.value.vdouble.scalar.Mass mass, double momentOfInertiaAboutZ)
      Parameters:
      mass - Mass; mass
      momentOfInertiaAboutZ - double; 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)
      Returns a bounded acceleration.
      Specified by:
      boundAcceleration in interface VehicleModel
      Parameters:
      acceleration - Acceleration; intended acceleration
      gtu - LaneBasedGtu; gtu
      Returns:
      Acceleration; possible acceleration
    • getMass

      public org.djunits.value.vdouble.scalar.Mass getMass()
      GTU mass.
      Specified by:
      getMass in interface VehicleModel
      Returns:
      GTU mass
    • getMomentOfInertiaAboutZ

      public double getMomentOfInertiaAboutZ()
      Moment of inertia about z-axis and center point of gravity.
      Specified by:
      getMomentOfInertiaAboutZ in interface VehicleModel
      Returns:
      moment of inertia about z-axis