public EJobComplete(double time, Simulation sim, SimulationJob j) { Time = time; Sim = sim; J = j; DebugDescription = string.Format("Job {0} was completed at time {1} on machine {2}", J.JobParams.ID, Time, GetMachineForJob(J.JobParams).MachineID); }
public EJobScheduledStart(double time, Simulation sim, SimulationJob j) { Time = time; Sim = sim; J = j; DebugDescription = string.Format("Job {0} scheduled for start at time {1}", J.JobParams.ID, Time); }
public EJobRelease(double time, Simulation sim, SimulationJob j) { Time = time; Sim = sim; J = j; DebugDescription = string.Format("Job {0} released at time {1}", J.JobParams.ID, Time); }
public EJobStart(double time, Simulation sim, SimulationJob j) { Time = time; Sim = sim; J = j; DebugDescription = string.Format("Job {0} STARTED PROCESSING at time {1} on machine {2}", J.JobParams.ID, Time, GetMachineForJob(J.JobParams).MachineID); }
public EJobAvailable(double time, Simulation sim, SimulationJob j) { Time = time; Sim = sim; J = j; DebugDescription = string.Format("Job {0} became available at time {1}. It is assigned to machine {2}", J.JobParams.ID, Time, GetMachineForJob(J.JobParams).MachineID); }
//public State CurrentState; // not used public Simulation(int _Nruns, Schedule _sched, string _DistrType) { DistributionType = _DistrType; NRuns = _Nruns; Sched = _sched; BuildPath(); SimulationJobs = new SimulationJob[Sched.PrecedenceDAG.N]; double[] RealisedStartTime = new double[Sched.PrecedenceDAG.N + 1]; for (int i = 0; i < Sched.PrecedenceDAG.N; i++) { SimulationJobs[i] = new SimulationJob(Sched.PrecedenceDAG.Jobs[i], this); } for (int i = 0; i < Sched.PrecedenceDAG.N; i++) { SimulationJobs[i] = new SimulationJob(Sched.PrecedenceDAG.Jobs[i], this); } HasBeenMadeAvailable = new bool[Sched.PrecedenceDAG.N]; }