IProgress <AlgorithmState <TFactor, TStep> > IAlgorithmObserverFactory <TStep> .Create <TFactor>(HeuristicSearchBase <TFactor, TStep> source) { var progress = new AlgorithmProgress <TFactor, TStep>(); OnCreated(progress); return(progress); }
/// <summary> /// Invokes <see cref="Created"/> event. /// </summary> /// <param name="progress">The new <see cref="AlgorithmProgress{TStep}"/> instance.</param> protected virtual void OnCreated(AlgorithmProgress <TStep> progress) { Created?.Invoke(this, progress); }