Package org.openhab.binding.tinkerforge.internal.model

Examples of org.openhab.binding.tinkerforge.internal.model.ModelFactory


   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices()
  {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 4; i++) {
      DigitalActorDigitalOut4 out4 = factory.createDigitalActorDigitalOut4();
      out4.setUid(getUid());
      String subId = "out" + String.valueOf(i);
      logger.debug("addSubDevice: {}", subId);
      out4.setSubId(subId);
      out4.setPin(i);
View Full Code Here


   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices()
  {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 7; i++) {
      MServo mServo = factory.createMServo();
      mServo.setUid(uid);
      String subId = "servo" + String.valueOf(i);
      logger.debug("addSubDevice " + subId);
      mServo.setSubId(subId);
      mServo.init();
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices()
  {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 4; i++) {
      MIndustrialQuadRelay relay = factory.createMIndustrialQuadRelay();
      relay.setUid(uid);
      String subId = "relay" + String.valueOf(i);
      logger.debug("addSubDevice " + subId);
      relay.setSubId(subId);
      relay.init();
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices()
  {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 4; i++) {
      MLCD20x4Button mButton = factory.createMLCD20x4Button();
      mButton.setUid(uid);
      String subId = "button" + String.valueOf(i);
      logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subId);
      mButton.setSubId(subId);
      mButton.init();
      mButton.setMbrick(this);
    }
    MLCD20x4Backlight backlight = factory.createMLCD20x4Backlight();
    backlight.setUid(uid);
    String subId = "backlight";
    logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subId);
    backlight.setSubId(subId);
    backlight.init();
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices()
  {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 4; i++) {
      MIndustrialDigitalIn digitalIn = factory.createMIndustrialDigitalIn();
      digitalIn.setUid(getUid());
      String subId = "in" + String.valueOf(i);
      logger.debug("addSubDevice: {}", subId);
      digitalIn.setSubId(subId);
      digitalIn.init();
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 4; i++) {
      DigitalSensorIO4 sensor = factory.createDigitalSensorIO4();
      sensor.setUid(getUid());
      String genericDeviceId = String.valueOf(i);
      String subId = "in" + genericDeviceId;
      sensor.setSubId(subId);
      sensor.setPin(i);
      sensor.setGenericDeviceId(genericDeviceId);
      sensor.init();
      sensor.setMbrick(this);
      logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subId);
    }
    for (int i = 0; i < 4; i++) {
      DigitalActorIO4 actor = factory.createDigitalActorIO4();
      actor.setUid(getUid());
      String genericDeviceId = String.valueOf(i);
      String subId = "out" + genericDeviceId;
      actor.setSubId(subId);
      actor.setPin(i);
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices() {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 0; i < 12; i++) {
      Electrode electrode = factory.createElectrode();
      electrode.setUid(getUid());
      String subId = "electrode" + i;
      electrode.setSubId(subId);
      electrode.setPin(i);
      electrode.init();
      electrode.setMbrick(this);
      logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, subId);
    }
    Proximity proximity = factory.createProximity();
    proximity.setUid(getUid());
    String subId = "proximity";
    proximity.setSubId(subId);
    proximity.setPin(12);
    proximity.init();
View Full Code Here

   */
  public static ModelFactory init()
  {
    try
    {
      ModelFactory theModelFactory = (ModelFactory)EPackage.Registry.INSTANCE.getEFactory("org.openhab.binding.tinkerforge.internal.model");
      if (theModelFactory != null)
      {
        return theModelFactory;
      }
    }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  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);
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void initSubDevices()
  {
    ModelFactory factory = ModelFactory.eINSTANCE;
    for (int i = 1; i < 3; i++) {
      MDualRelay mrelay = factory.createMDualRelay();
      mrelay.setUid(uid);
      String subId = "relay" + String.valueOf(i);
      logger.debug("addSubDevice: {}", subId);
      mrelay.setSubId(subId);
      mrelay.init();
View Full Code Here

TOP

Related Classes of org.openhab.binding.tinkerforge.internal.model.ModelFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.