Score

Pipeline stage for accumulating scores to report

Parameters

config

The configuration to instantiate this class.

Constructors

Link copied to clipboard
constructor(config: Score.Config)

Types

Link copied to clipboard
data class Config(val normalizedTo: Double?, val minScore: Double?, val maxScore: Double?) : ConfigUnit
Link copied to clipboard
data class Report(val _score: Double, val _gradedTotal: Double, val _maxTotal: Double) : StageReportUnit

Properties

Link copied to clipboard
protected lateinit var _runner: Runner
Link copied to clipboard
open val className: String

The class name of this pipeline stage.

Link copied to clipboard
open override val config: Score.Config
Link copied to clipboard

The key of the configuration which instantiated this stage.

Link copied to clipboard
protected var hasTimedOut: Boolean

Whether this stage has timed out.

Link copied to clipboard
Link copied to clipboard
protected val logger: Logger
Link copied to clipboard
private val maxScore: Double
Link copied to clipboard
private val minScore: Double
Link copied to clipboard
private val normalizedTo: Double?
Link copied to clipboard
Link copied to clipboard

The context of the configuration parser associated with instantiating this stage.

Link copied to clipboard

The unique stage name of this pipeline stage.

Link copied to clipboard
open override val reportUnit: Score.Report?
Link copied to clipboard
open val runner: Runner
Link copied to clipboard

The ScoreGenerator for this stage.

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

Functions

Link copied to clipboard
protected open suspend override fun execute(input: StageResult): StageResult

Implementation for executing this pipeline.

Link copied to clipboard

Executes this pipeline stage using input.

Link copied to clipboard
protected fun markStageAsTimedOut()

Marks this stage as having timed out.

Link copied to clipboard
@MustBeInvokedByOverriders
protected open suspend fun onExecComplete()

Callback method to run when execute method completes, regardless of whether it succeeds or fails.

Link copied to clipboard
protected fun onExecFailed(tr: Throwable)

Callback method to run when the execute method fails.

Link copied to clipboard
protected open override fun onExecFailedImpl(tr: Throwable)

Implementation for when the execute method fails.

Link copied to clipboard
protected open fun onInitParserContext(configContext: ConfigParsable.Context)

Implementation when parser context is provided to the stage.

Link copied to clipboard

Provides the parser context to this pipeline stage.

Link copied to clipboard
fun putRunner(runner: Runner)

Puts the context of the Runner into this pipeline stage.