Пример #1
0
        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();
        }
Пример #2
0
        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);
        }
Пример #3
0
 public override void OutAct()
 {
     base.OutAct();
     TNext = TCurrent + GetDelay();
     NextElement.InAct(1);
 }