data class RelativeLaneSectionIdentifier: LaneSectionIdentifierInterface, RoadspaceIdentifierInterface, Any

Identifier of a lane section which allows for negative indexing.

Fields

Name Description
val laneSectionId: Int

identifier of the lane section, whereby the first lane section is referenced with 0 and the last lane section can be referenced with -1

val roadspaceIdentifier: RoadspaceIdentifier

Constructors

<init>

constructor(laneSectionId: Int, roadspaceIdentifier: RoadspaceIdentifier)

Identifier of a lane section which allows for negative indexing.

Parameters

Name Description
laneSectionId: Int

identifier of the lane section, whereby the first lane section is referenced with 0 and the last lane section can be referenced with -1

roadspaceIdentifier: RoadspaceIdentifier

Methods

toAbsoluteLaneSectionIdentifier

fun toAbsoluteLaneSectionIdentifier(size: Int): LaneSectionIdentifier

Returns an absolute LaneSectionIdentifier and resolves the negative indices.

Parameters

Name Description
size: Int

number of lane sections in list (last index + 1)

ReturnValue

Name Description
LaneSectionIdentifier