本文整理汇总了Java中tuwien.auto.calimero.process.ProcessListener类的典型用法代码示例。如果您正苦于以下问题:Java ProcessListener类的具体用法?Java ProcessListener怎么用?Java ProcessListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProcessListener类属于tuwien.auto.calimero.process包,在下文中一共展示了ProcessListener类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: fireGroupReadWrite
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
private void fireGroupReadWrite(final CEMILData f, final byte[] asdu, final int svc,
final boolean optimized) {
final ProcessEvent e = new ProcessEvent(SlicKnxProcessCommunicatorImpl.this, f.getSource(),
(GroupAddress) f.getDestination(), svc, asdu, optimized);
final EventListener[] el = listeners.listeners();
for (EventListener l : el) {
try {
if (svc == GROUP_READ && l instanceof ProcessListenerEx) {
((ProcessListenerEx) l).groupReadRequest(e);
} else if (svc == GROUP_RESPONSE && l instanceof ProcessListenerEx) {
((ProcessListenerEx) l).groupReadResponse(e);
} else {
((ProcessListener) l).groupWrite(e);
}
} catch (final RuntimeException rte) {
removeProcessListener((ProcessListener) l);
logger.error("removed event listener", rte);
}
}
}
开发者ID:tuxedo0801,项目名称:slicKnx,代码行数:21,代码来源:SlicKnxProcessCommunicatorImpl.java
示例2: run
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
/**
* Runs the process communicator.
* <p>
* This method immediately returns when the process communicator is running. Call
* {@link #quit()} to quit process communication.
*
* @param l a process event listener, can be <code>null</code>
* @throws KNXException on problems creating network link or communication
*/
public void run(ProcessListener l) throws KNXException
{
// create the network link to the KNX network
final KNXNetworkLink lnk = createLink();
LogManager.getManager().addWriter(lnk.getName(), w);
// create process communicator with the established link
pc = new ProcessCommunicatorImpl(lnk);
if (l != null)
pc.addProcessListener(l);
registerShutdownHandler();
// user might specify a response timeout for KNX message
// answers from the KNX network
if (options.containsKey("timeout"))
pc.setResponseTimeout(((Integer) options.get("timeout")).intValue());
}
开发者ID:gskbyte,项目名称:kora,代码行数:25,代码来源:ProcComm.java
示例3: fireDetached
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
private void fireDetached() {
final DetachEvent e = new DetachEvent(this);
final EventListener[] el = listeners.listeners();
for (EventListener el1 : el) {
final ProcessListener l = (ProcessListener) el1;
try {
l.detached(e);
} catch (final RuntimeException rte) {
removeProcessListener(l);
logger.error("removed event listener", rte);
}
}
}
开发者ID:tuxedo0801,项目名称:slicKnx,代码行数:14,代码来源:SlicKnxProcessCommunicatorImpl.java
示例4: setProcessListener
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
public void setProcessListener(ProcessListener listener) {
if (sPC != null) {
sPC.removeProcessListener(KNXConnection.sProcessCommunicationListener);
sLogger.debug("Adding Process Listener: {}", listener);
sPC.addProcessListener(listener);
}
KNXConnection.sProcessCommunicationListener = listener;
}
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:9,代码来源:KNXConnection.java
示例5: setProcessListener
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
public void setProcessListener(ProcessListener listener) {
if (sPC != null) {
sPC.removeProcessListener(KNXConnection.sProcessCommunicationListener);
sLogger.debug("Adding Process Listener: {}", listener);
sPC.addProcessListener(listener);
}
KNXConnection.sProcessCommunicationListener = listener;
}
开发者ID:openhab,项目名称:openhab1-addons,代码行数:9,代码来源:KNXConnection.java
示例6: addProcessListener
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
@Override
public void addProcessListener(final ProcessListener l) {
listeners.add(l);
}
开发者ID:tuxedo0801,项目名称:slicKnx,代码行数:5,代码来源:SlicKnxProcessCommunicatorImpl.java
示例7: removeProcessListener
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
@Override
public void removeProcessListener(final ProcessListener l) {
listeners.remove(l);
}
开发者ID:tuxedo0801,项目名称:slicKnx,代码行数:5,代码来源:SlicKnxProcessCommunicatorImpl.java
示例8: getProcessListener
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
public ProcessListener getProcessListener() {
return processListener;
}
开发者ID:jpinho,项目名称:soaba,代码行数:4,代码来源:KNXGatewayDriver.java
示例9: unsetProcessListener
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
public void unsetProcessListener(ProcessListener listener) {
if (sPC != null) {
sPC.removeProcessListener(KNXConnection.sProcessCommunicationListener);
}
KNXConnection.sProcessCommunicationListener = null;
}
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:7,代码来源:KNXConnection.java
示例10: unsetProcessListener
import tuwien.auto.calimero.process.ProcessListener; //导入依赖的package包/类
public void unsetProcessListener(ProcessListener listener) {
if (sPC != null) {
sPC.removeProcessListener(KNXConnection.sProcessCommunicationListener);
}
KNXConnection.sProcessCommunicationListener = null;
}
开发者ID:openhab,项目名称:openhab1-addons,代码行数:7,代码来源:KNXConnection.java
注:本文中的tuwien.auto.calimero.process.ProcessListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论