ir.webutils
Class PageGoal

java.lang.Object
  extended by ir.webutils.PageGoal

public class PageGoal
extends java.lang.Object

Object for defining the goal in a heuristic web search. Default version checks if page contains all of a set of "want strings"


Constructor Summary
PageGoal(java.lang.String[] wantStrings)
          Construct a PageGoal with these wantStrings
 
Method Summary
 boolean satisfiedBy(HTMLPage page)
          Returns true if this page satisfies the goal by containing all of the wantStrings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageGoal

public PageGoal(java.lang.String[] wantStrings)
Construct a PageGoal with these wantStrings

Method Detail

satisfiedBy

public boolean satisfiedBy(HTMLPage page)
Returns true if this page satisfies the goal by containing all of the wantStrings