Class AbstractMultiMapOperation<O>

    • Constructor Detail

      • AbstractMultiMapOperation

        public AbstractMultiMapOperation()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • minNumMapsRequired

        public abstract int minNumMapsRequired()
        Returns the minimum number of maps that are required for the operation.
        Returns:
        the number of maps that are required, <= 0 means no lower limit
      • maxNumMapsRequired

        public abstract int maxNumMapsRequired()
        Returns the maximum number of maps that are required for the operation.
        Returns:
        the number of maps that are required, <= 0 means no upper limit
      • generates

        public abstract Class generates()
        The type of data that is generated.
        Returns:
        the class
      • check

        protected void check​(Map[] maps)
        Checks the maps.

        Default implementation only ensures that maps are present.
        Parameters:
        maps - the maps to check
      • doProcess

        protected abstract O doProcess​(Map[] maps,
                                       MessageCollection errors)
        Performs the actual processing of the maps.
        Parameters:
        maps - the containers to process
        errors - for collecting errors
        Returns:
        the generated data
      • process

        public O process​(Map[] maps,
                         MessageCollection errors)
        Processes the containers.
        Parameters:
        maps - the containers to process
        errors - for collecting errors
        Returns:
        the generated data