Class AbstractWekaPackageManagerAction

    • Field Detail

      • m_FlowContext

        protected Actor m_FlowContext
        the flow context.
    • Constructor Detail

      • AbstractWekaPackageManagerAction

        public AbstractWekaPackageManagerAction()
    • Method Detail

      • getFlowContext

        public Actor getFlowContext()
        Returns the flow context, if any.
        Specified by:
        getFlowContext in interface FlowContextHandler
        Returns:
        the actor, null if none available
      • accepts

        public abstract Class[] accepts()
        The types of data the action accepts.
        Returns:
        the input types
      • generates

        public abstract Class[] generates()
        The types of data the action generates.
        Returns:
        the output types
      • 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
      • check

        protected String check​(Object input)
        Hook method for performing checks.
        Parameters:
        input - the input to process
        Returns:
        null if checks passed, otherwise error message
      • unhandledInputType

        protected void unhandledInputType​(Object input,
                                          MessageCollection errors)
        Adds an error message that the input type is not supported.
        Parameters:
        input - the input type
        errors - the errors to update
      • doExecute

        public abstract Object doExecute​(Object input,
                                         MessageCollection errors)
        Executes the action.
        Parameters:
        input - the input to process
        errors - for collecting errors
        Returns:
        the generated output, null if failed to generated
      • execute

        public Object execute​(Object input,
                              MessageCollection errors)
        Executes the action.
        Parameters:
        input - the input to process
        errors - for collecting errors
        Returns:
        the generated output, null if failed to generated