public RandomnessAlgorithmThreaded() : base() { sync_buffer = new List<int>(); algorithm = new RandomnessAlgorithmStored(); Configuration.OnItemChange += new EventHandlerConfigurationItem(PropagateConfigurationChange); CheckAlgortihmConfiguration(); thread = new Thread(new ThreadStart(FillBuffer)); thread.IsBackground = true; thread.Start(); }
public static void Register(IRandomnessAlgorithm algorithm) { _repository.Register(algorithm); }
public void Explore(IRandomnessAlgorithm algorithm, string description) { Algorithm = algorithm; Description = description; Start(); }
public static void Register(IRandomnessAlgorithm algorithm) { _repository.Register(algorithm); _configuration.Algorithms.Add(algorithm.GetID()); }