Esempio n. 1
0
 internal void Depart(Job departing)
 {
     departing.ExitTime = _sim.ClockTime;
     JobsDeparted.Add(departing);
     JobsInSystem.Remove(departing);
     TimeSeries_JobHoursInSystem.Add((departing.ExitTime - departing.EnterTime).TotalHours);
 }
Esempio n. 2
0
        internal Job Generate_EnteringJob(Random rs)
        {
            var job = new Job {
                Id = JobCounter++, Type = _sim.Scenario.Generate_JobType(rs), EnterTime = _sim.ClockTime, CurrentStage = 0
            };

            JobsInSystem.Add(job);
            return(job);
        }