Class LaneDataSim0

java.lang.Object
org.opentrafficsim.sim0mq.kpi.LaneDataSim0
All Implemented Interfaces:
org.djutils.base.Identifiable, LaneData<LaneDataSim0>

public class LaneDataSim0 extends Object implements LaneData<LaneDataSim0>

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

    • length

      final org.djunits.value.vdouble.scalar.Length length
      the link length.
  • Constructor Details

    • LaneDataSim0

      public LaneDataSim0(LinkDataSim0 linkData, String laneName, org.djunits.value.vdouble.scalar.Length length)
      Parameters:
      linkData - LinkData; data about the link
      laneName - String; name of the lane
      length - Length; length of the lane
  • Method Details

    • getLength

      public final org.djunits.value.vdouble.scalar.Length getLength()
      Specified by:
      getLength in interface LaneData<LaneDataSim0>
    • getLinkData

      public final LinkDataSim0 getLinkData()
      Specified by:
      getLinkData in interface LaneData<LaneDataSim0>
    • getLaneName

      public final String getLaneName()
      Returns:
      laneName
    • getId

      public String getId()
      Specified by:
      getId in interface org.djutils.base.Identifiable
    • setLinkData

      public final void setLinkData(LinkDataSim0 linkData)
      Parameters:
      linkData - LinkData; set linkData
    • 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