Class SocioDesiredSpeed

java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.lmrs.SocioDesiredSpeed
All Implemented Interfaces:
DesiredSpeedModel, Initialisable

public class SocioDesiredSpeed extends Object implements 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

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RHO

      protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble RHO
      Social pressure applied to the leader.
    • SOCIO

      protected static final org.opentrafficsim.base.parameters.ParameterTypeDouble SOCIO
      Socio-speed sensitivity parameter.
    • VGAIN

      protected static final org.opentrafficsim.base.parameters.ParameterTypeSpeed VGAIN
      Vgain parameter; ego-speed sensitivity.
  • Constructor Details

    • SocioDesiredSpeed

      public SocioDesiredSpeed(DesiredSpeedModel baseModel)
      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 interface DesiredSpeedModel
      Parameters:
      parameters - Parameters; parameters
      speedInfo - SpeedLimitInfo; info regarding the desired speed for car-following
      Returns:
      desired speed
      Throws:
      org.opentrafficsim.base.parameters.ParameterException - if parameter exception occurs
    • init

      public void init(LaneBasedGtu laneBasedGtu)
      Initialize car-following model.
      Specified by:
      init in interface Initialisable
      Parameters:
      laneBasedGtu - LaneBasedGtu; gtu