Interface IIntermediateTaskDistributor<R,T>

All Known Implementing Classes:
IntermediateTaskDistributorAgent

public interface IIntermediateTaskDistributor<R,T>
  • Method Details

    • publish

      jadex.future.IIntermediateFuture<R> publish(T task)
      Publish a new task.
      Parameters:
      task - The task to publish.
    • requestNextTask

      jadex.future.IFuture<ITaskDistributor.Task<T>> requestNextTask()
      Request a task.
      Returns:
      The next task (waits for a task).
    • addTaskResult

      jadex.future.IFuture<Void> addTaskResult(String id, R result)
      Set the result of a task.
      Parameters:
      id - The task id.
      result - The result.
    • setTaskFinished

      jadex.future.IFuture<Void> setTaskFinished(String id)
      Set a task finished.
      Parameters:
      id - The task id.
      result - The result.
    • setTaskException

      jadex.future.IFuture<Void> setTaskException(String id, Exception ex)
      Set the exception of a task.
      Parameters:
      id - The task id.
      ex - The exception.