agents
Class SearchApprovalAgent
java.lang.Object
agents.AgentFormat
agents.SearchApprovalAgent
- All Implemented Interfaces:
- java.lang.Runnable
public class SearchApprovalAgent
- extends AgentFormat
SearchApprovalAgent keeps track of which searches are conducted and how they go.
SearchApprovalAgent receives all search-requests and decides which the system will follow up on,
based on previous searches and their results.
This means that SearchApprovalAgent receives alot of trafic and that it has to analyze this trafic,
and direct dataflow to some extent.
This agent takes 2 inputs and at least 4 outputs.
The first input is the input from the user. This input tells the agent what word to start a search for.
But this first input is also used by other agents to give information on what words to start a search for.
Input from these agents may also contain knowledge and knowledge-giving statements to verify.
The second input is the input from the agents working with search-agents, like Google.
This input may receive either suggestions on URLs or results from verification of knowledge.
The first output is given the accepted URLs for download of content.
The second output is the found knowledge, ready for parsing and presentation (but not yet cleansed of low probability data).
The third output is where SearchApprovalAgent can send messages to the user.
The number of outputs after three are completely dependent on the number of different agents used for interfacing with search-engines.
All the outputs after three will be given the same data and treated as agents interfacing with search-engines.
- Author:
- Håvard Rykkelid
Method Summary |
private void |
removeUncertainOutputs()
This method is run right before the system ends. |
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 |
investigatedWords
private static java.util.Vector<java.lang.String> investigatedWords
verified
private static java.util.Vector<java.lang.String> verified
searches
private static java.util.Vector<DataPackage> searches
searchCounter
private static int searchCounter
hitCounter
private static int hitCounter
finished
private static boolean finished
SearchApprovalAgent
public SearchApprovalAgent()
run
public void run()
- This method will be run when the Thread containing this agentdescription is started
removeUncertainOutputs
private void removeUncertainOutputs()
- This method is run right before the system ends.
This method clears away the knowledge which has had poor results after verification.