PerElemScoreUnitGenerator

class PerElemScoreUnitGenerator(val runner: Runner, val stage: PipelineStage, displayName: String, elements: Int?, policy: ConfigUnit.PerElemScorable.Policy?) : ScoreUnitGenerator

A ScoreUnitGenerator which applies to a pipeline stage with a accumulator-based scoring policy (e.g. stages with configurations that use ConfigUnit.PerElemScorable).

This generator is guaranteed to generate a single ScoreReportUnit if score is not null.

Parameters

displayName

The user-friendly name to be displayed in the ScoreReportUnit.

elements

The number of "scoring elements" as computed by the stage, or null if a number cannot be computed.

policy

The user-defined policy for computing the final score.

Constructors

Link copied to clipboard
constructor(runner: Runner, stage: PipelineStage, displayName: String, elements: Int?, policy: ConfigUnit.PerElemScorable.Policy?)

Properties

Link copied to clipboard
protected val reportIdx: Int

The index of this stage with respect to stages of this type.

Link copied to clipboard
protected open override val runner: Runner

The Runner used to execute the pipeline stage.

Link copied to clipboard
open override val scoreUnits: List<ScoreReportUnit>?

List of ScoreReportUnit generated.

Link copied to clipboard
protected open override val stage: PipelineStage

The PipelineStage which should generate the ScoreReportUnit.

Link copied to clipboard
protected open val stageName: String

The name of the stage.