data class RoadLanesLaneSection: OpendriveElement, AdditionalLaneSectionIdentifier

Fields

Name Description
val laneSectionStart: get() = CurveRelativeVector1D(s)
var left: Option<RoadLanesLaneSectionLeft>
var center: RoadLanesLaneSectionCenter
var right: Option<RoadLanesLaneSectionRight>
var s: Double
var singleSide: Option<Boolean>
var additionalId: Option<LaneSectionIdentifier>

Constructors

<init>

constructor(left: Option<RoadLanesLaneSectionLeft>, center: RoadLanesLaneSectionCenter, right: Option<RoadLanesLaneSectionRight>, s: Double, singleSide: Option<Boolean>, additionalId: Option<LaneSectionIdentifier>)

Parameters

Name Description
left: Option<RoadLanesLaneSectionLeft>
center: RoadLanesLaneSectionCenter
right: Option<RoadLanesLaneSectionRight>
s: Double
singleSide: Option<Boolean>
additionalId: Option<LaneSectionIdentifier>

Methods

getNumberOfLeftLanes

fun getNumberOfLeftLanes(): left.fold({ 0 }, { it.getNumberOfLanes() })

ReturnValue

Name Description
left.fold({ 0 }, { it.getNumberOfLanes() })

getNumberOfRightLanes

fun getNumberOfRightLanes(): right.fold({ 0 }, { it.getNumberOfLanes() })

ReturnValue

Name Description
right.fold({ 0 }, { it.getNumberOfLanes() })

getNumberOfLeftRightLanes

fun getNumberOfLeftRightLanes(): getNumberOfLeftLanes() + getNumberOfRightLanes()

ReturnValue

Name Description
getNumberOfLeftLanes() + getNumberOfRightLanes()

getNumberOfLanes

fun getNumberOfLanes(): center.getNumberOfLanes() + getNumberOfLeftRightLanes()

ReturnValue

Name Description
center.getNumberOfLanes() + getNumberOfLeftRightLanes()

getCenterLane

fun getCenterLane(): center.lane.first()

ReturnValue

Name Description
center.lane.first()

getLeftLanes

fun getLeftLanes(): Map<Int, RoadLanesLaneSectionLRLane>

ReturnValue

Name Description
Map<Int, RoadLanesLaneSectionLRLane>

getRightLanes

fun getRightLanes(): Map<Int, RoadLanesLaneSectionLRLane>

ReturnValue

Name Description
Map<Int, RoadLanesLaneSectionLRLane>

getLeftRightLanes

fun getLeftRightLanes(): Map<Int, RoadLanesLaneSectionLRLane>

ReturnValue

Name Description
Map<Int, RoadLanesLaneSectionLRLane>