Package org.openhab.binding.dscalarm.internal.model

Examples of org.openhab.binding.dscalarm.internal.model.Panel


      int zoneId;
      int keypadId = 1;
 
      switch (dscAlarmDeviceType) {
        case PANEL:
          Panel panel = null;
   
          //Right now we can only connect to one Panel so we only create a single Panel object;
          if(panelMap.isEmpty()) {
            panel = new Panel(panelId);
            panelMap.put(panelId, panel);
          }
          else {
            panel = panelMap.get(1);
          }
         
          if(config.getDSCAlarmItemType() == DSCAlarmItemType.PANEL_CONNECTION)
            updateDeviceProperties(item, config, connected ? 1:0, "Panel Connected");
 
          if((config.getDSCAlarmItemType() == DSCAlarmItemType.PANEL_MESSAGE) && (sysMessage != "")) {
            updateDeviceProperties(item, config, 0, sysMessage);
            sysMessage = "";
          }
 
          if(event != null) {
            panel.handleEvent(item, config, eventPublisher, event);
          }
          else {
            panel.refreshItem(item, config, eventPublisher);
          }
          break;
        case PARTITION:
          partitionId = config.getPartitionId();
          Partition partition = partitionMap.get(partitionId);
View Full Code Here


      int zoneId;
      int keypadId = 1;
 
      switch (dscAlarmDeviceType) {
        case PANEL:
          Panel panel = panelMap.get(panelId);
          if(panel != null)
            panel.updateProperties(item, config, state, description);
          break;
        case PARTITION:
          partitionId = config.getPartitionId();
          Partition partition = partitionMap.get(partitionId);
          if(partition != null)
View Full Code Here

TOP

Related Classes of org.openhab.binding.dscalarm.internal.model.Panel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.