public void addCommandClass ( ZWaveCommandClass commandClass ) { ZWaveCommandClass . CommandClass key = commandClass . getCommandClass ( ) ; if ( ! supportedCommandClasses . containsKey ( key ) ) { supportedCommandClasses . put ( key , commandClass ) ; if ( commandClass instanceof ZWaveEventListener ) this . controller . addEventListener ( ( ZWaveEventListener ) commandClass ) ; this . lastUpdated = Calendar . getInstance ( ) . getTime ( ) ; } }
Adds a command class to the list of supported command classes by this node . Does nothing if command class is already added .