Package org.opentrafficsim.sim0mq.kpi
Class LinkDataSim0
java.lang.Object
org.opentrafficsim.sim0mq.kpi.LinkDataSim0
- All Implemented Interfaces:
Identifiable,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
-
Constructor Summary
ConstructorsConstructorDescriptionLinkDataSim0(String linkName, String startNode, String endNode, Length length) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLaneData(LaneDataSim0 laneData) Add the lane to the list of lanes for this link.booleanfinal StringgetId()final List<LaneDataSim0>getLanes()final Lengthfinal Stringfinal StringinthashCode()toString()
-
Constructor Details
-
LinkDataSim0
- Parameters:
linkName- wrapped link namestartNode- data of start nodeendNode- data of end nodelength- the length
-
-
Method Details
-
addLaneData
Add the lane to the list of lanes for this link.- Parameters:
laneData- the lane to add
-
getLanes
- Specified by:
getLanesin interfaceLinkData<LaneDataSim0>
-
getLength
- Specified by:
getLengthin interfaceLinkData<LaneDataSim0>
-
getStartNode
- Returns:
- startNode
-
getEndNode
- Returns:
- endNode
-
getLinkName
- Returns:
- linkName
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
hashCode
public int hashCode() -
equals
-
toString
-