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

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

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
  • 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

    • getLatestDesire

      public Optional<Desire> getLatestDesire(Class<? extends Incentive> incentiveClass)
      Description copied from interface: DesireBased
      Returns the latest desire from the specified incentive.
      Specified by:
      getLatestDesire in interface DesireBased
      Parameters:
      incentiveClass - incentive class
      Returns:
      latest desire from the specified incentive, empty if this incentive is not active
    • getSynchronizationState

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

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

      public String toString()
      Overrides:
      toString in class Object