当前位置: 首页>>代码示例>>Java>>正文


Java AnalogListener类代码示例

本文整理汇总了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);
            
}
 
开发者ID:oci-pronghorn,项目名称:FogLight,代码行数:32,代码来源:ReactiveIoTListenerStage.java

示例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.");
    	}
	}
}
 
开发者ID:oci-pronghorn,项目名称:FogLight,代码行数:14,代码来源:ReactiveIoTListenerStage.java

示例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.");
    	}
	}
}
 
开发者ID:oci-pronghorn,项目名称:FogLight,代码行数:14,代码来源:ReactiveIoTListenerStage.java


注:本文中的com.ociweb.iot.maker.AnalogListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。