public class KpiLaneDirection extends Object 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 |
---|
KpiLaneDirection(LaneDataInterface lane,
KpiGtuDirectionality direction) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
KpiGtuDirectionality |
getKpiDirection() |
LaneDataInterface |
getLaneData() |
Length |
getPositionInDirection(Length position)
Returns the position with increasing value in the direction of travel, i.e.
|
int |
hashCode() |
String |
toString() |
public KpiLaneDirection(LaneDataInterface lane, KpiGtuDirectionality direction)
lane
- LaneDataInterface; the lanedirection
- KpiGtuDirectionality; the direction to drive on this lanepublic final LaneDataInterface getLaneData()
public final KpiGtuDirectionality getKpiDirection()
public final Length getPositionInDirection(Length position)
lane.getLength()
, irrespective of the design line direction.position
- Length; the position on the lane irrespective of the directionCopyright © 2014–2019 Delft University of Technology. All rights reserved.