Package org.opentrafficsim.kpi.sampling
Class KpiLaneDirection
java.lang.Object
org.opentrafficsim.kpi.sampling.KpiLaneDirection
- All Implemented Interfaces:
 java.io.Serializable
public class KpiLaneDirection
extends java.lang.Object
implements java.io.Serializable
 Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
- Author:
 - Alexander Verbraeck, Peter Knoppers
 - See Also:
 - Serialized Form
 
- 
Constructor Summary
Constructors Constructor Description KpiLaneDirection(LaneDataInterface lane, KpiGtuDirectionality direction) - 
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)KpiGtuDirectionalitygetKpiDirection()LaneDataInterfacegetLaneData()LengthgetPositionInDirection(Length position)Returns the position with increasing value in the direction of travel, i.e.inthashCode()java.lang.StringtoString() 
- 
Constructor Details
- 
KpiLaneDirection
- Parameters:
 lane- LaneDataInterface; the lanedirection- KpiGtuDirectionality; the direction to drive on this lane
 
 - 
 - 
Method Details
- 
getLaneData
- Returns:
 - the lane
 
 - 
getKpiDirection
- Returns:
 - the direction to drive on this lane
 
 - 
getPositionInDirection
Returns the position with increasing value in the direction of travel, i.e. the node to the back of the vehicle is at x = 0 while the node in front of the vehicle is at x =lane.getLength(), irrespective of the design line direction.- Parameters:
 position- Length; the position on the lane irrespective of the direction- Returns:
 - position with increasing value in the direction of travel
 
 - 
toString
public java.lang.String toString()- Overrides:
 toStringin classjava.lang.Object
 - 
hashCode
public final int hashCode()- Overrides:
 hashCodein classjava.lang.Object
 - 
equals
public final boolean equals(java.lang.Object obj)- Overrides:
 equalsin classjava.lang.Object
 
 -