data class Junction: Any

Represents a junction which connects multiple roads and contains lane linkage information.

Fields

Name Description
val id: JunctionIdentifier

identifier of the Junction

val connections: List<Connection>

list of Connection that connect the roads and the respective lanes

Constructors

<init>

constructor(id: JunctionIdentifier, connections: List<Connection>)

Represents a junction which connects multiple roads and contains lane linkage information.

Parameters

Name Description
id: JunctionIdentifier

identifier of the Junction

connections: List<Connection>

list of Connection that connect the roads and the respective lanes

Methods

getConnectingRoadspaceIds

fun getConnectingRoadspaceIds(): connections.map { it.connectingRoadspaceContactPointId.roadspaceIdentifier }.distinct()

ReturnValue

Name Description
connections.map { it.connectingRoadspaceContactPointId.roadspaceIdentifier }.distinct()

getSuccessorLane

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

Returns the successor lane referenced by LaneIdentifier, which follow the laneIdentifier.

Parameters

Name Description
laneIdentifier: LaneIdentifier

identifier for which the successor

ReturnValue

Name Description
List<LaneIdentifier>