use of org.openhab.binding.tinkerforge.internal.model.ModelFactory in project openhab1-addons by openhab.
the class MBrickletIndustrialDualAnalogInImpl method initSubDevices.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public void initSubDevices() {
ModelFactory factory = ModelFactory.eINSTANCE;
IndustrialDualAnalogInChannel channel0 = factory.createIndustrialDualAnalogInChannel();
channel0.setChannelNum((short) 0);
channel0.setUid(getUid());
String subIdChannel0 = "channel0";
logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdChannel0);
channel0.setSubId(subIdChannel0);
channel0.init();
channel0.setMbrick(this);
IndustrialDualAnalogInChannel channel1 = factory.createIndustrialDualAnalogInChannel();
channel1.setChannelNum((short) 1);
channel1.setUid(getUid());
String subIdChannel1 = "channel1";
logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdChannel1);
channel1.setSubId(subIdChannel1);
channel1.init();
channel1.setMbrick(this);
}
use of org.openhab.binding.tinkerforge.internal.model.ModelFactory 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);
}
Aggregations