Search in sources :

Example 1 with AccelerometerDirection

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

the class MBrickletAccelerometerImpl method initSubDevices.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated NOT
     */
@Override
public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    AccelerometerDirection x = factory.createAccelerometerDirection();
    x.setDirection(AccelerometerCoordinate.X);
    x.setUid(getUid());
    String subIdX = "x";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdX);
    x.setSubId(subIdX);
    x.init();
    x.setMbrick(this);
    AccelerometerDirection y = factory.createAccelerometerDirection();
    y.setDirection(AccelerometerCoordinate.Y);
    y.setUid(getUid());
    String subIdY = "y";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdY);
    y.setSubId(subIdY);
    y.init();
    y.setMbrick(this);
    AccelerometerDirection z = factory.createAccelerometerDirection();
    z.setDirection(AccelerometerCoordinate.Z);
    z.setUid(getUid());
    String subIdZ = "z";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdZ);
    z.setSubId(subIdZ);
    z.init();
    z.setMbrick(this);
    AccelerometerTemperature temperature = factory.createAccelerometerTemperature();
    temperature.setUid(getUid());
    String subIdTemperature = "temperature";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdTemperature);
    temperature.setSubId(subIdTemperature);
    temperature.init();
    temperature.setMbrick(this);
    AccelerometerLed led = factory.createAccelerometerLed();
    led.setUid(getUid());
    String subIdLed = "led";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subIdLed);
    led.setSubId(subIdLed);
    led.init();
    led.setMbrick(this);
}
Also used : AccelerometerDirection(org.openhab.binding.tinkerforge.internal.model.AccelerometerDirection) AccelerometerTemperature(org.openhab.binding.tinkerforge.internal.model.AccelerometerTemperature) ModelFactory(org.openhab.binding.tinkerforge.internal.model.ModelFactory) AccelerometerLed(org.openhab.binding.tinkerforge.internal.model.AccelerometerLed)

Aggregations

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 ModelFactory (org.openhab.binding.tinkerforge.internal.model.ModelFactory)1