Esempio n. 1
0
 public RoomieThread(RoomieEngine engine, string name, HierarchicalVariableScope parentScope)
 {
     Engine = engine;
     Id = Guid.NewGuid().ToString();
     Name = name;
     _interpreter = new RoomieCommandInterpreter(this, parentScope ?? Engine.GlobalScope);
     _workQueue = new ParallelWorkQueue();
 }
Esempio n. 2
0
        public ZWaveNetwork(HomeAutomationNetworkContext context)
            : base(context)
        {
            ZWaveController = new global::ControlThink.ZWave.ZWaveController();
            this.Devices = new ZWaveDeviceCollection(this);
            base.Devices = this.Devices;

            WorkQueue = new ParallelWorkQueue();

            Connect();
        }