Package org.openhab.binding.tinkerforge.internal.types

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


   * <!-- end-user-doc -->
   * @generated
   */
  public void setDigitalState(HighLowValue newDigitalState)
  {
    HighLowValue oldDigitalState = digitalState;
    digitalState = newDigitalState;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.DIGITAL_ACTOR_IO4__DIGITAL_STATE, oldDigitalState, digitalState));
  }
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated NOT
   */
  public void fetchDigitalValue() {
    HighLowValue pinValue = HighLowValue.UNDEF;
    try {
      pinValue = extractValue(getMbrick().getTinkerforgeDevice().getValue());
      setDigitalState(pinValue);
    } catch (TimeoutException e) {
      TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
View Full Code Here

  /**
   *
   * @generated NOT
   */
  private HighLowValue extractValue(int valueMask) {
    HighLowValue value = HighLowValue.UNDEF;
    if ((valueMask & mask) == mask) {
      value = HighLowValue.HIGH;
    } else {
      value = HighLowValue.LOW;
    }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSensorValue(HighLowValue newSensorValue)
  {
    HighLowValue oldSensorValue = sensorValue;
    sensorValue = newSensorValue;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_HALL_EFFECT__SENSOR_VALUE, oldSensorValue, sensorValue));
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setSensorValue(HighLowValue newSensorValue)
  {
    HighLowValue oldSensorValue = sensorValue;
    sensorValue = newSensorValue;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.DIGITAL_SENSOR__SENSOR_VALUE, oldSensorValue, sensorValue));
  }
View Full Code Here

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated NOT
   */
  public void fetchSensorValue() {
    HighLowValue value = HighLowValue.UNDEF;
    try {
      value = extractValue(getMbrick().getTinkerforgeDevice().getPort(getPort()));
      setSensorValue(value);
    } catch (TimeoutException e) {
      TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
View Full Code Here

  /**
   *
   * @generated NOT
   */
  private HighLowValue extractValue(int valueMask) {
    HighLowValue value = HighLowValue.UNDEF;
    if ((valueMask & mask) == mask) {
      value = HighLowValue.HIGH;
    } else {
      value = HighLowValue.LOW;
    }
View Full Code Here

                OnOffType cmd = (OnOffType) command;
                OnOffValue state = cmd == OnOffType.OFF ? OnOffValue.OFF : OnOffValue.ON;
                ((MSwitchActor) mDevice).turnSwitch(state);
              } else if (mDevice instanceof DigitalActor) {
                OnOffType cmd = (OnOffType) command;
                HighLowValue state = cmd == OnOffType.OFF ? HighLowValue.LOW : HighLowValue.HIGH;
                ((DigitalActor) mDevice).turnDigital(state);
              } else {
                logger.error("{} received OnOff command for non-SwitchActor",
                    LoggerConstants.COMMAND);
              }
View Full Code Here

TOP

Related Classes of org.openhab.binding.tinkerforge.internal.types.HighLowValue

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.