示例#1
0
        public DeliveryDemand(DeliveryDemand copy)
        {
            this.ID = copy.ID;
            this.IsDone = copy.IsDone;
            this.RealDeliveryDate = copy.RealDeliveryDate;
            this.FillDeliveryDate = copy.FillDeliveryDate;

            this.MaterialsDemand = new MaterialCluster(copy.MaterialsDemand);
        }
示例#2
0
        public DeliveryDemand(int id, DateTime fillDeliveryDate, MaterialCluster materialsDemand)
        {
            this.ID = id;
            this.RealDeliveryDate = null;
            this.FillDeliveryDate = fillDeliveryDate;
            this.IsDone = false;

            MaterialsDemand = new MaterialCluster(materialsDemand);
        }
示例#3
0
        public GeneratedProduct()
        {
            GeneratorType = GeneratorType.Normal;   //CGeneratedElement
            fA = 2.0;             //CGeneratedElement
            fB = 1.0;             //CGeneratedElement

            Index = 0;
            Time = 0;
            Materials = new MaterialCluster();

            Modify = new GeneratedElement();
            Modify.GeneratorType = GeneratorType.Normal;
            Modify.fA = 2.0;
            Modify.fB = 1.0;
        }
示例#4
0
 public bool TakeAwayMaterialCluster(MaterialCluster materialCluster)
 {
     return cluster.TakeAwayEntityCluster(materialCluster.cluster);
 }
示例#5
0
 public bool IsMaterialCluster(MaterialCluster materialCluster)
 {
     return cluster.IsEntityCluster(materialCluster.cluster);
 }
示例#6
0
 public void AddMaterialCluster(MaterialCluster materialCluster)
 {
     cluster.AddEntityCluster(materialCluster.cluster);
 }
示例#7
0
 public MaterialCluster(MaterialCluster copy)
 {
     cluster = new EntityCluster(copy.cluster, LIMITATION);
 }
示例#8
0
        /// <summary>
        /// Конструктор - инициализация значений
        /// </summary>
        public CStorage()
        {
            modifyStatistic = new int[] { 0, 0 };

            acceptedDemands = new Dictionary<int, Demand>(); // Принятые Заявки.

            declinedDemands = new Dictionary<int, Demand>(); // Отклонённые Заявки

            canceledDemands = new Dictionary<int, Demand>(); // Оменённые Заявки

            plan = new Queue<PlanElement>(); //очередь из элементов плана на день

            Materials = new MaterialCluster();
            //Инициализация склада нулевыми значениями

            planReport = new Dictionary<DateTime, PlanReportElement>();
            //Статистика производства. Пара: время окончания выполнения - элемент плана

            DeliveryDemands = new Dictionary<int, DeliveryDemand>();
            // обработанные заявки на поставку материалов

            materialsPerDay = new Dictionary<int, List<int>>(); // количество материалов на каждый день моделирования
            for (var dayId = 1; dayId <= 12; dayId++)
                materialsPerDay.Add(dayId, new List<int>());

            idleTimePerDay = new List<double>();
            // доля времени простоя производства от рабочего времени на каждый день моделирования

            demandAverageDelayPerDay = new List<double>();
            // среденее время задержки заказов на каждый день моделирования

            finishedDemandsPerDay = new List<double>();
            // доля выполненных заказов на каждый день моделирования

            canceledDemandsPerDay = new List<double>();
            // доля отменённых заказов на каждый день моделирования
        }