Esempio n. 1
0
        public StorageLoad(int i1, int i2, int i3, int i4, int i5)
        {
            this.item1Load = new Item1(i1);
            this.item2Load = new Item2(i2);
            this.item3Load = new Item3(i3);
            this.item4Load = new Item4(i4);
            this.item5Load = new Item5(i5);

            this.storageMass = this.item1Load.totalMass + this.item2Load.totalMass + this.item3Load.totalMass + this.item4Load.totalMass + this.item5Load.totalMass;
        }
Esempio n. 2
0
        public OrderClass(int i1, int i2, int i3, int i4, int i5, int t)
        {
            this.item1 = new Item1(i1);
            this.item2 = new Item2(i2);
            this.item3 = new Item3(i3);
            this.item4 = new Item4(i4);
            this.item5 = new Item5(i5);

            this.totalMass = this.item1.totalMass + this.item2.totalMass + this.item3.totalMass + this.item4.totalMass + this.item5.totalMass;

            this.orderTime = t;
        }