public class InfrastructureLaneChangeInfo extends Object implements Comparable<InfrastructureLaneChangeInfo>, 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 |
|---|
InfrastructureLaneChangeInfo(int requiredNumberOfLaneChanges,
org.djunits.value.vdouble.scalar.Length remainingDistance,
boolean deadEnd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(InfrastructureLaneChangeInfo infrastructureLaneChangeInfo) |
org.djunits.value.vdouble.scalar.Length |
getRemainingDistance() |
int |
getRequiredNumberOfLaneChanges() |
boolean |
isDeadEnd() |
String |
toString() |
public InfrastructureLaneChangeInfo(int requiredNumberOfLaneChanges,
org.djunits.value.vdouble.scalar.Length remainingDistance,
boolean deadEnd)
requiredNumberOfLaneChanges - required number of lane changesremainingDistance - remaining distance to perform required lane changesdeadEnd - whether this reason to change lane is due to a dead-endIllegalArgumentException - if required number of lane changes or remaining distance is negativeNullPointerException - if remaining distance is nullpublic final int getRequiredNumberOfLaneChanges()
public final org.djunits.value.vdouble.scalar.Length getRemainingDistance()
public boolean isDeadEnd()
public final int compareTo(InfrastructureLaneChangeInfo infrastructureLaneChangeInfo)
compareTo in interface Comparable<InfrastructureLaneChangeInfo>Copyright © 2014–2017 Delft University of Technology. All rights reserved.