Package moa.tasks

Interface Task

    • Method Detail

      • getTaskResultType

        Class<?> getTaskResultType()
        Gets the result type of this task. Tasks can return LearningCurve, LearningEvaluation, Classifier, String, Instances..
        Returns:
        a class object of the result of this task
      • doTask

        Object doTask()
        This method performs this task, when TaskMonitor and ObjectRepository are no needed.
        Returns:
        an object with the result of this task
      • doTask

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