use of org.openhab.binding.tinkerforge.internal.model.AccelerometerTemperature 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);
}
Aggregations