org.apache.droids
Class AbstractDroid<T extends Task>

java.lang.Object
  extended by org.apache.droids.helper.Loggable
      extended by org.apache.droids.AbstractDroid<T>
All Implemented Interfaces:
Droid<T>
Direct Known Subclasses:
CrawlingDroid, SimpleWalkingDroid

public abstract class AbstractDroid<T extends Task>
extends Loggable
implements Droid<T>

Manage common tasks in standard Droids


Field Summary
protected  TaskQueue<T> queue
           
protected  TaskMaster<T> taskMaster
           
 
Fields inherited from class org.apache.droids.helper.Loggable
log
 
Constructor Summary
AbstractDroid(TaskQueue<T> queue, TaskMaster<T> taskMaster)
           
 
Method Summary
 TaskQueue<T> getQueue()
           
 TaskMaster<T> getTaskMaster()
          Get the task master
 void start()
          Invoke an instance of the worker used in the droid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.droids.api.Droid
finished, getNewWorker, init
 

Field Detail

queue

protected final TaskQueue<T extends Task> queue

taskMaster

protected final TaskMaster<T extends Task> taskMaster
Constructor Detail

AbstractDroid

public AbstractDroid(TaskQueue<T> queue,
                     TaskMaster<T> taskMaster)
Method Detail

start

public void start()
Description copied from interface: Droid
Invoke an instance of the worker used in the droid

Specified by:
start in interface Droid<T extends Task>

getQueue

public TaskQueue<T> getQueue()

getTaskMaster

public TaskMaster<T> getTaskMaster()
Description copied from interface: Droid
Get the task master

Specified by:
getTaskMaster in interface Droid<T extends Task>


Copyright © 2007-2009. All Rights Reserved.