Beispiel #1
0
        // csak szépítés
        MachinesGroup MachinesGroupMaker(int time, int machineNumber, MachinesGroup pervious)
        {
            MachinesGroup gcs = new MachinesGroup(pervious);

            for (int i = 0; i < machineNumber; i++)
            {
                gcs.machines.Add(new Machine(time));
            }
            return(gcs);
        }
Beispiel #2
0
        public void SB(int db)
        {
            MachineGroup1 = MachinesGroupMaker(6, 6, null);

            MachineGroup2 = MachinesGroupMaker(15, 2, MachineGroup1);

            MachineGroup3 = MachinesGroupMaker(10, 3, MachineGroup2);

            MachineGroup4 = MachinesGroupMaker(5, 1, MachineGroup3);

            MachineGroup5 = MachinesGroupMaker(15, 4, MachineGroup4);

            MachineGroup6 = MachinesGroupMaker(12, 3, MachineGroup5);

            MachineGroup1.nextProcess = MachineGroup2;
            MachineGroup2.nextProcess = MachineGroup3;
            MachineGroup3.nextProcess = MachineGroup4;
            MachineGroup4.nextProcess = MachineGroup5;
            MachineGroup5.nextProcess = MachineGroup6;

            MachineGroup1.Start(db);
        }
Beispiel #3
0
 public MachinesGroup(MachinesGroup perviousProcess)
 {
     machines             = new List <Machine>();
     this.perviousProcess = perviousProcess;
 }