Beispiel #1
0
        public LighterFrame(string id, IQEventManager eventManager)
        {
            _Air         = new Air("Air" + id, id, eventManager);
            _Flint       = new Flint("Flint" + id, id, eventManager);
            _FuelMixture = new FuelMixture("FuelMixture" + id, id, eventManager);
            _Valve       = new Valve("Valve" + id, id, eventManager);

            RegisterStateChange(eventManager);
            LinkPorts();
            Log();
            Init();
        }
Beispiel #2
0
        void Init()
        {
            _manager = GQHSMManager.Instance;
            _globals = _manager.Globals;

            _Valve       = new Valve(_logger);
            _Air         = new Air(_logger);
            _FuelMixture = new FuelMixture(_logger);
            _Flint       = new Flint(_logger);

            RegisterStateChange(GQHSMManager.Instance.EventManager);

            _Valve.Init();
            _Air.Init();
            _FuelMixture.Init();
            _Flint.Init();
        }