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


Java GuardType类代码示例

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


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

示例1: createEmlWrapper

import net.opengis.eml.x001.GuardType; //导入依赖的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: parseGuard

import net.opengis.eml.x001.GuardType; //导入依赖的package包/类
/**
 * parses a guard
 * 
 * @param guard
 * @return an internal representation for the guard
 */
private PatternGuard parseGuard(GuardType guard, HashSet<Object > propertyNames) {
	PatternGuard result = new PatternGuard();
	result.setFilter(guard.getFilter(), propertyNames);
	
	return result;
}
 
开发者ID:52North,项目名称:epos,代码行数:13,代码来源:EMLParser.java

示例3: generateStaticDocument

import net.opengis.eml.x001.GuardType; //导入依赖的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

示例4: processFilterGuard

import net.opengis.eml.x001.GuardType; //导入依赖的package包/类
private void processFilterGuard(GuardType guardType, RuleFilter ruleFilter, String stream) {
    FilterType filter = guardType.getFilter();
    processComparisonFilter(filter, ruleFilter, stream);
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:5,代码来源:BasicRule_4_Builder.java


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