Class AbstractModule

    • Constructor Detail

      • AbstractModule

        public AbstractModule()
    • Method Detail

      • preview

        public void preview()
        Description copied from interface: Module
        Computes a preview of the module's execution results, if available. A preview is a quick approximation of the results that would be obtained by actually executing the module with Runnable.run(). Not all modules support previews.
        Specified by:
        preview in interface Module
        See Also:
        ModuleInfo.canPreview()
      • cancel

        public void cancel()
        Description copied from interface: Module
        Performs necessary cleanup in response to cancellation of the module execution. This is useful in conjunction with Module.preview() to undo any changes made as a result of the preview.
        Specified by:
        cancel in interface Module
        See Also:
        ModuleInfo.canCancel()
      • getDelegateObject

        public Object getDelegateObject()
        Description copied from interface: Module
        Gets the object containing the module's actual implementation. By definition, this is an object whose fully qualified class name is given by getInfo().getDelegateClassName(). This object must possess all callback methods specified by ModuleItem.getCallback().

        The nature of this method is implementation-specific; e.g., a CommandModule will return its associated Command. For modules that are not plugins, the result may be something else. If you are implementing this interface directly, a good rule of thumb is to return this.

        Specified by:
        getDelegateObject in interface Module
      • getInput

        public Object getInput​(String name)
        Description copied from interface: Module
        Gets the value of the input with the given name.
        Specified by:
        getInput in interface Module
      • getOutput

        public Object getOutput​(String name)
        Description copied from interface: Module
        Gets the value of the output with the given name.
        Specified by:
        getOutput in interface Module
      • setInput

        public void setInput​(String name,
                             Object value)
        Description copied from interface: Module
        Sets the value of the input with the given name.
        Specified by:
        setInput in interface Module
      • setOutput

        public void setOutput​(String name,
                              Object value)
        Description copied from interface: Module
        Sets the value of the output with the given name.
        Specified by:
        setOutput in interface Module
      • setInputs

        public void setInputs​(Map<String,​Object> inputs)
        Description copied from interface: Module
        Sets input values according to the given table.
        Specified by:
        setInputs in interface Module
      • setOutputs

        public void setOutputs​(Map<String,​Object> outputs)
        Description copied from interface: Module
        Sets output values according to the given table.
        Specified by:
        setOutputs in interface Module
      • resolveInput

        public void resolveInput​(String name)
        Description copied from interface: Module
        Marks the input with the given name as resolved. A "resolved" input is known to have a final, valid value for use with the module.

        ModulePreprocessors in the module execution chain that populate input values (e.g. InputHarvester plugins) will typically skip over inputs which have already been resolved.

        Specified by:
        resolveInput in interface Module
      • resolveOutput

        public void resolveOutput​(String name)
        Description copied from interface: Module
        Marks the output with the given name as resolved. A "resolved" output has been handled by the framework somehow, typically displayed to the user.

        ModulePostprocessors in the module execution chain that handle output values (e.g. the DisplayPostprocessor) will typically skip over outputs which have already been resolved.

        Specified by:
        resolveOutput in interface Module