package com.naaturel.ANN.implementation.training.steps;

import com.naaturel.ANN.domain.abstraction.AlgorithmStrategy;
import com.naaturel.ANN.domain.abstraction.TrainingStep;

public class ErrorRegistrationStep implements TrainingStep {

    private final AlgorithmStrategy strategy;

    public ErrorRegistrationStep(AlgorithmStrategy strategy) {
        this.strategy = strategy;
    }

    @Override
    public void run() {
        this.strategy.apply();
    }
}
