Examples of OnOffValue


Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSwitchState(OnOffValue newSwitchState)
  {
    OnOffValue oldSwitchState = switchState;
    switchState = newSwitchState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.REMOTE_SWITCH_B__SWITCH_STATE, oldSwitchState, switchState));
  }
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSwitchState(OnOffValue newSwitchState)
  {
    OnOffValue oldSwitchState = switchState;
    switchState = newSwitchState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MINDUSTRIAL_QUAD_RELAY__SWITCH_STATE, oldSwitchState, switchState));
  }
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated NOT
   */
  public void fetchSwitchState() {
    OnOffValue value = OnOffValue.UNDEF;
    try {
      int deviceValue = getMbrick().getTinkerforgeDevice().getValue();
      if ((deviceValue & mask) == mask) {
        value = OnOffValue.ON;
      } else {
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSwitchState(OnOffValue newSwitchState)
  {
    OnOffValue oldSwitchState = switchState;
    switchState = newSwitchState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MLCD2_0X4_BUTTON__SWITCH_STATE, oldSwitchState, switchState));
  }
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSwitchState(OnOffValue newSwitchState)
  {
    OnOffValue oldSwitchState = switchState;
    switchState = newSwitchState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.REMOTE_SWITCH_C__SWITCH_STATE, oldSwitchState, switchState));
  }
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSwitchState(OnOffValue newSwitchState)
  {
    OnOffValue oldSwitchState = switchState;
    switchState = newSwitchState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MLCD2_0X4_BACKLIGHT__SWITCH_STATE, oldSwitchState, switchState));
  }
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated NOT
   */
  public void fetchSwitchState() {
    OnOffValue switchValue = OnOffValue.UNDEF;
    try {
      switchValue = brickletLCD20x4.isBacklightOn() ? OnOffValue.ON : OnOffValue.OFF;
      setSwitchState(switchValue);
    } catch (TimeoutException e) {
      TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSwitchState(OnOffValue newSwitchState)
  {
    OnOffValue oldSwitchState = switchState;
    switchState = newSwitchState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MSERVO__SWITCH_STATE, oldSwitchState, switchState));
  }
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated NOT
   */
  public void fetchSwitchState() {
    OnOffValue value = OnOffValue.UNDEF;
    try {
      short position = getMbrick().getTinkerforgeDevice().getPosition(servoNum);
      if (position == OFF_POSITION) {
        value = OnOffValue.OFF;
      } else if (position == ON_POSITION) {
View Full Code Here

Examples of org.openhab.binding.tinkerforge.internal.types.OnOffValue

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSwitchState(OnOffValue newSwitchState)
  {
    OnOffValue oldSwitchState = switchState;
    switchState = newSwitchState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.REMOTE_SWITCH_A__SWITCH_STATE, oldSwitchState, switchState));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.