Search in sources :

Example 1 with RotaryEncoderButton

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

the class MBrickletRotaryEncoderImpl method initSubDevices.

/**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    RotaryEncoder rotaryEncoder = ModelFactory.eINSTANCE.createRotaryEncoder();
    rotaryEncoder.setUid(getUid());
    String subIdEncoder = "encoder";
    rotaryEncoder.setSubId(subIdEncoder);
    logger.debug("addSubDevice {}", subIdEncoder);
    rotaryEncoder.init();
    rotaryEncoder.setMbrick(this);
    RotaryEncoderButton button = ModelFactory.eINSTANCE.createRotaryEncoderButton();
    button.setUid(getUid());
    String subIdButton = "button";
    button.setSubId(subIdButton);
    logger.debug("addSubDevice {}", subIdButton);
    button.init();
    button.setMbrick(this);
}
Also used : RotaryEncoderButton(org.openhab.binding.tinkerforge.internal.model.RotaryEncoderButton) MBrickletRotaryEncoder(org.openhab.binding.tinkerforge.internal.model.MBrickletRotaryEncoder) BrickletRotaryEncoder(com.tinkerforge.BrickletRotaryEncoder) RotaryEncoder(org.openhab.binding.tinkerforge.internal.model.RotaryEncoder)

Aggregations

BrickletRotaryEncoder (com.tinkerforge.BrickletRotaryEncoder)1 MBrickletRotaryEncoder (org.openhab.binding.tinkerforge.internal.model.MBrickletRotaryEncoder)1 RotaryEncoder (org.openhab.binding.tinkerforge.internal.model.RotaryEncoder)1 RotaryEncoderButton (org.openhab.binding.tinkerforge.internal.model.RotaryEncoderButton)1