Class InfrastructureLaneChangeInfoToledo
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.InfrastructureLaneChangeInfo
org.opentrafficsim.road.gtu.lane.tactical.toledo.InfrastructureLaneChangeInfoToledo
- All Implemented Interfaces:
Serializable
,Comparable<InfrastructureLaneChangeInfo>
public class InfrastructureLaneChangeInfoToledo
extends InfrastructureLaneChangeInfo
implements Serializable
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInfrastructureLaneChangeInfoToledo
(int requiredNumberOfLaneChanges, LaneStructureRecord record, int splitNumber) -
Method Summary
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.InfrastructureLaneChangeInfo
compareTo, fromInaccessibleLane, getLateralDirectionality, getRemainingDistance, getRequiredNumberOfLaneChanges, isDeadEnd, left, right, setDeadEnd
-
Constructor Details
-
InfrastructureLaneChangeInfoToledo
public InfrastructureLaneChangeInfoToledo(int requiredNumberOfLaneChanges, LaneStructureRecord record, int splitNumber) throws GtuException - Parameters:
requiredNumberOfLaneChanges
- int; number of lane changesrecord
- LaneStructureRecord; recordsplitNumber
- int; number of the split along the road- Throws:
GtuException
- if the split number is below 1
-
-
Method Details
-
forSplit
public final boolean forSplit()Returns whether this information regards a split in the road.- Returns:
- whether this information regards a split in the road
-
getSplitNumber
public final int getSplitNumber()Returns the split number.- Returns:
- split number
-
toString
- Overrides:
toString
in classInfrastructureLaneChangeInfo
-