scheduler.modulesinterfaces
Interface ConnectionsFinderTasksManager

All Known Implementing Classes:
ConnectionsFinderTasksManager

public interface ConnectionsFinderTasksManager

An interface that must be implemented by a class that will manage the order of processing of tasks while finding the connections for the travel divisions.

Author:
Piotrek

Method Summary
 void AddTask(ConnectionsFinderTask task)
          Adds a task to the manager to be stored for a later execution.
 void Clear()
          Removes all the tasks from the manager.
 ConnectionsFinderTask GetTask()
          Gets a task to be performed.
 

Method Detail

AddTask

public void AddTask(ConnectionsFinderTask task)
Adds a task to the manager to be stored for a later execution. It does not check if a given task has been already added in the past.

Parameters:
task - A task to the manager to be stored for a later execution.

GetTask

public ConnectionsFinderTask GetTask()
Gets a task to be performed.

Returns:
A task to be performed or null if there are no more.

Clear

public void Clear()
Removes all the tasks from the manager.