Class LanePosition
java.lang.Object
org.opentrafficsim.road.network.lane.LanePosition
- All Implemented Interfaces:
Serializable
Store one position and lane of a GTU.
Copyright (c) 2013-2023 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 Details
-
LanePosition
Construct a new LanePosition.- Parameters:
lane
- Lane; the lane for the positionposition
- Length; the position on the lane, relative to the cross section link (design line) line, or against it
-
-
Method Details
-
getLane
Retrieve the lane.- Returns:
- Lane; the lane for the position
-
getPosition
Retrieve the position on the lane.- Returns:
- Length; the position on the lane, relative to the cross section link (design line)
-
getLocation
Retrieve the location and direction of the GTU on the lane.- Returns:
- DirectedPoint; the location and direction of the GTU on the lane
-
hashCode
public int hashCode() -
equals
-
toString
-