class FunctionBuilder: Any

Builder for functions of the OpenDRIVE data model.

Constructors

<init>

constructor(reportLogger: Logger, parameters: Opendrive2RoadspacesParameters)

Builder for functions of the OpenDRIVE data model.

Parameters

Name Description
reportLogger: Logger
parameters: Opendrive2RoadspacesParameters

Methods

buildCurveTorsion

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

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

Parameters

Name Description
id: RoadspaceIdentifier
srcSuperelevation: List<RoadLateralProfileSuperelevation>

entries containing coefficients for polynomial functions

ReturnValue

Name Description
UnivariateFunction

buildLateralShape

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

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

Parameters

Name Description
id: RoadspaceIdentifier
srcRoadLateralProfileShape: List<RoadLateralProfileShape>

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

ReturnValue

Name Description
UnivariateFunction

buildLaneOffset

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

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

Parameters

Name Description
id: RoadspaceIdentifier
srcLanes: RoadLanes

ReturnValue

Name Description
UnivariateFunction

buildLaneWidth

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

Builds a function that describes the lane width.

Parameters

Name Description
id: LaneIdentifier

identifier of the lane, required for logging output

srcLaneWidthEntries: List<RoadLanesLaneSectionLRLaneWidth>

entries containing coefficients for polynomial functions

ReturnValue

Name Description
UnivariateFunction

function describing the width of a lane

buildStackedHeightFunctionFromRepeat

fun buildStackedHeightFunctionFromRepeat(srcRepeat: 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
srcRepeat: 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