Class LanePosition

java.lang.Object
org.opentrafficsim.kpi.sampling.LanePosition
All Implemented Interfaces:
Serializable

public class LanePosition extends Object implements 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 Details

    • LanePosition

      public LanePosition(LaneData<?> lane, org.djunits.value.vdouble.scalar.Length position)
      Construct a new LanePosition.
      Parameters:
      lane - LaneData<?>; the lane for the position
      position - Length; the position on the lane, relative to the cross section link (design line)
  • Method Details

    • getLaneData

      public final LaneData<?> 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object