Class SocioDesiredSpeed
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.lmrs.SocioDesiredSpeed
- All Implemented Interfaces:
DesiredSpeedModel
,Initialisable
Wrapper of a base-desired speed model. The speed may be increased due to social pressure from the follower.
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
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.opentrafficsim.base.parameters.ParameterTypeDouble
Social pressure applied to the leader.protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble
Socio-speed sensitivity parameter.protected static final org.opentrafficsim.base.parameters.ParameterTypeSpeed
Vgain parameter; ego-speed sensitivity. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Speed
desiredSpeed
(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) Determines the desired speed.void
init
(LaneBasedGtu laneBasedGtu) Initialize car-following model.
-
Field Details
-
RHO
protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble RHOSocial pressure applied to the leader. -
SOCIO
protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble SOCIOSocio-speed sensitivity parameter. -
VGAIN
protected static final org.opentrafficsim.base.parameters.ParameterTypeSpeed VGAINVgain parameter; ego-speed sensitivity.
-
-
Constructor Details
-
SocioDesiredSpeed
Constructor.- Parameters:
baseModel
- DesiredSpeedModel; base model for desired speed
-
-
Method Details
-
desiredSpeed
public org.djunits.value.vdouble.scalar.Speed desiredSpeed(org.opentrafficsim.base.parameters.Parameters parameters, SpeedLimitInfo speedInfo) throws org.opentrafficsim.base.parameters.ParameterException Determines the desired speed.- Specified by:
desiredSpeed
in interfaceDesiredSpeedModel
- Parameters:
parameters
- Parameters; parametersspeedInfo
- SpeedLimitInfo; info regarding the desired speed for car-following- Returns:
- desired speed
- Throws:
org.opentrafficsim.base.parameters.ParameterException
- if parameter exception occurs
-
init
Initialize car-following model.- Specified by:
init
in interfaceInitialisable
- Parameters:
laneBasedGtu
- LaneBasedGtu; gtu
-