Class MathCalculatorProcessor

java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.MathCalculatorProcessor

public class MathCalculatorProcessor extends FWProcessor
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:
  • 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. See OperationTreeParser for details about the syntax and allowed operators.
  • Key resultParamKey: Output parameter key where the result data is stored in
Author:
Andreas Enders
  • Field Details

  • Constructor Details

    • MathCalculatorProcessor

      public MathCalculatorProcessor()
      Default constructor for this processor.
  • Method Details

    • checkInParameterMap

      public boolean checkInParameterMap()
      Checks whether the in-channel contains all required parameters.
      Overrides:
      checkInParameterMap in class FWProcessor
      Returns:
      true if not overridden by implementations
    • process

      protected boolean process() throws PipeLineException
      Calculated the arithmetical rule specified by the in-channel parameters. First all in-channel parameters are checked.
      Specified by:
      process in class FWProcessor
      Returns:
      ever true
      Throws:
      PipeLineException - in case of errors
      See Also: