Package org.opentrafficsim.kpi.sampling
Class LanePosition
java.lang.Object
org.opentrafficsim.kpi.sampling.LanePosition
- All Implemented Interfaces:
Serializable
Store one position and lane of a GTU.
Copyright (c) 2013-2024 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, Wouter Schakel
- See Also:
-
Constructor Summary
ConstructorDescriptionLanePosition
(LaneData<?> lane, org.djunits.value.vdouble.scalar.Length position) Construct a new LanePosition. -
Method Summary
-
Constructor Details
-
LanePosition
Construct a new LanePosition.- Parameters:
lane
- LaneData<?>; the lane for the positionposition
- Length; the position on the lane, relative to the cross section link (design line)
-
-
Method Details
-
getLaneData
Retrieve the lane.- Returns:
- LaneData<?>; the lane for the position
-
getPosition
public final org.djunits.value.vdouble.scalar.Length getPosition()Retrieve the position on the lane.- Returns:
- Length; the position on the lane, relative to the cross section link (design line)
-
hashCode
public int hashCode() -
equals
-
toString
-