Package org.opentrafficsim.sim0mq.kpi
Class LaneDataSim0
java.lang.Object
org.opentrafficsim.sim0mq.kpi.LaneDataSim0
- All Implemented Interfaces:
org.djutils.base.Identifiable
,LaneData<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
Modifier and TypeFieldDescription(package private) final org.djunits.value.vdouble.scalar.Length
the link length. -
Constructor Summary
ConstructorDescriptionLaneDataSim0
(LinkDataSim0 linkData, String laneName, org.djunits.value.vdouble.scalar.Length length) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
final String
final org.djunits.value.vdouble.scalar.Length
final LinkDataSim0
int
hashCode()
final void
setLinkData
(LinkDataSim0 linkData) toString()
-
Field Details
-
length
final org.djunits.value.vdouble.scalar.Length lengththe link length.
-
-
Constructor Details
-
LaneDataSim0
public LaneDataSim0(LinkDataSim0 linkData, String laneName, org.djunits.value.vdouble.scalar.Length length) - Parameters:
linkData
- LinkData; data about the linklaneName
- String; name of the lanelength
- Length; length of the lane
-
-
Method Details
-
getLength
public final org.djunits.value.vdouble.scalar.Length getLength()- Specified by:
getLength
in interfaceLaneData<LaneDataSim0>
-
getLinkData
- Specified by:
getLinkData
in interfaceLaneData<LaneDataSim0>
-
getLaneName
- Returns:
- laneName
-
getId
- Specified by:
getId
in interfaceorg.djutils.base.Identifiable
-
setLinkData
- Parameters:
linkData
- LinkData; set linkData
-
hashCode
public int hashCode() -
equals
-
toString
-