public void OnEndTask(IAlgorithm alg, ITaskPackage task, IOutBlackBoxParam rez, int time) { if (listener != null) { listener.OnEndTask(alg, task, rez, time); } }
public void Init(ITaskPackage task) { this.task = task; int i = 0; functions = new List <DllBlackBoxCalculator>(); foreach (IBlackBox blackbox in task.BlackBoxes) { if (blackbox.Info != "Узел") { functions.Add(new DllBlackBoxCalculator(url + blackbox.Info, blackbox.Info)); i++; } } }
public void Init(ITaskPackage task) { this.task = task; int i = 0; functions = new List<DllBlackBoxCalculator>(); foreach(IBlackBox blackbox in task.BlackBoxes) { if (blackbox.Info != "Узел") { functions.Add(new DllBlackBoxCalculator(url + blackbox.Info, blackbox.Info)); i++; } } }
/// <summary> /// Заглушка на алгоритмы. /// </summary> private void Create_Algorithms() { BlackBoxFunction function = new BlackBoxFunction(); DataFormat.DataFormat data = new DataFormat.DataFormat(); data.OpenFile("Tests/test_1.txt"); ITaskPackage package = data.GetData(); List <ITaskPackage> tasks = new List <ITaskPackage>(); tasks.Add(package); test_system.TestSystem system = new test_system.TestSystem(tasks, function); Algorithms = new List <Algorithm.IAlgorithm>(); system.AddAlgorithm(new Algorithm.Benchmark_Algorithm(null, function)); system.SetListener(this); system.Test(); }
public void OnEndTask(IAlgorithm alg, ITaskPackage task, IOutBlackBoxParam rez, int time) { if (listener != null) listener.OnEndTask(alg, task, rez, time); }
public void OnEndTask(Algorithm.IAlgorithm alg, ITaskPackage task, DataFormat.IOutBlackBoxParam rez, int time) { }