spider.crawl
Class FrontierElement

java.lang.Object
  |
  +--spider.crawl.FrontierElement
All Implemented Interfaces:
java.lang.Comparable

public class FrontierElement
extends java.lang.Object
implements java.lang.Comparable

Author:
Gautam Pant Defines an element in the frontier (unvisited URLs list)

Field Summary
 java.lang.String context
          context of the URL - a few words that seem to describe the URL
 int depth
          known depth of the URL from a starting page
 double score
          potential score of the URL
 int status
          status of the URL
 java.lang.String url
          unvisted URL
 
Constructor Summary
FrontierElement(java.lang.String url)
           
FrontierElement(java.lang.String url, double score)
           
FrontierElement(java.lang.String url, double score, int depth)
           
FrontierElement(java.lang.String url, double score, int depth, java.lang.String context)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

public java.lang.String url
unvisted URL


score

public double score
potential score of the URL


depth

public int depth
known depth of the URL from a starting page


context

public java.lang.String context
context of the URL - a few words that seem to describe the URL


status

public int status
status of the URL

Constructor Detail

FrontierElement

public FrontierElement(java.lang.String url)

FrontierElement

public FrontierElement(java.lang.String url,
                       double score)

FrontierElement

public FrontierElement(java.lang.String url,
                       double score,
                       int depth)

FrontierElement

public FrontierElement(java.lang.String url,
                       double score,
                       int depth,
                       java.lang.String context)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable