本文整理汇总了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;
}
示例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);
}
示例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);
}
示例4: getSelectFunction
import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
private SelectFunctionType getSelectFunction(AbstractPatternType pattern) {
return pattern.getSelectFunctions().getSelectFunctionArray(0);
}
示例5: setSelectFunctionName
import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
private void setSelectFunctionName(SelectFunctionType selectFunction, String eventName) {
selectFunction.setNewEventName(eventName);
}
示例6: setOutputName
import net.opengis.eml.x001.SelectFunctionType; //导入依赖的package包/类
private void setOutputName(SelectFunctionType selectFunction, String output) {
selectFunction.setOutputName(output);
}