private void Init() { SetNotArriveProbability(); RegistrationRoom = new Workplace(VaccinSettings.RegistrationWorkers); if (VaccinSettings.DoctorsExperimentEnabled) { ExaminationRoom = new Workplace(_currentDoctorsCount); } else { ExaminationRoom = new Workplace(VaccinSettings.ExaminationWorkers); } VaccinationRoom = new Workplace(VaccinSettings.VaccinationWorkers); RegistrationFront = new Queue <Patient>(); ExaminationFront = new Queue <Patient>(); VaccinationFront = new Queue <Patient>(); RegistrationWaiting = new DiscreetStatistic(); ExaminationWaiting = new DiscreetStatistic(); VaccinationWaiting = new DiscreetStatistic(); RegistrationLength = new ContinuousStatistic(); ExaminationLength = new ContinuousStatistic(); VaccinationLength = new ContinuousStatistic(); WaitingRoomLength = new ContinuousStatistic(); OR_RegistrationLength = new DiscreetStatistic(); OR_RegistrationWaiting = new DiscreetStatistic(); OR_RegistrationWorkload = new DiscreetStatistic(); OR_ExaminationLength = new DiscreetStatistic(); OR_ExaminationWaiting = new DiscreetStatistic(); OR_ExaminationWorkload = new DiscreetStatistic(); OR_VaccinationLength = new DiscreetStatistic(); OR_VaccinationWaiting = new DiscreetStatistic(); OR_VaccinationWorkload = new DiscreetStatistic(); OR_WaitingRoomLength = new DiscreetStatistic(); OR_MissingPatients = new DiscreetStatistic(); OR_Overtime = new DiscreetStatistic(); AddFirstEvent(); }
public Worker() { Id = _id++; Workload = new ContinuousStatistic(); }