public class InfrastructureLaneChangeInfoToledo extends InfrastructureLaneChangeInfo implements Serializable
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
InfrastructureLaneChangeInfoToledo(int requiredNumberOfLaneChanges,
LaneStructureRecord record,
int splitNumber) |
Modifier and Type | Method and Description |
---|---|
boolean |
forSplit()
Returns whether this information regards a split in the road.
|
int |
getSplitNumber()
Returns the split number.
|
String |
toString() |
compareTo, fromInaccessibleLane, getLateralDirectionality, getRemainingDistance, getRequiredNumberOfLaneChanges, isDeadEnd, left, right, setDeadEnd
public InfrastructureLaneChangeInfoToledo(int requiredNumberOfLaneChanges, LaneStructureRecord record, int splitNumber) throws GTUException
requiredNumberOfLaneChanges
- int; number of lane changesrecord
- LaneStructureRecord; recordsplitNumber
- int; number of the split along the roadGTUException
- if the split number is below 1public final boolean forSplit()
public final int getSplitNumber()
public final String toString()
toString
in class InfrastructureLaneChangeInfo
Copyright © 2014–2019 Delft University of Technology. All rights reserved.