Class VehicleModel.MassBased

    • Constructor Detail

      • MassBased

        public MassBased​(Mass mass,
                         double momentOfInertiaAboutZ)
        Parameters:
        mass - Mass; mass
        momentOfInertiaAboutZ - double; moment of inertia about z-axis
    • Method Detail

      • boundAcceleration

        public Acceleration boundAcceleration​(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
      • 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