Esempio n. 1
0
 internal Algorithm(AlgorithmTracker provider, bool acceptImprovementsOnly = true)
 {
     AcceptImprovementsOnly = acceptImprovementsOnly;
     Provider    = provider;
     CurrentStep = 1;
 }
Esempio n. 2
0
 /// <summary>
 /// Set its own provider passed as parameter to receive notifications
 /// and gets the unsubscriber object to cancel subscription.
 /// </summary>
 /// <param name="provider"></param>
 internal void Subscribe(AlgorithmTracker provider) => _unsubscriber = provider.Subscribe(this);