• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java IPConnection类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.tinkerforge.IPConnection的典型用法代码示例。如果您正苦于以下问题:Java IPConnection类的具体用法?Java IPConnection怎么用?Java IPConnection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

IPConnection类属于com.tinkerforge包,在下文中一共展示了IPConnection类的40个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: enumerate

点赞 3

import com.tinkerforge.IPConnection; //导入依赖的package包/类
@Override
public void enumerate(String uid, String connectedUid, char position,
		short[] hardwareVersion, short[] firmwareVersion,
		int deviceIdentifier, short enumerationType) {
	logger.debug("{} EnumerateListener was called, type {}",
			LoggerConstants.TFINIT, enumerationType);
	modelLock.lock();
	try {
		if (enumerationType == IPConnection.ENUMERATION_TYPE_DISCONNECTED)
			removeDevice(uid);
		else
			addDevice(uid, connectedUid, deviceIdentifier);
	} finally {
		modelLock.unlock();
	}
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:17,
代码来源:MBrickdImpl.java

示例2: activate

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
@Activate
public void activate() throws TimeoutException, NotConnectedException {
    this.df = DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.ENGLISH);
    this.buffer = new ChatBuffer((message) -> printMessage(message));

    IPConnection ipcon = tinkerConnect.getConnection();
    lcd = new BrickletLCD20x4("rV1", ipcon);
    lcd.backlightOn();
    lcd.clearDisplay();
    lcd.addButtonPressedListener((button) -> buttonPressed(button));
}
 

开发者ID:cschneider,
项目名称:osgi-chat,
代码行数:12,
代码来源:LCDWriter.java

示例3: activate

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
@Activate
public void activate() throws Exception {
    IPConnection ipcon = tinkerConnect.getConnection();
    motion = new BrickletMotionDetector("sHt", ipcon);
    listener = () -> sendMessage();
    motion.addMotionDetectedListener(listener);
}
 

开发者ID:cschneider,
项目名称:osgi-chat,
代码行数:8,
代码来源:MotionDetector.java

示例4: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MOTION_DETECTOR__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletMotionDetectorImpl.java

示例5: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_SOUND_INTENSITY__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletSoundIntensityImpl.java

示例6: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_REMOTE_SWITCH__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletRemoteSwitchImpl.java

示例7: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_DUAL_BUTTON__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletDualButtonImpl.java

示例8: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletDistanceIRImpl.java

示例9: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_HALL_EFFECT__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletHallEffectImpl.java

示例10: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
  * <!-- begin-user-doc --> <!-- end-user-doc -->
  * @generated
  */
public void setIpConnection(IPConnection newIpConnection) {
   IPConnection oldIpConnection = ipConnection;
   ipConnection = newIpConnection;
   if (eNotificationRequired())
     eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_LCD2_0X4__IP_CONNECTION, oldIpConnection, ipConnection));
 }
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:11,
代码来源:MBrickletLCD20x4Impl.java

示例11: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICK_SERVO__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickServoImpl.java

示例12: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_VOLTAGE_CURRENT__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletVoltageCurrentImpl.java

示例13: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MDUAL_RELAY_BRICKLET__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MDualRelayBrickletImpl.java

示例14: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICK_DC__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickDCImpl.java

示例15: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MOISTURE__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletMoistureImpl.java

示例16: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_LINEAR_POTI__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletLinearPotiImpl.java

示例17: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_JOYSTICK__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletJoystickImpl.java

示例18: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_PTC__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletPTCImpl.java

示例19: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_AMBIENT_LIGHT__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletAmbientLightImpl.java

示例20: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_LED_STRIP__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletLEDStripImpl.java

示例21: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MULTI_TOUCH__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletMultiTouchImpl.java

示例22: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_TEMPERATURE_IR__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletTemperatureIRImpl.java

示例23: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_SOLID_STATE_RELAY__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletSolidStateRelayImpl.java

示例24: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_IO4__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletIO4Impl.java

示例25: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_TEMPERATURE__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletTemperatureImpl.java

示例26: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_INDUSTRIAL_DUAL020M_A__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletIndustrialDual020mAImpl.java

示例27: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_HUMIDITY__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletHumidityImpl.java

示例28: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKD__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickdImpl.java

示例29: connect

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated NOT
 */
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);
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:20,
代码来源:MBrickdImpl.java

示例30: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MINDUSTRIAL_QUAD_RELAY_BRICKLET__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MIndustrialQuadRelayBrickletImpl.java

示例31: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_INDUSTRIAL_DIGITAL_IN4__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletIndustrialDigitalIn4Impl.java

示例32: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_INDUSTRIAL_DIGITAL_OUT4__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletIndustrialDigitalOut4Impl.java

示例33: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_BAROMETER__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletBarometerImpl.java

示例34: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_SEGMENT_DISPLAY4X7__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletSegmentDisplay4x7Impl.java

示例35: setIpConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setIpConnection(IPConnection newIpConnection)
{
  IPConnection oldIpConnection = ipConnection;
  ipConnection = newIpConnection;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_TILT__IP_CONNECTION, oldIpConnection, ipConnection));
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:13,
代码来源:MBrickletTiltImpl.java

示例36: activate

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
@Activate
public void activate(TfConfig config) throws Exception {
    LOG.info("Starting Connection {}:{}", config.host(), config.port());
    ipcon = new IPConnection();
    ipcon.connect(config.host(), config.port());
}
 

开发者ID:cschneider,
项目名称:osgi-chat,
代码行数:7,
代码来源:TinkerConnect.java

示例37: getConnection

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
IPConnection getConnection() {
    return ipcon;
}
 

开发者ID:cschneider,
项目名称:osgi-chat,
代码行数:4,
代码来源:TinkerConnect.java

示例38: eSet

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__LOGGER:
      setLogger((Logger)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__UID:
      setUid((String)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__POLL:
      setPoll((Boolean)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__ENABLED_A:
      setEnabledA((AtomicBoolean)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__TINKERFORGE_DEVICE:
      setTinkerforgeDevice((BrickletMotionDetector)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__IP_CONNECTION:
      setIpConnection((IPConnection)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__CONNECTED_UID:
      setConnectedUid((String)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__POSITION:
      setPosition((Character)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__DEVICE_IDENTIFIER:
      setDeviceIdentifier((Integer)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__NAME:
      setName((String)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__BRICKD:
      setBrickd((MBrickd)newValue);
      return;
    case ModelPackage.MBRICKLET_MOTION_DETECTOR__SENSOR_VALUE:
      setSensorValue((HighLowValue)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:50,
代码来源:MBrickletMotionDetectorImpl.java

示例39: eSet

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__LOGGER:
      setLogger((Logger)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__UID:
      setUid((String)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__POLL:
      setPoll((Boolean)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__ENABLED_A:
      setEnabledA((AtomicBoolean)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__TINKERFORGE_DEVICE:
      setTinkerforgeDevice((BrickletSoundIntensity)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__IP_CONNECTION:
      setIpConnection((IPConnection)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__CONNECTED_UID:
      setConnectedUid((String)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__POSITION:
      setPosition((Character)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__DEVICE_IDENTIFIER:
      setDeviceIdentifier((Integer)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__NAME:
      setName((String)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__BRICKD:
      setBrickd((MBrickd)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__SENSOR_VALUE:
      setSensorValue((DecimalValue)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__TF_CONFIG:
      setTfConfig((TFBaseConfiguration)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__CALLBACK_PERIOD:
      setCallbackPeriod((Long)newValue);
      return;
    case ModelPackage.MBRICKLET_SOUND_INTENSITY__THRESHOLD:
      setThreshold((BigDecimal)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:59,
代码来源:MBrickletSoundIntensityImpl.java

示例40: eSet

点赞 2

import com.tinkerforge.IPConnection; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue)
{
  switch (featureID)
  {
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__LOGGER:
      setLogger((Logger)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__UID:
      setUid((String)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__POLL:
      setPoll((Boolean)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__ENABLED_A:
      setEnabledA((AtomicBoolean)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__TINKERFORGE_DEVICE:
      setTinkerforgeDevice((BrickletRemoteSwitch)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__IP_CONNECTION:
      setIpConnection((IPConnection)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__CONNECTED_UID:
      setConnectedUid((String)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__POSITION:
      setPosition((Character)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__DEVICE_IDENTIFIER:
      setDeviceIdentifier((Integer)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__NAME:
      setName((String)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__BRICKD:
      setBrickd((MBrickd)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__MSUBDEVICES:
      getMsubdevices().clear();
      getMsubdevices().addAll((Collection<? extends RemoteSwitch>)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__TF_CONFIG:
      setTfConfig((BrickletRemoteSwitchConfiguration)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__TYPE_ADEVICES:
      setTypeADevices((String)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__TYPE_BDEVICES:
      setTypeBDevices((String)newValue);
      return;
    case ModelPackage.MBRICKLET_REMOTE_SWITCH__TYPE_CDEVICES:
      setTypeCDevices((String)newValue);
      return;
  }
  super.eSet(featureID, newValue);
}
 

开发者ID:andrey-desman,
项目名称:openhab-hdl,
代码行数:64,
代码来源:MBrickletRemoteSwitchImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)