use of org.openhab.binding.tinkerforge.internal.types.HighLowValue in project openhab1-addons by openhab.
the class ColorLedImpl method setDigitalState.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setDigitalState(HighLowValue newDigitalState) {
HighLowValue oldDigitalState = digitalState;
digitalState = newDigitalState;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.COLOR_LED__DIGITAL_STATE, oldDigitalState, digitalState));
}
use of org.openhab.binding.tinkerforge.internal.types.HighLowValue in project openhab1-addons by openhab.
the class DigitalActorDigitalOut4Impl method fetchDigitalValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
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);
} catch (NotConnectedException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_NOT_CONNECTION_EXCEPTION, e);
}
}
use of org.openhab.binding.tinkerforge.internal.types.HighLowValue in project openhab1-addons by openhab.
the class DigitalActorIO16Impl method fetchDigitalValue.
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public void fetchDigitalValue() {
HighLowValue pinValue = HighLowValue.UNDEF;
try {
pinValue = extractValue(getMbrick().getTinkerforgeDevice().getPort(getPort()));
setDigitalState(pinValue);
} catch (TimeoutException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
} catch (NotConnectedException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_NOT_CONNECTION_EXCEPTION, e);
}
}
use of org.openhab.binding.tinkerforge.internal.types.HighLowValue in project openhab1-addons by openhab.
the class DigitalActorIO16Impl method setDigitalState.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setDigitalState(HighLowValue newDigitalState) {
HighLowValue oldDigitalState = digitalState;
digitalState = newDigitalState;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.DIGITAL_ACTOR_IO16__DIGITAL_STATE, oldDigitalState, digitalState));
}
use of org.openhab.binding.tinkerforge.internal.types.HighLowValue in project openhab1-addons by openhab.
the class LoadCellLedImpl method fetchDigitalValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated NOT
*/
@Override
public void fetchDigitalValue() {
try {
HighLowValue value = tinkerforgeDevice.isLEDOn() ? HighLowValue.HIGH : HighLowValue.LOW;
setDigitalState(value);
} catch (TimeoutException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_TIMEOUT_EXCEPTION, e);
} catch (NotConnectedException e) {
TinkerforgeErrorHandler.handleError(this, TinkerforgeErrorHandler.TF_NOT_CONNECTION_EXCEPTION, e);
}
}
Aggregations