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


Java SelectFunctionType类代码示例

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


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

示例1: createEmlWrapper

import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
/**
 * Generates an EML document holding one
 * simple pattern with the given FilterType.
 * 
 * @param fesFilter an OGC filter encoding 2.0 filter
 * 
 * @return an EML document with a simple pattern using the filter as guard
 */
private static EMLDocument createEmlWrapper(FilterType fesFilter) {
	EMLDocument doc = EMLDocument.Factory.newInstance();
	EML eml = doc.addNewEML();
	
	eml.addNewComplexPatterns();
	eml.addNewRepetitivePatterns();
	eml.addNewTimerPatterns();
	
	SimplePatterns simple = eml.addNewSimplePatterns();
	
	SimplePatternType pattern = simple.addNewSimplePattern();
	
	pattern.setPatternID("defaultSimplePattern");
	pattern.setInputName("input");
	
	SelectFunctions funcs = pattern.addNewSelectFunctions();
	SelectFunctionType func = funcs.addNewSelectFunction();
	
	func.setNewEventName("");
	func.setOutputName("output");
	SelectEvent selEv = func.addNewSelectEvent();
	selEv.setEventName("sensorStream");
	
	ViewType view = pattern.addNewView();
	LengthView length = view.addNewLengthView();
	length.setEventCount(new BigInteger("1"));
	
	GuardType guard = pattern.addNewGuard();
	guard.setFilter(fesFilter);
	
	pattern.addNewPropertyRestrictions();
	
	return doc;
}
 
开发者ID:52North,项目名称:epos,代码行数:43,代码来源:FES20FilterInstantiation.java

示例2: generateStaticDocument

import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
public static EML001Impl generateStaticDocument(FilterType ogcFilter) {
	EMLDocument emlDoc = EMLDocument.Factory.newInstance();
	
	EML eml2 = emlDoc.addNewEML();
	eml2.addNewComplexPatterns();
	eml2.addNewRepetitivePatterns();
	eml2.addNewTimerPatterns();
	
	SimplePatterns simple = eml2.addNewSimplePatterns();
	
	SimplePatternType pattern = simple.addNewSimplePattern();
	
	pattern.setPatternID("defaultSimplePattern");
	pattern.setInputName("sensorStream");
	
	SelectFunctions funcs = pattern.addNewSelectFunctions();
	SelectFunctionType func = funcs.addNewSelectFunction();
	
	func.setNewEventName("");
	func.setOutputName("output");
	SelectEvent selEv = func.addNewSelectEvent();
	selEv.setEventName("sensorStream");
	
	ViewType view = pattern.addNewView();
	LengthView length = view.addNewLengthView();
	length.setEventCount(new BigInteger("1"));
	
	GuardType guard = pattern.addNewGuard();
	guard.setFilter(ogcFilter);
	
	pattern.addNewPropertyRestrictions();
	
	return new EML001Impl(emlDoc);
}
 
开发者ID:52North,项目名称:SES,代码行数:35,代码来源:EML001Impl.java

示例3: processComplexPattern

import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
protected void processComplexPattern(ComplexPattern pattern, String patternName, String eventName) {
    SelectFunctionType selectFunction = getSelectFunction(pattern);
    setSelectFunctionName(selectFunction, eventName);
    setPatternId(pattern, patternName);
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:6,代码来源:BasicRuleBuilder.java

示例4: getSelectFunction

import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
private SelectFunctionType getSelectFunction(AbstractPatternType pattern) {
    return pattern.getSelectFunctions().getSelectFunctionArray(0);
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:4,代码来源:BasicRuleBuilder.java

示例5: setSelectFunctionName

import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
private void setSelectFunctionName(SelectFunctionType selectFunction, String eventName) {
    selectFunction.setNewEventName(eventName);
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:4,代码来源:BasicRuleBuilder.java

示例6: setOutputName

import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
private void setOutputName(SelectFunctionType selectFunction, String output) {
    selectFunction.setOutputName(output);
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:4,代码来源:BasicRuleBuilder.java


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