doc / ch.tutteli.atrium.logic.creating.transformers / FeatureExtractorBuilder / FinalStep

FinalStep

interface FinalStep<T, R>

Final step in the help-me-to-call-FeatureExtractor-process, which creates an ExecutionStep incorporating all chosen options and is able to call SubjectChanger accordingly.

Parameters

T - the type of the current subject.

R - the type of the new subject.

Properties

featureExpectOptions

abstract val featureExpectOptions: FeatureExpectOptions<R>?

Either the previously specified FeatureExpectOptions or null.

featureExtraction

abstract val featureExtraction: (T) -> Option<R>

The previously specified feature extraction lambda.

featureExtractionStep

abstract val featureExtractionStep: FeatureExtractorBuilder.FeatureExtractionStep<T>

The so far chosen options up to the FeatureExtractionStep step.

Functions

build

abstract fun build(): FeatureExtractorBuilder.ExecutionStep<T, R>

Finishes the help-me-to-call-FeatureExtractor-process by creating an ExecutionStep incorporating all previously chosen options.

Companion Object Functions

invoke

operator fun <T, R> invoke(featureExtractionStep: FeatureExtractorBuilder.FeatureExtractionStep<T>, featureExtraction: (T) -> Option<R>, featureExpectOptions: FeatureExpectOptions<R>): FeatureExtractorBuilder.FinalStep<T, R>

Creates the FinalStep in the context of the FeatureExtractorBuilder.

Inheritors

FinalStepImpl

class FinalStepImpl<T, R> : FeatureExtractorBuilder.FinalStep<T, R>