Class LmrsData
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.util.lmrs.LmrsData
- All Implemented Interfaces:
DesireBased,Synchronizable
public final class LmrsData extends java.lang.Object implements DesireBased, Synchronizable
Keeps data for LMRS for a specific GTU.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 8 nov. 2016
- 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
Constructors Constructor Description LmrsData(Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating) -
Method Summary
Modifier and Type Method Description DesiregetLatestDesire(java.lang.Class<? extends Incentive> incentiveClass)Returns the latest desire from the specified incentive.Synchronizable.StategetSynchronizationState()Returns the synchronization state.voidsetHumanLongitudinalControl(boolean humanLongitudinalControl)java.lang.StringtoString()
-
Constructor Details
-
LmrsData
public LmrsData(Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating)- Parameters:
synchronization- Synchronization; synchronizationcooperation- Cooperation; cooperationgapAcceptance- GapAcceptance; gap-acceptancetailgating- Tailgating; tail gating
-
-
Method Details
-
getLatestDesire
Returns the latest desire from the specified incentive.- Specified by:
getLatestDesirein interfaceDesireBased- Parameters:
incentiveClass- Class<? extends Incentive>; incentive class- Returns:
- latest desire from the specified incentive
-
getSynchronizationState
Returns the synchronization state.- Specified by:
getSynchronizationStatein interfaceSynchronizable- Returns:
- State; synchronization state
-
setHumanLongitudinalControl
public void setHumanLongitudinalControl(boolean humanLongitudinalControl)- Parameters:
humanLongitudinalControl- boolean; set humanLongitudinalControl.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-