| |
|
| java.lang.Object net.matuschek.spider.MemoryTaskList
MemoryTaskList | public class MemoryTaskList implements TaskList(Code) | | Memory based implementation of the TaskList interface. Uses an
Vector to store the tasks.
To be thread safe, all methods are synchronized.
author: Daniel Matuschek version: $Id: MemoryTaskList.java,v 1.4 2001/07/31 12:18:52 matuschd Exp $ |
MemoryTaskList | public MemoryTaskList()(Code) | | Simple constructor, does nothing special
|
add | public synchronized void add(RobotTask task)(Code) | | Add a task to the end of the list
Parameters: task - a RobotTask object to store in the queue |
addAtStart | public synchronized void addAtStart(RobotTask task)(Code) | | Add a task at the beginning of list
Parameters: task - a RobotTask object to store in the queue |
clear | public synchronized void clear()(Code) | | Clean up the list, remove all objects
|
contains | public synchronized boolean contains(RobotTask task)(Code) | | Is this robot task stored in the list ?
|
remove | public synchronized boolean remove(RobotTask task)(Code) | | Remove this object from the list
|
size | public synchronized int size()(Code) | | Returns the number of elements in this list
|
|
|
|