internal void Depart(Job departing) { departing.ExitTime = _sim.ClockTime; JobsDeparted.Add(departing); JobsInSystem.Remove(departing); TimeSeries_JobHoursInSystem.Add((departing.ExitTime - departing.EnterTime).TotalHours); }
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); }