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
List of ScoreReportUnit generated.
Link copied to clipboard
The PipelineStage which should generate the ScoreReportUnit.