/// <summary> /// Basic constructor. /// </summary> /// <param name="parentControlUnit">Parent control unit, either a health care department control unit or a organizational unit</param> /// <param name="input">Input data of department model</param> /// <param name="patient">Patient receiving service</param> /// <param name="resources">Resources included in the activity</param> /// <param name="type">Type of activity (e.g. emergency action type)</param> /// <param name="patientPath">The current path of the patient (can vary for outpatient or emergency paths)</param> public ActivityHealthCareAction(ControlUnit parentControlUnit, IInputHealthCareDepartment input, EntityPatient patient, ResourceSet resources, T type, PatientPath <T> patientPath) : base(parentControlUnit, "ActivityHealthCareAction", type.IsPreemptable) { _inputData = input; _patient = patient; _actionType = type; _resourceSet = resources; _patientPath = patientPath; // in case that the parent control unit is a organizational control // the parent department control is set if (parentControlUnit is ControlUnitHealthCareDepartment) { _parentDepartmentControl = parentControlUnit as ControlUnitHealthCareDepartment; } else if (parentControlUnit is ControlUnitOrganizationalUnit) { _parentDepartmentControl = ((ControlUnitOrganizationalUnit)parentControlUnit).ParentDepartmentControl as ControlUnitHealthCareDepartment; } } // end of ActivityHealthCareAction
//-------------------------------------------------------------------------------------------------- // Constructor //-------------------------------------------------------------------------------------------------- #region Constructor /// <summary> /// Basic constructor /// </summary> /// <param name="name">String identifier of control unit</param> /// <param name="parentControlUnit">Parent control, either a department control or another organizational control</param> /// <param name="parentDepartmentControl">Parent department control</param> /// <param name="parentSimulationModel">Parent simulation model</param> /// <param name="inputData">Parent department input</param> public ContorlUnitAssessmentTreatmentExample(string name, ControlUnit parentControlUnit, ControlUnitHealthCareDepartment parentDepartmentControl, SimulationModel parentSimulationModel, IInputHealthCareDepartment inputData) : base(name, parentControlUnit, parentDepartmentControl, parentSimulationModel, inputData) { } // end of
//-------------------------------------------------------------------------------------------------- // Constructor //-------------------------------------------------------------------------------------------------- #region Constructor /// <summary> /// Basic constructor /// </summary> /// <param name="name">String identifier of control unit</param> /// <param name="parentControlUnit">Parent control, either a department control or another organizational control</param> /// <param name="parentDepartmentControl">Parent department control</param> /// <param name="parentSimulationModel">Parent simulation model</param> /// <param name="inputData">Parent department input</param> public ControlUnitEmergencyRegisterTriage(string name, ControlUnit parentControlUnit, ControlUnitHealthCareDepartment parentDepartmentControl, SimulationModel parentSimulationModel, IInputHealthCareDepartment inputData) : base(name, parentControlUnit, parentDepartmentControl, parentSimulationModel, inputData) { } // end of
//-------------------------------------------------------------------------------------------------- // Constructor //-------------------------------------------------------------------------------------------------- #region Constructor /// <summary> /// Basic constructor /// </summary> /// <param name="name">String identifier of control unit</param> /// <param name="parentControlUnit">Parent control, either a department control or another organizational control</param> /// <param name="parentDepartmentControl">Parent department control</param> /// <param name="parentSimulationModel">Parent simulation model</param> /// <param name="inputData">Parent department input</param> public ControlUnitOrganizationalUnit(string name, ControlUnit parentControlUnit, ControlUnitHealthCareDepartment parentDepartmentControl, SimulationModel parentSimulationModel, IInputHealthCareDepartment inputData) : base(ControlUnitType.OrganizationalUnit, name, parentControlUnit, parentSimulationModel) { _parentDepartmentControl = parentDepartmentControl; _childOrganizationalUnits = new ControlUnitOrganizationalUnit[] { }; _assingedTreatmentFacilities = new List <EntityTreatmentFacility>(); _inputData = inputData; } // end of
/// <summary> /// Bsaic constructor /// </summary> /// <param name="type">Type of health care control unit</param> /// <param name="name">String identifier of control unit</param> /// <param name="parentControlUnit">Parent control unit if this is not the root control unit of the control tree</param> /// <param name="parentSimulationModel">Parent simulation model</param> /// <param name="inputData">Input data for the department</param> public ControlUnitHealthCareDepartment(ControlUnitType type, string name, ControlUnit parentControlUnit, SimulationModel parentSimulationModel, IInputHealthCareDepartment inputData) : base(type, name, parentControlUnit, parentSimulationModel) { _childOrganizationalUnits = new ControlUnitOrganizationalUnit[] { }; _organizationalUnitsPerName = new Dictionary <string, ControlUnitOrganizationalUnit>(); _inputData = inputData; } // end of ControlUnitHealthCare