private void addFeature(String name, DeviceFeature f) { f.setDevice(this); synchronized (m_features) { m_features.put(name, f); } }
/** * 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); }