public class KpiLaneDirection extends Object implements Serializable
Copyright (c) 2013-2016 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() |
org.djunits.value.vdouble.scalar.Length |
getPositionInDirection(org.djunits.value.vdouble.scalar.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
- the lanedirection
- the direction to drive on this lanepublic final LaneDataInterface getLaneData()
public final KpiGtuDirectionality getKpiDirection()
public final org.djunits.value.vdouble.scalar.Length getPositionInDirection(org.djunits.value.vdouble.scalar.Length position)
lane.getLength()
, irrespective of the design line direction.position
- Copyright © 2014–2016 Delft University of Technology. All rights reserved.