本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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);
}