override public void OutAct() { base.OutAct(); CreateQuantity++; base.TNext = base.TCurr + base.GetDelay(); PatientType patientType = FindPatientType(); Patient patient = new Patient() { Index = CreateQuantity, startTime = TCurr, PatientType = new PatientType { AvRegisterTime = patientType.AvRegisterTime, Name = patientType.Name, Frequency = patientType.Frequency } }; NextElement.CurrentPatient = patient; NextElement.InAct(); }
public override void OutAct() { base.OutAct(); int index = 0; if (PatientsTypes.Count > 0) { index = patientType.ChooseProbability(PatientsTypes) - 1; foreach (var t in PatientsTypes) { if (index + 1 == t.Index) { t.Quantity++; } } } TNext = TCurrent + GetDelay(); NextElement.AverageDelay = PatientsTypes[index].AvgTimeOfRegistration; NextElement.InAct(PatientsTypes[index].Index); }
public override void OutAct() { base.OutAct(); TNext = TCurrent + GetDelay(); NextElement.InAct(1); }