Package org.opentrafficsim.road.gtu.lane
Interface VehicleModel
- All Known Implementing Classes:
VehicleModel.MassBased
public interface VehicleModel
Interface for vehicle models.
Copyright (c) 2013-2023 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 ClassesModifier and TypeInterfaceDescriptionstatic classDefines (fixed) mass and moment of inertia about z-axis. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VehicleModelAcceleration bounded by GTU min and max acceleration.static final VehicleModelNo bounds. -
Method Summary
Modifier and TypeMethodDescriptionboundAcceleration(Acceleration acceleration, LaneBasedGtu gtu) Returns a bounded acceleration.default MassgetMass()GTU mass.default doubleMoment of inertia about z-axis and center point of gravity.
-
Field Details
-
NONE
No bounds. -
MINMAX
Acceleration bounded by GTU min and max acceleration.
-
-
Method Details
-
boundAcceleration
Returns a bounded acceleration.- Parameters:
acceleration- Acceleration; intended accelerationgtu- LaneBasedGtu; gtu- Returns:
- Acceleration; possible acceleration
-
getMass
GTU mass.- Returns:
- GTU mass
-
getMomentOfInertiaAboutZ
default double getMomentOfInertiaAboutZ()Moment of inertia about z-axis and center point of gravity.- Returns:
- moment of inertia about z-axis
-