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 incomingRoadspaceContactPointId: RoadspaceContactPointIdentifier

identifier of the contact point of the roadspace which reaches the junction

val connectingRoadspaceContactPointId: RoadspaceContactPointIdentifier

identifier of the contact point of the roadspace which belongs to the junction

val laneLinks: Map<LaneIdentifier, LaneIdentifier>

links between the individual lanes

Constructors

<init>

constructor(id: ConnectionIdentifier, incomingRoadspaceContactPointId: RoadspaceContactPointIdentifier, connectingRoadspaceContactPointId: RoadspaceContactPointIdentifier, laneLinks: Map<LaneIdentifier, LaneIdentifier>)

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

Parameters

Name Description
id: ConnectionIdentifier

identifier of the connection

incomingRoadspaceContactPointId: RoadspaceContactPointIdentifier

identifier of the contact point of the roadspace which reaches the junction

connectingRoadspaceContactPointId: RoadspaceContactPointIdentifier

identifier of the contact point of the roadspace which belongs to the junction

laneLinks: Map<LaneIdentifier, LaneIdentifier>

links between the individual lanes

Methods

getSuccessorLane

fun getSuccessorLane(laneIdentifier: LaneIdentifier): Option<LaneIdentifier>

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
Option<LaneIdentifier>