Package org.opentrafficsim.sim0mq.kpi
Class LinkDataSim0
java.lang.Object
org.opentrafficsim.sim0mq.kpi.LinkDataSim0
- All Implemented Interfaces:
org.opentrafficsim.base.Identifiable
,LinkData<LaneDataSim0>
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLinkDataSim0
(String linkName, String startNode, String endNode, Length length) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLaneData
(LaneDataSim0 laneData) Add the lane to the list of lanes for this link.boolean
final String
getId()
final List<LaneDataSim0>
final Length
final String
final String
int
hashCode()
toString()
-
Field Details
-
startNode
start node. -
endNode
end node.
-
-
Constructor Details
-
LinkDataSim0
- 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 interfaceLinkData<LaneDataSim0>
-
getLength
- Specified by:
getLength
in interfaceLinkData<LaneDataSim0>
-
getStartNode
- Returns:
- startNode
-
getEndNode
- Returns:
- endNode
-
getLinkName
- Returns:
- linkName
-
getId
- Specified by:
getId
in interfaceorg.opentrafficsim.base.Identifiable
-
hashCode
public int hashCode() -
equals
-
toString
-