use of org.openhab.binding.zwave.internal.protocol.commandclass.ZWaveCommandClass.CommandClass in project openhab1-addons by openhab.
the class ZWaveNode method addCommandClass.
/**
* Adds a command class to the list of supported command classes by this node.
* Does nothing if command class is already added.
*
* @param commandClass the command class instance to add.
*/
public void addCommandClass(ZWaveCommandClass commandClass) {
CommandClass key = commandClass.getCommandClass();
if (!supportedCommandClasses.containsKey(key)) {
logger.debug("NODE {}: Adding command class {} to the list of supported command classes.", nodeId, commandClass.getCommandClass().getLabel());
supportedCommandClasses.put(key, commandClass);
if (commandClass instanceof ZWaveEventListener) {
this.controller.addEventListener((ZWaveEventListener) commandClass);
}
}
}
Aggregations