class FunctionBuilder: Any

Builder for functions of the OpenDRIVE data model.

Constructors

<init>

constructor(reportLogger: Logger, configuration: Opendrive2RoadspacesConfiguration)

Builder for functions of the OpenDRIVE data model.

Parameters

Name Description
reportLogger: Logger
configuration: Opendrive2RoadspacesConfiguration

Methods

buildCurveTorsion

fun buildCurveTorsion(id: RoadspaceIdentifier, superelevation: List<RoadLateralProfileSuperelevation>): UnivariateFunction

Builds a function that describes the torsion of the road reference line.

Parameters

Name Description
id: RoadspaceIdentifier
superelevation: List<RoadLateralProfileSuperelevation>

entries containing coefficients for polynomial functions

ReturnValue

Name Description
UnivariateFunction

buildLateralShape

fun buildLateralShape(id: RoadspaceIdentifier, roadLateralProfileShape: List<RoadLateralProfileShape>): UnivariateFunction

Builds a function that describes one lateral entry of a road's shape.

Parameters

Name Description
id: RoadspaceIdentifier
roadLateralProfileShape: List<RoadLateralProfileShape>

the cross-sectional profile of a road at a certain curve position

ReturnValue

Name Description
UnivariateFunction

buildLaneOffset

fun buildLaneOffset(id: RoadspaceIdentifier, lanes: RoadLanes): UnivariateFunction

Builds a function that described the lateral lane offset to the road reference line.

Parameters

Name Description
id: RoadspaceIdentifier
lanes: RoadLanes

ReturnValue

Name Description
UnivariateFunction

buildLaneWidth

fun buildLaneWidth(id: LaneIdentifier, laneWidthEntries: List<RoadLanesLaneSectionLRLaneWidth>): UnivariateFunction

Builds a function that describes the lane width.

Parameters

Name Description
id: LaneIdentifier

identifier of the lane, required for logging output

laneWidthEntries: List<RoadLanesLaneSectionLRLaneWidth>

entries containing coefficients for polynomial functions

ReturnValue

Name Description
UnivariateFunction

function describing the width of a lane

buildStackedHeightFunctionFromRepeat

fun buildStackedHeightFunctionFromRepeat(repeat: RoadObjectsObjectRepeat, roadReferenceLine: Curve3D): StackedFunction

Returns the absolute height function of a RoadObjectsObjectRepeat object. Therefore a linear function is build for the zOffsets and is added to the height function of the roadReferenceLine.

Parameters

Name Description
repeat: RoadObjectsObjectRepeat

object for which the height function shall be constructed

roadReferenceLine: Curve3D

road's height

ReturnValue

Name Description
StackedFunction

function of the object's absolute height