Exemple #1
0
        public Model()
        {
            _dialysingFluidFlowCombinator = new DialyzingFluidFlowCombinator();
            _bloodFlowCombinator          = new BloodFlowCombinator();

            HdMachine = new HdMachine
            {
            };

            Patient = new Patient
            {
            };

            HdMachine.AddFlows(_dialysingFluidFlowCombinator, _bloodFlowCombinator);

            _bloodFlowCombinator.ConnectOutWithIn(HdMachine.ToPatientVein, Patient.VeinFlow);
            _bloodFlowCombinator.ConnectOutWithIn(Patient.ArteryFlow, HdMachine.FromPatientArtery);
            _bloodFlowCombinator.CommitFlow();
            _dialysingFluidFlowCombinator.CommitFlow();
        }
Exemple #2
0
		public Model()
		{
			_dialysingFluidFlowCombinator = new DialyzingFluidFlowCombinator();
			_bloodFlowCombinator = new BloodFlowCombinator();

			HdMachine = new HdMachine
			{
			};

			Patient = new Patient
			{
			};

			HdMachine.AddFlows(_dialysingFluidFlowCombinator, _bloodFlowCombinator);

			_bloodFlowCombinator.ConnectOutWithIn(HdMachine.ToPatientVein, Patient.VeinFlow);
			_bloodFlowCombinator.ConnectOutWithIn(Patient.ArteryFlow,HdMachine.FromPatientArtery);
			_bloodFlowCombinator.CommitFlow();
			_dialysingFluidFlowCombinator.CommitFlow();
		}