Search in sources :

Example 1 with DigitalActorDigitalOut4

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

the class MBrickletIndustrialDigitalOut4Impl method initSubDevices.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 4; i++) {
        DigitalActorDigitalOut4 out4 = factory.createDigitalActorDigitalOut4();
        out4.setUid(getUid());
        String subId = "out" + String.valueOf(i);
        logger.debug("addSubDevice: {}", subId);
        out4.setSubId(subId);
        out4.setPin(i);
        out4.init();
        out4.setMbrick(this);
        getMsubdevices().add(out4);
    }
}
Also used : DigitalActorDigitalOut4(org.openhab.binding.tinkerforge.internal.model.DigitalActorDigitalOut4) ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory)

Aggregations

DigitalActorDigitalOut4 (org.openhab.binding.tinkerforge.internal.model.DigitalActorDigitalOut4)1 ModelFactory (org.openhab.binding.tinkerforge.internal.model.ModelFactory)1