Class AbstractIndexedSplitsRunsEvaluation<I,​O>

    • Field Detail

      • m_FlowContext

        protected Actor m_FlowContext
        the flow context.
      • m_Stopped

        protected boolean m_Stopped
        whether the evaluation was stopped.
    • Constructor Detail

      • AbstractIndexedSplitsRunsEvaluation

        public AbstractIndexedSplitsRunsEvaluation()
    • 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
      • requiresFlowContext

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

        public void stopExecution()
        Stops the execution.
        Specified by:
        stopExecution in interface Stoppable
      • isStopped

        public boolean isStopped()
        Whether the execution has been stopped.
        Specified by:
        isStopped in interface StoppableWithFeedback
        Returns:
        true if stopped
      • getQuickInfo

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

        public String check​(I data,
                            IndexedSplitsRuns runs)
        For checking the data.
        Parameters:
        data - the data to use for evaluation
        runs - the indexed splits to use
        Returns:
        null if passed checks, otherwise error message
      • doEvaluate

        protected abstract O doEvaluate​(I data,
                                        IndexedSplitsRuns runs,
                                        MessageCollection errors)
        Performs an evaluation by applying the indexed splits runs to the data.
        Parameters:
        data - the data to use for evaluation
        runs - the indexed splits to use
        errors - for collecting errors
        Returns:
        the generated evaluations, null in case of error
      • evaluate

        public O evaluate​(I data,
                          IndexedSplitsRuns runs,
                          MessageCollection errors)
        Performs an evaluation by applying the indexed splits runs to the data.
        Specified by:
        evaluate in interface IndexedSplitsRunsEvaluation<I,​O>
        Parameters:
        data - the data to use for evaluation
        runs - the indexed splits to use
        errors - for collecting errors
        Returns:
        the generated evaluations, null in case of error