public ConvertClass(iDataAccessLogic dataAccessLogic) { _dataAccessLogic = dataAccessLogic; _calibrationDTO = _dataAccessLogic.getValues(); slope = _calibrationDTO.Slope; intercept = _calibrationDTO.Intercept; }
public Program() { //Opsætning af referencer til implementationer af interfaces icurrentDAL = new CtrlDataAccessLogic(); icurrentBL = new CtrlBusinessLogic(icurrentDAL); icurrentGUIPL = new SimpelCtrlRPIUI(icurrentBL); //Eller omstil til en anden for UI (User Interface) //icurrentGUIPL = new AnotherGUI(icurrentBL); icurrentGUIPL.startUpGUI();//Trin start applikation }
public CtrlBusinessLogic(iDataAccessLogic mydal, ConcurrentQueue <Datacontainer> RawDataQueue) { _currentDal = mydal; asynchQueue = RawDataQueue; _convertClass = new ConvertClass(mydal); _dateReadyEventRawToFine = new AutoResetEvent(false); _dataReadyEventSystolic = new AutoResetEvent(false); _dataReadyEventMean = new AutoResetEvent(false); _dataReadyEventPulse = new AutoResetEvent(false); _consumer = new Consumer(asynchQueue, _convertClass); _rawtofine = new RawToFine(_dateReadyEventRawToFine, _consumer); _currentDal.setAsyncQueue(asynchQueue); _alarmWithOutParameter = new Alarm(); _calculateBloodPreassure = new CalculateBloodPreassure(_dataReadyEventSystolic, _consumer, this, _alarmWithOutParameter); _saveMeasurement = new SaveMeasurement(); _calibration = new Calibration(_convertClass.GetZeroPointValue()); _calculateMean = new CalcMeanBloodPreassure(_dataReadyEventMean, _consumer); _calculatePulse = new CalculatePulse(_dataReadyEventPulse, _consumer); _saveData = new SaveData(); }
public Calibration(double zp) { _iDataAccessLogic = new CtrlDataAccessLogic(); _calibrationValuesDto = new CalibrationValuesDTO(); _zp = zp; }
/// <summary> /// In this constructor the DI instance may come from injection done in Main, the RPI version. /// Or comming from a DI Container, the WPF version /// </summary> /// <param name="mydal"></param> public CtrlBusinessLogic(iDataAccessLogic mydal) { this.currentDal = mydal; }