Search in sources :

Example 1 with ColorIlluminance

use of org.openhab.binding.tinkerforge.internal.model.ColorIlluminance in project openhab1-addons by openhab.

the class MBrickletColorImpl method initSubDevices.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    ColorColor color = factory.createColorColor();
    color.setUid(getUid());
    String subIdColor = "color";
    color.setSubId(subIdColor);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdColor);
    color.init();
    color.setMbrick(this);
    ColorColorTemperature temperature = factory.createColorColorTemperature();
    temperature.setUid(getUid());
    String subIdTemperature = "temperature";
    temperature.setSubId(subIdTemperature);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdTemperature);
    temperature.init();
    temperature.setMbrick(this);
    ColorIlluminance illuminance = factory.createColorIlluminance();
    illuminance.setUid(getUid());
    String subIdIlluminance = "illuminance";
    illuminance.setSubId(subIdIlluminance);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdIlluminance);
    illuminance.init();
    illuminance.setMbrick(this);
    ColorLed led = factory.createColorLed();
    led.setUid(getUid());
    String subIdLed = "led";
    led.setSubId(subIdLed);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdLed);
    led.init();
    led.setMbrick(this);
}
Also used : ColorColor(org.openhab.binding.tinkerforge.internal.model.ColorColor) ColorIlluminance(org.openhab.binding.tinkerforge.internal.model.ColorIlluminance) ColorLed(org.openhab.binding.tinkerforge.internal.model.ColorLed) ColorColorTemperature(org.openhab.binding.tinkerforge.internal.model.ColorColorTemperature) ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory)

Aggregations

ColorColor (org.openhab.binding.tinkerforge.internal.model.ColorColor)1 ColorColorTemperature (org.openhab.binding.tinkerforge.internal.model.ColorColorTemperature)1 ColorIlluminance (org.openhab.binding.tinkerforge.internal.model.ColorIlluminance)1 ColorLed (org.openhab.binding.tinkerforge.internal.model.ColorLed)1 ModelFactory (org.openhab.binding.tinkerforge.internal.model.ModelFactory)1