Package net.simplace.pipe.processors
Klasse MathCalculatorProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.MathCalculatorProcessor
This processor is there for easy math calulations within maps, numbers, lists aso.
If a Map is evaluated, this has to be #0 in the parameter list and is taken as base
of output. Same for Lists.
Required input parameters:
Required input parameters:
- Key
#0,#1, ...: References-key to @link Map, List, Integer, Double, Long}-object. Several of these parameters are allowed. - Key
rule: arithmetical rule on raster data with wildcards '#0', '#1' ... for the raster objects in the list. SeeOperationTreeParserfor details about the syntax and allowed operators. - Key
resultParamKey: Output parameter key where the result data is stored in
- Autor:
- Andreas Enders
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringConstant for in channel parameter key "resultParamKey".static final StringConstant for in-channel parameter key "rule".static final StringConstant for input type "Double".static final StringConstant for input type "Integer".static final StringConstant for in-channel parameter key "type".static final StringConstant for input type "List".static final StringConstant for input type "Long".static final StringConstant for input type "Map".Von Klasse geerbte Felder net.simplace.pipe.control.FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanChecks whether the in-channel contains all required parameters.protected booleanprocess()Calculated the arithmetical rule specified by the in-channel parameters.Von Klasse geerbte Methoden net.simplace.pipe.control.FWProcessor
checkOutParameterMap, clone, containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getNewProgressTask, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Felddetails
-
TYPE_KEY
Constant for in-channel parameter key "type".- Siehe auch:
-
TYPE_MAP
Constant for input type "Map".- Siehe auch:
-
TYPE_LIST
Constant for input type "List".- Siehe auch:
-
TYPE_INTEGER
Constant for input type "Integer".- Siehe auch:
-
TYPE_LONG
Constant for input type "Long".- Siehe auch:
-
TYPE_DOUBLE
Constant for input type "Double".- Siehe auch:
-
RULE_KEY
Constant for in-channel parameter key "rule".- Siehe auch:
-
RESULTKEY_KEY
Constant for in channel parameter key "resultParamKey".- Siehe auch:
-
-
Konstruktordetails
-
MathCalculatorProcessor
public MathCalculatorProcessor()Default constructor for this processor.
-
-
Methodendetails
-
checkInParameterMap
public boolean checkInParameterMap()Checks whether the in-channel contains all required parameters.- Setzt außer Kraft:
checkInParameterMapin KlasseFWProcessor- Gibt zurück:
- true if not overridden by implementations
-
process
Calculated the arithmetical rule specified by the in-channel parameters. First all in-channel parameters are checked.- Angegeben von:
processin KlasseFWProcessor- Gibt zurück:
- ever
true - Löst aus:
PipeLineException- in case of errors- Siehe auch:
-