class RoadspaceBuilder: Any

Builder of Roadspace (RoadSpaces data model) to the Road class of the OpenDRIVE data model.

Constructors

<init>

constructor(configuration: Opendrive2RoadspacesConfiguration)

Builder of Roadspace (RoadSpaces data model) to the Road class of the OpenDRIVE data model.

Parameters

Name Description
configuration: Opendrive2RoadspacesConfiguration

Methods

buildRoadspace

fun buildRoadspace(modelId: ModelIdentifier, road: OpendriveRoad): Result<Roadspace, Exception>

Builds a Roadspace of the RoadSpaces data model from the OpenDRIVE road.

Parameters

Name Description
modelId: ModelIdentifier

identifier of the actual model

road: OpendriveRoad

source OpenDRIVE model

ReturnValue

Name Description
Result<Roadspace, Exception>

transformed Roadspace