Class LmrsData
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.util.lmrs.LmrsData
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.lane.tactical.Synchronizable
Synchronizable.State -
Constructor Summary
ConstructorsConstructorDescriptionLmrsData(Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetLatestDesire(Class<? extends Incentive> incentiveClass) Returns the latest desire from the specified incentive.Returns the synchronization state.voidsetHumanLongitudinalControl(boolean humanLongitudinalControl) Set human longitudinal control.toString()
-
Constructor Details
-
LmrsData
public LmrsData(Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating) Constructor.- Parameters:
synchronization- synchronizationcooperation- cooperationgapAcceptance- gap-acceptancetailgating- tail gating
-
-
Method Details
-
getLatestDesire
Description copied from interface:DesireBasedReturns the latest desire from the specified incentive.- Specified by:
getLatestDesirein interfaceDesireBased- Parameters:
incentiveClass- incentive class- Returns:
- latest desire from the specified incentive, empty if this incentive is not active
-
getSynchronizationState
Description copied from interface:SynchronizableReturns the synchronization state.- Specified by:
getSynchronizationStatein interfaceSynchronizable- Returns:
- synchronization state
-
setHumanLongitudinalControl
public void setHumanLongitudinalControl(boolean humanLongitudinalControl) Set human longitudinal control.- Parameters:
humanLongitudinalControl- set humanLongitudinalControl.
-
toString
-