本文整理汇总了Java中com.ociweb.iot.maker.AnalogListener类的典型用法代码示例。如果您正苦于以下问题:Java AnalogListener类的具体用法?Java AnalogListener怎么用?Java AnalogListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AnalogListener类属于com.ociweb.iot.maker包,在下文中一共展示了AnalogListener类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ReactiveIoTListenerStage
import com.ociweb.iot.maker.AnalogListener; //导入依赖的package包/类
public ReactiveIoTListenerStage(GraphManager graphManager, Behavior listener,
Pipe<?>[] inputPipes,
Pipe<?>[] outputPipes,
ArrayList<ReactiveManagerPipeConsumer> consumers,
HardwareImpl hardware, int parallelInstance, String nameId) {
super(graphManager, listener, inputPipes, outputPipes, consumers, hardware, parallelInstance, nameId);
if (listener instanceof DigitalListener) {
toStringDetails = toStringDetails + "DigitalListener\n";
}
if (listener instanceof AnalogListener) {
toStringDetails = toStringDetails + "AnalogListener\n";
}
if (listener instanceof I2CListener) {
toStringDetails = toStringDetails + "I2CListener\n";
}
if (listener instanceof SerialListener) {
toStringDetails = toStringDetails + "SerialListener\n";
}
if (listener instanceof RotaryListener) {
toStringDetails = toStringDetails + "RotaryListener\n";
}
this.builder = hardware;
//allow for shutdown upon shutdownRequest we have new content
GraphManager.addNota(graphManager, GraphManager.PRODUCER, GraphManager.PRODUCER, this);
}
示例2: includePorts
import com.ociweb.iot.maker.AnalogListener; //导入依赖的package包/类
@Override
public ListenerFilterIoT includePorts(Port ... ports) {
if (!startupCompleted && (listener instanceof AnalogListener || listener instanceof DigitalListener)) {
includedPorts = ports;
return this;
} else {
if (startupCompleted) {
throw new UnsupportedOperationException("ListenerFilters may only be set before startup is called. Eg. the filters can not be changed at runtime.");
} else {
throw new UnsupportedOperationException("The Listener must be an instance of AnalogLister or DigitalListener in order to call this method.");
}
}
}
示例3: excludePorts
import com.ociweb.iot.maker.AnalogListener; //导入依赖的package包/类
@Override
public ListenerFilterIoT excludePorts(Port ... ports) {
if (!startupCompleted && (listener instanceof AnalogListener || listener instanceof DigitalListener)) {
excludedPorts = ports;
return this;
} else {
if (startupCompleted) {
throw new UnsupportedOperationException("ListenerFilters may only be set before startup is called. Eg. the filters can not be changed at runtime.");
} else {
throw new UnsupportedOperationException("The Listener must be an instance of AnalogLister or DigitalListener in order to call this method.");
}
}
}