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, srcRoad: OpendriveModelRoad): 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

srcRoad: OpendriveModelRoad

source OpenDRIVE model

ReturnValue

Name Description
Result<Roadspace, Exception>

transformed Roadspace