Package org.opentrafficsim.road.gtu.lane
Interface VehicleModel
-
- All Known Implementing Classes:
VehicleModel.MassBased
public interface VehicleModel
Interface for vehicle models.Copyright (c) 2013-2020 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 22 mei 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
VehicleModel.MassBased
Defines (fixed) mass and moment of inertia about z-axis.
-
Field Summary
Fields Modifier and Type Field Description static VehicleModel
MINMAX
Acceleration bounded by GTU min and max acceleration.static VehicleModel
NONE
No bounds.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Acceleration
boundAcceleration(Acceleration acceleration, LaneBasedGTU gtu)
Returns a bounded acceleration.default Mass
getMass()
GTU mass.default double
getMomentOfInertiaAboutZ()
Moment of inertia about z-axis and center point of gravity.
-
-
-
Field Detail
-
NONE
static final VehicleModel NONE
No bounds.
-
MINMAX
static final VehicleModel MINMAX
Acceleration bounded by GTU min and max acceleration.
-
-
Method Detail
-
boundAcceleration
Acceleration boundAcceleration(Acceleration acceleration, LaneBasedGTU gtu)
Returns a bounded acceleration.- Parameters:
acceleration
- Acceleration; intended accelerationgtu
- LaneBasedGTU; gtu- Returns:
- Acceleration; possible acceleration
-
getMass
default Mass 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
-
-