public class FIFOTaskPlanner extends Object implements ITaskPlanner
Constructor and Description |
---|
FIFOTaskPlanner(IQueue queue)
Creates a new instance of FIFOTaskPlanner that will work against the
queue passed as paramenter
|
Modifier and Type | Method and Description |
---|---|
IRunnableTask |
nextTask()
Takes the next task to be executed.
|
IRunnableTask |
previousTask()
FIFO plans have no previous tasks so, null is always returned.
|
public FIFOTaskPlanner(IQueue queue)
queue,
- the IQueue to be plannedpublic IRunnableTask nextTask()
ITaskPlanner
nextTask
in interface ITaskPlanner
public IRunnableTask previousTask()
previousTask
in interface ITaskPlanner