interface OptionsStep<T, R>
Step which allows to override previously defined properties -- such as: use a different description -- but also allows to define options where usually a default value is used -- e.g. per default the subject itself is use as representation, this can be changed.
abstract val featureExtraction: (T) -> Option<R>
The previously specified feature extraction lambda. |
|
abstract val featureExtractionStep: FeatureExtractorBuilder.FeatureExtractionStep<T>
The so far chosen options up to the FeatureExtractionStep step. |
open fun withOptions(configuration: FeatureExpectOptionsChooser<R>.() -> Unit): FeatureExtractorBuilder.FinalStep<T, R>
Allows to define the FeatureExpectOptions via an FeatureExpectOptionsChooser-lambda which provides convenience functions. abstract fun withOptions(expectOptions: FeatureExpectOptions<R>): FeatureExtractorBuilder.FinalStep<T, R>
Uses the given expectOptions. |
|
abstract fun withoutOptions(): FeatureExtractorBuilder.FinalStep<T, R>
States explicitly that no optional FeatureExpectOptions are defined, which means, the FeatureExtractor will create a new AssertionContainer based on the previously defined mandatory options but without any optional options or in other words, the default values are used for the optional options. |
operator fun <T, R> invoke(featureExtractionStep: FeatureExtractorBuilder.FeatureExtractionStep<T>, featureExtraction: (T) -> Option<R>): FeatureExtractorBuilder.OptionsStep<T, R> |
class OptionsStepImpl<T, R> : FeatureExtractorBuilder.OptionsStep<T, R> |