Class InfrastructureLaneChangeInfoToledo
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.InfrastructureLaneChangeInfo
org.opentrafficsim.road.gtu.lane.tactical.toledo.InfrastructureLaneChangeInfoToledo
- All Implemented Interfaces:
 java.io.Serializable,java.lang.Comparable<InfrastructureLaneChangeInfo>
public class InfrastructureLaneChangeInfoToledo extends InfrastructureLaneChangeInfo implements java.io.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
Modifier and Type Method Description booleanforSplit()Returns whether this information regards a split in the road.intgetSplitNumber()Returns the split number.java.lang.StringtoString()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
public final java.lang.String toString()- Overrides:
 toStringin classInfrastructureLaneChangeInfo
 
 -