Example #1
0
        public Program()
        {
            _målingContainer = new MålingContainer();
            _dataContainer   = new DataContainer();
            _ifilter         = new RawFilter();


            _BTcontroller = new BTMålerController(_målingContainer);
            _dataqueue    = new ConcurrentQueue <Bufferblock>();

            _producer = new DataProducer(_dataqueue);
            DL        = new DataController(_producer);
            _kalib    = new Kalibrering(DL);

            _UdKal    = new UdregnKalibrering();
            _consumer = new Consumer(_dataqueue, _ifilter, _dataContainer, _BTcontroller, _UdKal);
            LL        = new LogikController(DL, _consumer, _dataContainer, _kalib);
            PL        = new PresentationLayerController(LL, _dataContainer, _målingContainer);
            PL.startUpGUI();
        }
Example #2
0
 public Converter(BTMålerController BTMålerController, UdregnKalibrering UdKal)
 {
     _BTMålerController = BTMålerController;
     _UdKal             = UdKal;
 }
Example #3
0
 public Consumer(ConcurrentQueue <Bufferblock> dataQueue, IFilter iFilter, DataContainer DCT, BTMålerController BTMålerController, UdregnKalibrering UdKal)
 {
     Ifilter    = iFilter;
     _dataQueue = dataQueue;
     _dct       = DCT;
     convert    = new Converter(BTMålerController, UdKal);
     filter     = new Filter(iFilter, _dct);
 }