コード例 #1
0
ファイル: DataFormat.cs プロジェクト: unn-85m3/project
        /// <summary>
        /// Packing new task.
        /// </summary>
        /// <returns>TaskPackage</returns>
        public ITaskPackage GetData()
        {
            EnterBlackBoxParam param = new EnterBlackBoxParam(LimitMin(varLimitations.x1), LimitMax(varLimitations.x1), 
                LimitMin(varLimitations.x2), LimitMax(varLimitations.x2), comprimate_min(), comprimate_max());
            foreach(BlackBoxParam bbp in varLimitations.blackBoxes)
            {
                BlackBox bb = new BlackBox(bbp.info, bbp.pIn, bbp.pOut, bbp.qOut, bbp.tIn, bbp.dIn, "0"); //ВНЕМАТОЧНО!!!!!
                bbParams.Add(bb);
            }

            TaskPackage task = new TaskPackage(bbParams, param, fileName);
            return task;
        }