Class AbstractSetupUpload

    • Field Detail

      • m_FlowContext

        protected Actor m_FlowContext
        the flow context.
      • m_Experiment

        protected String m_Experiment
        the name of the experiment.
    • Constructor Detail

      • AbstractSetupUpload

        public AbstractSetupUpload()
    • Method Detail

      • setExperiment

        public void setExperiment​(String value)
        Sets the experiment name to use.
        Parameters:
        value - the name
      • getExperiment

        public String getExperiment()
        Returns the experiment name to use.
        Returns:
        the name
      • experimentTipText

        public String experimentTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setFlowContext

        public void setFlowContext​(Actor value)
        Sets the flow context, if any.
        Specified by:
        setFlowContext in interface FlowContextHandler
        Parameters:
        value - the context
      • getFlowContext

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

        public abstract boolean requiresFlowContext()
        Returns whether flow context is required.
        Returns:
        true if required
      • doStart

        protected abstract void doStart​(AbstractGeneticAlgorithm algorithm)
        Before Starting the uploads, ie the genetic algorithm run.
        Parameters:
        algorithm - the algorithm initiating the run
      • start

        public void start​(AbstractGeneticAlgorithm algorithm)
        Before Starting the uploads, ie the genetic algorithm run.
        Parameters:
        algorithm - the algorithm initiating the run
      • doUpload

        protected abstract String doUpload​(Map<String,​Object> setup)
        Uploads the setup.
        Parameters:
        setup - the setup data to upload
        Returns:
        null if successful, otherwise error message
      • upload

        public String upload​(Map<String,​Object> setup)
        Uploads the setup.
        Parameters:
        setup - the setup data to upload
        Returns:
        null if successful, otherwise error message
      • doFinish

        protected abstract void doFinish​(AbstractGeneticAlgorithm algorithm,
                                         String error,
                                         Map<String,​Object> params)
        Finishing up the genetic algorithm run.
        Parameters:
        algorithm - the algorithm that initiated the run
        error - null if successful, otherwise error message
        params - the parameters to store
      • finish

        public void finish​(AbstractGeneticAlgorithm algorithm,
                           String error,
                           Map<String,​Object> params)
        Finishing up the genetic algorithm run.
        Parameters:
        algorithm - the algorithm that initiated the run
        error - null if successful, otherwise error message
        params - the parameters to store
      • toProperties

        public static Properties toProperties​(Map<String,​Object> setup)
        Turns the setup map into a properties object.
        Parameters:
        setup - the setup to convert
        Returns:
        the generated properties