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-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 Jul 28, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InfrastructureLaneChangeInfoToledo(int requiredNumberOfLaneChanges, LaneStructureRecord record, int splitNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
forSplit()
Returns whether this information regards a split in the road.int
getSplitNumber()
Returns the split number.String
toString()
-
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.InfrastructureLaneChangeInfo
compareTo, fromInaccessibleLane, getLateralDirectionality, getRemainingDistance, getRequiredNumberOfLaneChanges, isDeadEnd, left, right, setDeadEnd
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public final String toString()
- Overrides:
toString
in classInfrastructureLaneChangeInfo
-
-