コード例 #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 HospitalCreate(double delay, string name, string distribution, double devDelay = 0) : base(delay, name, distribution, devDelay)
 {
     PatientsTypes = new List <PatientType>();
     patientType   = new PatientType(0, 0, 0);
 }