Exemple #1
0
 public void OnEndTask(IAlgorithm alg, ITaskPackage task, IOutBlackBoxParam rez, int time)
 {
     if (listener != null)
     {
         listener.OnEndTask(alg, task, rez, time);
     }
 }
Exemple #2
0
        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++;
                }
            }
        }
Exemple #3
0
        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++;
                }


            }

        }
Exemple #4
0
        /// <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();
        }
Exemple #5
0
 public void OnEndTask(IAlgorithm alg, ITaskPackage task, IOutBlackBoxParam rez, int time)
 {
     if (listener != null)
         listener.OnEndTask(alg, task, rez, time);
 }
Exemple #6
0
 public void OnEndTask(Algorithm.IAlgorithm alg, ITaskPackage task, DataFormat.IOutBlackBoxParam rez, int time)
 {
 }
Exemple #7
0
        public void OnEndTask(Algorithm.IAlgorithm alg, ITaskPackage task, DataFormat.IOutBlackBoxParam rez, int time)
        {

        }