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);