Package org.opentrafficsim.sim0mq.kpi
Class LinkData
java.lang.Object
org.opentrafficsim.sim0mq.kpi.LinkData
- All Implemented Interfaces:
Identifiable,LinkDataInterface
public class LinkData extends 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 voidaddLaneData(LaneData laneData)Add the lane to the list of lanes for this link.booleanequals(Object obj)NodeDatagetEndNode()StringgetId()List<LaneDataInterface>getLaneDatas()LengthgetLength()StringgetLinkName()NodeDatagetStartNode()inthashCode()StringtoString()
-
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:
getLaneDatasin interfaceLinkDataInterface
-
getLength
- Specified by:
getLengthin interfaceLinkDataInterface
-
getStartNode
- Returns:
- startNode
-
getEndNode
- Returns:
- endNode
-
getLinkName
- Returns:
- linkName
-
getId
- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfaceLinkDataInterface
-
hashCode
public int hashCode() -
equals
-
toString
-