Beispiel #1
0
 private void addFeature(String name, DeviceFeature f) {
   f.setDevice(this);
   synchronized (m_features) {
     m_features.put(name, f);
   }
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param device Insteon device to which this feature belongs
  * @param name descriptive name for that feature
  */
 public DeviceFeature(InsteonDevice device, String name) {
   m_name = name;
   setDevice(device);
 }