Class LinkData
- java.lang.Object
-
- org.opentrafficsim.road.network.sampling.LinkData
-
- All Implemented Interfaces:
Identifiable
,LinkDataInterface
public class LinkData extends Object implements LinkDataInterface
Link representation in road sampler.Copyright (c) 2013-2020 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
Constructors Constructor Description LinkData(CrossSectionLink link)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
List<LaneData>
getLaneDatas()
Length
getLength()
CrossSectionLink
getLink()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
LinkData
public LinkData(CrossSectionLink link)
- Parameters:
link
- CrossSectionLink; wrapped link
-
-
Method Detail
-
getLink
public final CrossSectionLink getLink()
- Returns:
- link.
-
getLaneDatas
public final List<LaneData> getLaneDatas()
- Specified by:
getLaneDatas
in interfaceLinkDataInterface
-
getLength
public final Length getLength()
- Specified by:
getLength
in interfaceLinkDataInterface
-
getId
public final String getId()
- Specified by:
getId
in interfaceIdentifiable
- Specified by:
getId
in interfaceLinkDataInterface
-
-