public class SocioDesiredSpeed extends Object implements DesiredSpeedModel, Initialisable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
protected static ParameterTypeDouble |
RHO
Social pressure applied to the leader.
|
protected static ParameterTypeDouble |
SOCIO
Socio-speed sensitivity parameter.
|
protected static ParameterTypeSpeed |
VGAIN
Vgain parameter; ego-speed sensitivity.
|
Constructor and Description |
---|
SocioDesiredSpeed(DesiredSpeedModel baseModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Speed |
desiredSpeed(Parameters parameters,
SpeedLimitInfo speedInfo)
Determines the desired speed.
|
void |
init(LaneBasedGTU laneBasedGtu)
Initialize car-following model.
|
protected static final ParameterTypeDouble RHO
protected static final ParameterTypeDouble SOCIO
protected static final ParameterTypeSpeed VGAIN
public SocioDesiredSpeed(DesiredSpeedModel baseModel)
baseModel
- DesiredSpeedModel; base model for desired speedpublic Speed desiredSpeed(Parameters parameters, SpeedLimitInfo speedInfo) throws ParameterException
desiredSpeed
in interface DesiredSpeedModel
parameters
- Parameters; parametersspeedInfo
- SpeedLimitInfo; info regarding the desired speed for car-followingParameterException
- if parameter exception occurspublic void init(LaneBasedGTU laneBasedGtu)
init
in interface Initialisable
laneBasedGtu
- LaneBasedGTU; gtuCopyright © 2014–2019 Delft University of Technology. All rights reserved.