Search in sources :

Example 1 with VCDeviceVoltage

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

the class MBrickletVoltageCurrentImpl method initSubDevices.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    VCDeviceVoltage voltage = factory.createVCDeviceVoltage();
    String subIdVoltage = "voltageCurrent_voltage";
    voltage.setSubId(subIdVoltage);
    voltage.setUid(getUid());
    voltage.init();
    voltage.setMbrick(this);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdVoltage);
    VCDeviceCurrent current = factory.createVCDeviceCurrent();
    String subIdCurrent = "voltageCurrent_current";
    current.setSubId(subIdCurrent);
    current.setUid(getUid());
    current.init();
    current.setMbrick(this);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdCurrent);
    VCDevicePower power = factory.createVCDevicePower();
    String subIdPower = "voltageCurrent_power";
    power.setSubId(subIdPower);
    power.setUid(getUid());
    power.init();
    power.setMbrick(this);
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdPower);
}
Also used : VCDevicePower(org.openhab.binding.tinkerforge.internal.model.VCDevicePower) VCDeviceCurrent(org.openhab.binding.tinkerforge.internal.model.VCDeviceCurrent) ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory) VCDeviceVoltage(org.openhab.binding.tinkerforge.internal.model.VCDeviceVoltage)

Aggregations

ModelFactory (org.openhab.binding.tinkerforge.internal.model.ModelFactory)1 VCDeviceCurrent (org.openhab.binding.tinkerforge.internal.model.VCDeviceCurrent)1 VCDevicePower (org.openhab.binding.tinkerforge.internal.model.VCDevicePower)1 VCDeviceVoltage (org.openhab.binding.tinkerforge.internal.model.VCDeviceVoltage)1