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-2022 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
addLaneData
public void addLaneData(LaneData laneData)
Add the lane to the list of lanes for this link.- Parameters:
laneData- LaneData; the lane to add
-
getLaneDatas
public final List<LaneDataInterface> getLaneDatas()
- Specified by:
getLaneDatasin interfaceLinkDataInterface
-
getLength
public final Length getLength()
- Specified by:
getLengthin interfaceLinkDataInterface
-
getStartNode
public final NodeData getStartNode()
- Returns:
- startNode
-
getEndNode
public final NodeData getEndNode()
- Returns:
- endNode
-
getLinkName
public final String getLinkName()
- Returns:
- linkName
-
getId
public String getId()
- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfaceLinkDataInterface
-
-