Search in sources :

Example 16 with ModelFactory

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);
}
Also used : ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory) IndustrialDualAnalogInChannel(org.openhab.binding.tinkerforge.internal.model.IndustrialDualAnalogInChannel)

Example 17 with ModelFactory

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);
}
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)17 BrickletRemoteSwitch (com.tinkerforge.BrickletRemoteSwitch)1 ArrayList (java.util.ArrayList)1 AccelerometerDirection (org.openhab.binding.tinkerforge.internal.model.AccelerometerDirection)1 AccelerometerLed (org.openhab.binding.tinkerforge.internal.model.AccelerometerLed)1 AccelerometerTemperature (org.openhab.binding.tinkerforge.internal.model.AccelerometerTemperature)1 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 DigitalActorDigitalOut4 (org.openhab.binding.tinkerforge.internal.model.DigitalActorDigitalOut4)1 DigitalActorIO16 (org.openhab.binding.tinkerforge.internal.model.DigitalActorIO16)1 DigitalActorIO4 (org.openhab.binding.tinkerforge.internal.model.DigitalActorIO4)1 DigitalSensor (org.openhab.binding.tinkerforge.internal.model.DigitalSensor)1 DigitalSensorIO4 (org.openhab.binding.tinkerforge.internal.model.DigitalSensorIO4)1 Electrode (org.openhab.binding.tinkerforge.internal.model.Electrode)1 IndustrialDualAnalogInChannel (org.openhab.binding.tinkerforge.internal.model.IndustrialDualAnalogInChannel)1 LaserRangeFinderDistance (org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderDistance)1 LaserRangeFinderLaser (org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderLaser)1 LaserRangeFinderVelocity (org.openhab.binding.tinkerforge.internal.model.LaserRangeFinderVelocity)1