nz.ac.waikato.mcennis.rat.graph.artist.decider
Class GoogleDecider

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.artist.decider.ArtistDeciderBase
      extended by nz.ac.waikato.mcennis.rat.graph.artist.decider.GoogleDecider
All Implemented Interfaces:
ArtistDecider, ParsedObject

public class GoogleDecider
extends ArtistDeciderBase

Class for utilizing a Google music finder web query to determine if a string matches an artist name or not. Note: this algorithm hits Google's servers enough that it rapidly triggers a banning - seeks permission before using.


Method Summary
protected  void lookup(java.lang.String name)
          Looks up the artist name on Google using a Google parser embedded in a single threaded CrawlerBase crawler.
static GoogleDecider newInstance()
          Returns a static instance of this variable
 void setProxy(boolean p)
          Should the web crawler use a proxy or not.
 
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.artist.decider.ArtistDeciderBase
addArtist, addChecked, isArtist, isChecked, output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static GoogleDecider newInstance()
Returns a static instance of this variable

Returns:

lookup

protected void lookup(java.lang.String name)
Looks up the artist name on Google using a Google parser embedded in a single threaded CrawlerBase crawler.

Specified by:
lookup in class ArtistDeciderBase
Parameters:
name - potential artist name.

setProxy

public void setProxy(boolean p)
Should the web crawler use a proxy or not.

Parameters:
p - true/false use a proxy