scone.robot
Class QueueEntry

java.lang.Object
  extended by scone.robot.QueueEntry

public class QueueEntry
extends java.lang.Object

This class represents entries of the urlQueue

Author:
Frank Wollenweber

Constructor Summary
QueueEntry(SimpleUri uri, int depth, RobotTask robotTask)
          Constructor
 
Method Summary
 int getDepth()
          Get the depth of the queueEntry
 RobotTask getRobotTask()
          Get the robotTask this queueEntry belongs to
 SimpleUri getURI()
          Get the url of this queueEntry
 void setDepth(int depth)
          Set the depth of the queueEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueEntry

public QueueEntry(SimpleUri uri,
                  int depth,
                  RobotTask robotTask)
Constructor

Parameters:
url - download this url
depth - scan this subgraph of the web with this depth
robotTask - the robotTask this queueEntry belongs to
Method Detail

getURI

public SimpleUri getURI()
Get the url of this queueEntry

Returns:
the url

getDepth

public int getDepth()
Get the depth of the queueEntry

Returns:
the subtree of the web should be downloaded with this depth

setDepth

public void setDepth(int depth)
Set the depth of the queueEntry

Parameters:
depth - the subtree of the web should be downloaded with this depth

getRobotTask

public RobotTask getRobotTask()
Get the robotTask this queueEntry belongs to

Returns:
the robotTask