org.gvsig.remoteclient.taskplanning
Class FIFOTaskPlanner

java.lang.Object
  extended by org.gvsig.remoteclient.taskplanning.FIFOTaskPlanner
All Implemented Interfaces:
ITaskPlanner

public class FIFOTaskPlanner
extends java.lang.Object
implements 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
FIFOTaskPlanner(IQueue queue)
          Creates a new instance of FIFOTaskPlanner that will work against the queue passed as paramenter
 
Method Summary
 IRunnableTask nextTask()
          Takes the next task to be executed.
 IRunnableTask previousTask()
          FIFO plans have no previous tasks so, null is always returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIFOTaskPlanner

public FIFOTaskPlanner(IQueue queue)
Creates a new instance of FIFOTaskPlanner that will work against the queue passed as paramenter

Parameters:
queue, - the IQueue to be planned
Method Detail

nextTask

public IRunnableTask nextTask()
Description copied from interface: ITaskPlanner
Takes the next task to be executed.

Specified by:
nextTask in interface ITaskPlanner
Returns:
IRunnableTask representing the next task to be executed

previousTask

public IRunnableTask previousTask()
FIFO plans have no previous tasks so, null is always returned.

Specified by:
previousTask in interface ITaskPlanner
Returns:
IRunnableTask representing the previous executed task, or null if none.


Copyright © 2014 gvSIG Association. All Rights Reserved.