Class LinkDataSim0

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

public class LinkDataSim0 extends Object implements LinkData<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

    • startNode

      final String startNode
      start node.
    • endNode

      final String endNode
      end node.
  • Constructor Details

    • LinkDataSim0

      public LinkDataSim0(String linkName, String startNode, String endNode, org.djunits.value.vdouble.scalar.Length length)
      Parameters:
      linkName - String; wrapped link name
      startNode - NodeData; data of start node
      endNode - NodeData; data of end node
      length - Length; the length
  • Method Details

    • addLaneData

      public void addLaneData(LaneDataSim0 laneData)
      Add the lane to the list of lanes for this link.
      Parameters:
      laneData - LaneData; the lane to add
    • getLaneDatas

      public final List<LaneDataSim0> getLaneDatas()
      Specified by:
      getLaneDatas in interface LinkData<LaneDataSim0>
    • getLength

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

      public final String getStartNode()
      Returns:
      startNode
    • getEndNode

      public final String getEndNode()
      Returns:
      endNode
    • getLinkName

      public final String getLinkName()
      Returns:
      linkName
    • getId

      public String getId()
      Specified by:
      getId in interface org.djutils.base.Identifiable
    • 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