|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--spider.crawl.Frontier
Constructor Summary | |
Frontier(Cache c)
if no size is specified, then set up a flag for unlimited frontier |
|
Frontier(int max_size,
Cache c)
|
Method Summary | |
boolean |
addElements(java.util.Vector fes)
Adds a set of elements to the frontier given a sorted list of urls (sorted by score) The function allows optimization of code when many URLs need to be added returns true unless Exception is caught - omitted for now |
FrontierElement |
getElement()
get the top frontier element (according to priority) and delete it |
int |
getMaxSize()
get max size |
int |
size()
get current frontier size |
java.lang.String |
toString()
a string version of the frontier's current state |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Frontier(int max_size, Cache c)
public Frontier(Cache c)
Method Detail |
public boolean addElements(java.util.Vector fes)
public FrontierElement getElement()
public int size()
public int getMaxSize()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |