Пример #1
0
 /// <summary>
 /// Basic constructor
 /// </summary>
 /// <param name="parentControlUnit">Parent emergency control unit</param>
 /// <param name="patient">Patient leaving</param>
 /// <param name="input">Emergency input data</param>
 public EventEmergencyPatientLeave(ControlUnit parentControlUnit,
                                   EntityPatient patient,
                                   IInputEmergency input)
     : base(EventType.Standalone, parentControlUnit)
 {
     _inputData = input;
     _patient   = patient;
 } // end of Event
Пример #2
0
        /// <summary>
        /// Basic constructor of emergency department controls
        /// </summary>
        /// <param name="name">String identifier of control unit</param>
        /// <param name="parentControlUnit">Parent management control unit</param>
        /// <param name="parentSimulationModel">Parent simulation model</param>
        /// <param name="inputData">Emergency input data</param>
        public ControlUnitEmergency(string name,
                                    ControlUnit parentControlUnit,
                                    SimulationModel parentSimulationModel,
                                    IInputEmergency inputData)
            : base(ControlUnitType.Emergency,
                   name,
                   parentControlUnit,
                   parentSimulationModel,
                   inputData)
        {
            _inputData = inputData;

            _delegateHandlingMethods.Add(typeof(DelegateAvailabilitiesForRequest), DefaultDelegateHandling.HandleImmediateSpecialServiceRequest);
        } // end of ControlUnitEmergency