Class PluginWorkUnit

    • Method Detail

      • setPlugin

        public void setPlugin​(CalculatorPlugin plugin)
        Sets the plugin object.
        Parameters:
        plugin - the plugin object
      • setInput

        public void setInput​(Object obj)
                      throws ExecutionException
        Sets the input molecule.
        Specified by:
        setInput in interface chemaxon.util.concurrent.WorkUnit
        Parameters:
        obj - the input molecule
        Throws:
        ExecutionException
      • getHeader

        protected String getHeader()
        Returns the table header.
        Returns:
        the table header
      • getWrapperException

        public Exception getWrapperException​(Exception e)
        Returns a wrapper exception to be returned.
        Parameters:
        e - the base exception
        Returns:
        the wrapper exception
      • getResult

        public abstract Object getResult()
                                  throws Exception
        Returns the calculation result after the plugin has been CalculatorPlugin.run(). Subclasses should override this to return a specific calculation result.
        Returns:
        the calculation result
        Throws:
        Exception