Search in sources :

Example 16 with IPConnection

use of com.tinkerforge.IPConnection in project openhab1-addons by openhab.

the class MBrickletDistanceIRImpl method setIpConnection.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setIpConnection(IPConnection newIpConnection) {
    IPConnection oldIpConnection = ipConnection;
    ipConnection = newIpConnection;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_DISTANCE_IR__IP_CONNECTION, oldIpConnection, ipConnection));
}
Also used : IPConnection(com.tinkerforge.IPConnection) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 17 with IPConnection

use of com.tinkerforge.IPConnection in project openhab1-addons by openhab.

the class MBrickletDistanceUSImpl method setIpConnection.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setIpConnection(IPConnection newIpConnection) {
    IPConnection oldIpConnection = ipConnection;
    ipConnection = newIpConnection;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_DISTANCE_US__IP_CONNECTION, oldIpConnection, ipConnection));
}
Also used : IPConnection(com.tinkerforge.IPConnection) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 18 with IPConnection

use of com.tinkerforge.IPConnection in project openhab1-addons by openhab.

the class MBrickletDustDetectorImpl method setIpConnection.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setIpConnection(IPConnection newIpConnection) {
    IPConnection oldIpConnection = ipConnection;
    ipConnection = newIpConnection;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_DUST_DETECTOR__IP_CONNECTION, oldIpConnection, ipConnection));
}
Also used : IPConnection(com.tinkerforge.IPConnection) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 19 with IPConnection

use of com.tinkerforge.IPConnection in project openhab1-addons by openhab.

the class MBrickStepperImpl method setIpConnection.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
@Override
public void setIpConnection(IPConnection newIpConnection) {
    IPConnection oldIpConnection = ipConnection;
    ipConnection = newIpConnection;
    if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICK_STEPPER__IP_CONNECTION, oldIpConnection, ipConnection));
    }
}
Also used : IPConnection(com.tinkerforge.IPConnection) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 20 with IPConnection

use of com.tinkerforge.IPConnection in project openhab1-addons by openhab.

the class MBrickdImpl method connect.

/**
     * <!-- begin-user-doc --> <!-- end-user-doc -->
     *
     * @generated NOT
     */
@Override
public void connect() {
    // Create connection to brickd
    final IPConnection ipcon = new IPConnection();
    setIpConnection(ipcon);
    ipConnection.setTimeout(timeout);
    ipConnection.setAutoReconnect(autoReconnect);
    ipConnection.addConnectedListener(new ConnectedListener(ipcon));
    ipConnection.addDisconnectedListener(new DisconnectedListener());
    ipConnection.addEnumerateListener(new EnumerateListener());
    // makeConnect();
    makeConnectThread();
    logger.trace("{} After connect call", LoggerConstants.TFINIT);
}
Also used : IPConnection(com.tinkerforge.IPConnection)

Aggregations

IPConnection (com.tinkerforge.IPConnection)52 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)51