public ExtracorporealBloodCircuitTestEnvironment() { BloodFlowCombinator.ConnectOutWithIn(Patient.ArteryFlow, ExtracorporealBloodCircuit.FromPatientArtery); ExtracorporealBloodCircuit.AddFlows(BloodFlowCombinator); BloodFlowCombinator.ConnectOutWithIn(ExtracorporealBloodCircuit.ToPatientVein, Patient.VeinFlow); BloodFlowCombinator.ConnectOutWithIn(ExtracorporealBloodCircuit.ToDialyzer, Dialyzer.BloodFlow); BloodFlowCombinator.ConnectOutWithIn(Dialyzer.BloodFlow, ExtracorporealBloodCircuit.FromDialyzer); BloodFlowCombinator.CommitFlow(); }
public DialyzerTestEnvironment() { DialysingFluidFlowCombinator.ConnectOutWithIn(DialyzingFluidDeliverySystem.DialyzingFluidFlowSource, Dialyzer.DialyzingFluidFlow); DialysingFluidFlowCombinator.ConnectOutWithIn(Dialyzer.DialyzingFluidFlow, DialyzingFluidDeliverySystem.DialyzingFluidFlowSink); BloodFlowCombinator.ConnectOutWithIn(Patient.ArteryFlow, Dialyzer.BloodFlow); BloodFlowCombinator.ConnectOutWithIn(Dialyzer.BloodFlow, Patient.VeinFlow); BloodFlowCombinator.CommitFlow(); DialysingFluidFlowCombinator.CommitFlow(); }
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(); }