public class InfrastructureLaneChangeInfoToledo extends InfrastructureLaneChangeInfo implements Serializable
Copyright (c) 2013-2017 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,
org.djunits.value.vdouble.scalar.Length remainingDistance,
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, getRemainingDistance, getRequiredNumberOfLaneChanges, isDeadEnd
public InfrastructureLaneChangeInfoToledo(int requiredNumberOfLaneChanges, org.djunits.value.vdouble.scalar.Length remainingDistance, int splitNumber) throws org.opentrafficsim.core.gtu.GTUException
requiredNumberOfLaneChanges
- number of lane changesremainingDistance
- remaining distancesplitNumber
- number of the split along the roadorg.opentrafficsim.core.gtu.GTUException
- if the split number is below 1public final boolean forSplit()
public final int getSplitNumber()
public final String toString()
toString
in class InfrastructureLaneChangeInfo
Copyright © 2014–2017 Delft University of Technology. All rights reserved.