Class LaneDataRoad

java.lang.Object
org.opentrafficsim.road.network.sampling.LaneDataRoad
All Implemented Interfaces:
org.opentrafficsim.base.Identifiable, LaneData

public class LaneDataRoad extends Object implements LaneData
Lane representation in road sampler.

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
  • Constructor Details

    • LaneDataRoad

      public LaneDataRoad(Lane lane)
      Parameters:
      lane - Lane; wrapped lane
  • Method Details

    • getLane

      public final Lane getLane()
      Returns:
      lane.
    • getLength

      public final Length getLength()
      Specified by:
      getLength in interface LaneData
    • getLinkData

      public final LinkDataRoad getLinkData()
      Specified by:
      getLinkData in interface LaneData
    • getId

      public final String getId()
      Specified by:
      getId in interface org.opentrafficsim.base.Identifiable
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public final String toString()
      Overrides:
      toString in class Object