Package org.opentrafficsim.sim0mq.kpi
Class LinkData
java.lang.Object
org.opentrafficsim.sim0mq.kpi.LinkData
- All Implemented Interfaces:
Identifiable
,LinkDataInterface
public class LinkData extends java.lang.Object implements LinkDataInterface
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 13 okt. 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addLaneData(LaneData laneData)
Add the lane to the list of lanes for this link.boolean
equals(java.lang.Object obj)
NodeData
getEndNode()
java.lang.String
getId()
java.util.List<LaneDataInterface>
getLaneDatas()
Length
getLength()
java.lang.String
getLinkName()
NodeData
getStartNode()
int
hashCode()
java.lang.String
toString()
-
Constructor Details
-
LinkData
- Parameters:
linkName
- String; wrapped link namestartNode
- NodeData; data of start nodeendNode
- NodeData; data of end nodelength
- Length; the length
-
-
Method Details
-
addLaneData
Add the lane to the list of lanes for this link.- Parameters:
laneData
- LaneData; the lane to add
-
getLaneDatas
- Specified by:
getLaneDatas
in interfaceLinkDataInterface
-
getLength
- Specified by:
getLength
in interfaceLinkDataInterface
-
getStartNode
- Returns:
- startNode
-
getEndNode
- Returns:
- endNode
-
getLinkName
public final java.lang.String getLinkName()- Returns:
- linkName
-
getId
public java.lang.String getId()- Specified by:
getId
in interfaceIdentifiable
- Specified by:
getId
in interfaceLinkDataInterface
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-