Package org.opentrafficsim.sim0mq.kpi
Class LinkDataSim0
java.lang.Object
org.opentrafficsim.sim0mq.kpi.LinkDataSim0
- All Implemented Interfaces:
org.djutils.base.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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLinkDataSim0
(String linkName, String startNode, String endNode, org.djunits.value.vdouble.scalar.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 org.djunits.value.vdouble.scalar.Length
final String
final String
int
hashCode()
toString()
-
Field Details
-
startNode
start node. -
endNode
end node.
-
-
Constructor Details
-
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
public final org.djunits.value.vdouble.scalar.Length getLength()- Specified by:
getLength
in interfaceLinkData<LaneDataSim0>
-
getStartNode
- Returns:
- startNode
-
getEndNode
- Returns:
- endNode
-
getLinkName
- Returns:
- linkName
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
hashCode
public int hashCode() -
equals
-
toString
-