agents
Class GoogleAgent
java.lang.Object
agents.AgentFormat
agents.GoogleAgent
- All Implemented Interfaces:
- java.lang.Runnable
public class GoogleAgent
- extends AgentFormat
This agent makes searches on the Google server, using the Google framework.
This agent has two main purposes.
GoogleAgent will search for hits on new words that have come in, to keep expanding the growing knowledge-network.
GoogleAgent will also verify knowledge that has been found,
by making very pointed searches for specific sentences verifying the information.
It will then return an estimate on how many hits it found on those pointed searches and thus giving a probability measure of valid information or not.
This agent takes 2 inputs and one output.
The first input is where GoogleAgent receives queries that should be used to find information from Google.
The second input is the language-input. When a new language is set, that information should be sent to the second variable.
The output variable contains the results from Google.
- Author:
- Håvard Rykkelid
Method Summary |
void |
run()
This method will be run when the Thread containing this agentdescription is started |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
noOfPages
private int noOfPages
search
private com.google.soap.search.GoogleSearch search
agentSettings
private static final java.lang.String agentSettings
GoogleAgent
public GoogleAgent()
run
public void run()
- This method will be run when the Thread containing this agentdescription is started