java.lang.Object
org.opentrafficsim.road.gtu.tactical.util.lmrs.LmrsData
All Implemented Interfaces:
Synchronizable, WithDesiredSpeed

public final class LmrsData extends Object implements Synchronizable, WithDesiredSpeed
Keeps data for LMRS for a specific GTU.

Copyright (c) 2013-2026 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
  • Constructor Details

    • LmrsData

      public LmrsData(Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating)
      Constructor.
      Parameters:
      synchronization - synchronization
      cooperation - cooperation
      gapAcceptance - gap-acceptance
      tailgating - tail gating
  • Method Details

    • getSynchronizationState

      public Synchronizable.State getSynchronizationState()
      Description copied from interface: Synchronizable
      Returns the synchronization state.
      Specified by:
      getSynchronizationState in interface Synchronizable
      Returns:
      synchronization state
    • setDesiredSpeed

      public void setDesiredSpeed(org.djunits.value.vdouble.scalar.Speed desiredSpeed)
      Set desired speed.
      Parameters:
      desiredSpeed - desired speed
    • getDesiredSpeed

      public org.djunits.value.vdouble.scalar.Speed getDesiredSpeed()
      Description copied from interface: WithDesiredSpeed
      Returns the last computed desired speed.
      Specified by:
      getDesiredSpeed in interface WithDesiredSpeed
      Returns:
      last computed desired speed
    • setHumanLongitudinalControl

      public void setHumanLongitudinalControl(boolean humanLongitudinalControl)
      Set human longitudinal control.
      Parameters:
      humanLongitudinalControl - set humanLongitudinalControl.
    • getInitiatedLaneChange

      public TimeStampedObject<TurnIndicatorStatus> getInitiatedLaneChange()
      Return initiated lane change.
      Returns:
      initiated lane change
    • setInitiatedLaneChange

      public void setInitiatedLaneChange(TimeStampedObject<TurnIndicatorStatus> laneChangeIndicator)
      Set turn indicator for lane change.
      Parameters:
      laneChangeIndicator - indicator for lane change
    • toString

      public String toString()
      Overrides:
      toString in class Object