Class LmrsData
- 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-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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Desire
getLatestDesire(Class<? extends Incentive> incentiveClass)
Returns the latest desire from the specified incentive.Synchronizable.State
getSynchronizationState()
Returns the synchronization state.void
setHumanLongitudinalControl(boolean humanLongitudinalControl)
String
toString()
-
-
-
Constructor Detail
-
LmrsData
public LmrsData(Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating)
- Parameters:
synchronization
- Synchronization; synchronizationcooperation
- Cooperation; cooperationgapAcceptance
- GapAcceptance; gap-acceptancetailgating
- Tailgating; tail gating
-
-
Method Detail
-
getLatestDesire
public Desire getLatestDesire(Class<? extends Incentive> incentiveClass)
Returns the latest desire from the specified incentive.- Specified by:
getLatestDesire
in interfaceDesireBased
- Parameters:
incentiveClass
- Class<? extends Incentive>; incentive class- Returns:
- latest desire from the specified incentive
-
getSynchronizationState
public Synchronizable.State getSynchronizationState()
Returns the synchronization state.- Specified by:
getSynchronizationState
in interfaceSynchronizable
- Returns:
- State; synchronization state
-
setHumanLongitudinalControl
public void setHumanLongitudinalControl(boolean humanLongitudinalControl)
- Parameters:
humanLongitudinalControl
- boolean; set humanLongitudinalControl.
-
-