data class Connection: Any

Represents the connection of two roads, the incoming road and the connecting road.

Fields

Name Description
val id: ConnectionIdentifier

identifier of the connection

val incomingRoadspaceId: RoadspaceIdentifier

identifier of the roadspace which reaches the junction

val connectingRoadspaceId: RoadspaceIdentifier

ifdentifier of the roadspace which belongs to the junction

val contactPoint: ContactPoint

contact point of the connecting road

val laneLinks: Map<Int, Int>

links between the individual lanes

Constructors

<init>

constructor(id: ConnectionIdentifier, incomingRoadspaceId: RoadspaceIdentifier, connectingRoadspaceId: RoadspaceIdentifier, contactPoint: ContactPoint, laneLinks: Map<Int, Int>)

Represents the connection of two roads, the incoming road and the connecting road.

Parameters

Name Description
id: ConnectionIdentifier

identifier of the connection

incomingRoadspaceId: RoadspaceIdentifier

identifier of the roadspace which reaches the junction

connectingRoadspaceId: RoadspaceIdentifier

ifdentifier of the roadspace which belongs to the junction

contactPoint: ContactPoint

contact point of the connecting road

laneLinks: Map<Int, Int>

links between the individual lanes

Methods

getSuccessorLane

fun getSuccessorLane(laneIdentifier: LaneIdentifier): Optional<RelativeLaneIdentifier>

Returns the lane information of the succeeding lane with laneIdentifier, if a link exists.

Parameters

Name Description
laneIdentifier: LaneIdentifier

identifier of the lane for which the linked and succeeding lane shall be found

ReturnValue

Name Description
Optional<RelativeLaneIdentifier>