scone.robot
Class FairBreadthSearchURLQueue
java.lang.Object
scone.robot.GenericURLQueue
scone.robot.FairBreadthSearchURLQueue
- All Implemented Interfaces:
- URLQueue
public class FairBreadthSearchURLQueue
- extends GenericURLQueue
The FairBreadthSearchURLQueue simulates a set of fifo-ques, one for every robotTask.
In every dequeue operation an entry from a different task is taken form the queue. A round-robin strategy is used to choose the next task.
- Author:
- Frank Wollenweber
|
Field Summary |
protected scone.robot.FairBreadthSearchURLQueue.Ring |
ring
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ring
protected scone.robot.FairBreadthSearchURLQueue.Ring ring
FairBreadthSearchURLQueue
public FairBreadthSearchURLQueue()
- constructor
dequeue
public QueueEntry dequeue()
- Get the next entry from the queue
- Returns:
- The next entry
removeAllQueueEntries
public void removeAllQueueEntries(RobotTask robotTask)
- Remove all queueEntries of the specified robotTask
- Specified by:
removeAllQueueEntries in interface URLQueue- Overrides:
removeAllQueueEntries in class GenericURLQueue
- Parameters:
robotTask - removes all queue entries of this task
removeQueueEntry
public void removeQueueEntry(QueueEntry qe)
- Remove an entry from the queue
- Specified by:
removeQueueEntry in interface URLQueue- Overrides:
removeQueueEntry in class GenericURLQueue
- Parameters:
qe - The entry to remove