public TextOptimization(IStringPatternService stringPatternService, IGeneticAlgorithm <StringPatternProcessor> geneticAlgorithm, IRawTextRepository rawTextRepository, ILog log, ITextOptimizationConfig textOptimizationConfig) { this.stringPatternService = stringPatternService; this.geneticAlgorithm = geneticAlgorithm; this.rawTextRepository = rawTextRepository; this.log = log; this.textOptimizationConfig = textOptimizationConfig; }
public StringPatternProcessorGod(IEvolutionStrategy evolutionStragey, IStringPatternService stringPatternService, IOptimizerConfig optimizerConfig, IRandomService randomService) { this.isInitialized = false; this.evolutionStrategy = evolutionStragey; this.stringPatternService = stringPatternService; this.optimizerConfig = optimizerConfig; this.randomService = randomService; this.scoreCache = new ConcurrentDictionary <Guid, double>(); }