Package moa.tasks

Class MainTask

    • Field Detail

      • INSTANCES_BETWEEN_MONITOR_UPDATES

        protected static final int INSTANCES_BETWEEN_MONITOR_UPDATES
        The number of instances between monitor updates.
        See Also:
        Constant Field Values
      • outputFileOption

        public FileOption outputFileOption
        File option to save the final result of the task to.
    • Constructor Detail

      • MainTask

        public MainTask()
    • Method Detail

      • doTaskImpl

        protected Object doTaskImpl​(TaskMonitor monitor,
                                    ObjectRepository repository)
        Description copied from class: AbstractTask
        This method performs this task. AbstractTask implements doTask so all its extensions only need to implement doTaskImpl.
        Specified by:
        doTaskImpl in class AbstractTask
        Parameters:
        monitor - the TaskMonitor to use
        repository - the ObjectRepository to use
        Returns:
        an object with the result of this task
      • doMainTask

        protected abstract Object doMainTask​(TaskMonitor monitor,
                                             ObjectRepository repository)
        This method performs this task. AbstractTask implements doTask, that uses doTaskImpl. MainTask implements doTaskImpl using doMainTask so its extensions only need to implement doMainTask.
        Parameters:
        monitor - the TaskMonitor to use
        repository - the ObjectRepository to use
        Returns:
        an object with the result of this task