Class FIFOTaskPlanner
java.lang.Object
org.gvsig.remoteclient.taskplanning.FIFOTaskPlanner
- All Implemented Interfaces:
ITaskPlanner
A simple FIFO task planner. The tasks returned by this planner are executed
enterely. It does not issue another task until the current is finished.
- Author:
- jaume
-
Constructor Summary
ConstructorsConstructorDescriptionFIFOTaskPlanner(IQueue queue) Creates a new instance of FIFOTaskPlanner that will work against the queue passed as paramenter -
Method Summary
Modifier and TypeMethodDescriptionnextTask()Takes the next task to be executed.FIFO plans have no previous tasks so, null is always returned.
-
Constructor Details
-
FIFOTaskPlanner
Creates a new instance of FIFOTaskPlanner that will work against the queue passed as paramenter- Parameters:
queue- , the IQueue to be planned
-
-
Method Details
-
nextTask
Description copied from interface:ITaskPlannerTakes the next task to be executed.- Specified by:
nextTaskin interfaceITaskPlanner- Returns:
- IRunnableTask representing the next task to be executed
-
previousTask
FIFO plans have no previous tasks so, null is always returned.- Specified by:
previousTaskin interfaceITaskPlanner- Returns:
- IRunnableTask representing the previous executed task, or null if none.
-