Class LmrsData
java.lang.Object
org.opentrafficsim.road.gtu.tactical.util.lmrs.LmrsData
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.road.gtu.tactical.Synchronizable
Synchronizable.State -
Constructor Summary
ConstructorsConstructorDescriptionLmrsData(Synchronization synchronization, Cooperation cooperation, GapAcceptance gapAcceptance, Tailgating tailgating) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.SpeedReturns the last computed desired speed.Return initiated lane change.Returns the synchronization state.voidsetDesiredSpeed(org.djunits.value.vdouble.scalar.Speed desiredSpeed) Set desired speed.voidsetHumanLongitudinalControl(boolean humanLongitudinalControl) Set human longitudinal control.voidsetInitiatedLaneChange(TimeStampedObject<TurnIndicatorStatus> laneChangeIndicator) Set turn indicator for lane change.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
-
getSynchronizationState
Description copied from interface:SynchronizableReturns the synchronization state.- Specified by:
getSynchronizationStatein interfaceSynchronizable- 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:WithDesiredSpeedReturns the last computed desired speed.- Specified by:
getDesiredSpeedin interfaceWithDesiredSpeed- Returns:
- last computed desired speed
-
setHumanLongitudinalControl
public void setHumanLongitudinalControl(boolean humanLongitudinalControl) Set human longitudinal control.- Parameters:
humanLongitudinalControl- set humanLongitudinalControl.
-
getInitiatedLaneChange
Return initiated lane change.- Returns:
- initiated lane change
-
setInitiatedLaneChange
Set turn indicator for lane change.- Parameters:
laneChangeIndicator- indicator for lane change
-
toString
-