| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--mam.agent.Agent | +--mam.agent.UrlKnowledgeAgent
Description of the Class
Field Summary | |
protected final static String | AGENT_ATTRIBUTE_KNOWLEDGE_METADATA_REFRESH_PROBABILITY |
protected final static String | AGENT_ATTRIBUTE_TIMES_QUERIED |
protected final static String | AGENT_ATTRIBUTE_TIMES_QUERIED_SUCCESSFULLY |
protected final static String | AGENT_KNOWLEDGE_METADATA_TAG_NAME |
final static double | DEFAULT_STARTING_FUNDS |
final static RoutingTag | KNOWLEDGE_AGENT_ROUTING_TAG |
protected final static String | KNOWLEDGE_URL_TAG_NAME |
protected Date | m_attrKnowledgeLastChanged |
protected String | m_attrKnowledgeMetadata |
protected URL | m_attrKnowledgeUrl |
protected String | m_temporaryKnowledgeMetadata |
protected final static int | MAX_LINES_EXAMINED |
protected final static String | ORIGIN_TAG_NAME |
Fields inherited from class mam.agent.Agent |
AGENT_ACCESS_STATISTICS_TAG_NAME, AGENT_PROPERTIES_TAG_NAME, AGENT_TRAITS_TAG_NAME, ALL_AGENTS_ROUTING_TAG, DEFAULT_TAG_NAME, m_accessStatisticsGroup, m_agentProperties, m_facility, m_incomingMessageQueue, m_shutdown, m_sleepManager, ROLE_TAG_NAME |
Fields inherited from class java.lang.Thread |
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY |
Constructor Summary | |
UrlKnowledgeAgent() Constructor for the UrlKnowledgeAgent object | |
UrlKnowledgeAgent(URL knowledgeUrl, String knowledgeMetadata) Constructor for the UrlKnowledgeAgent object | |
UrlKnowledgeAgent(String knowledgeUrl, String knowledgeMetadata) Constructor for the UrlKnowledgeAgent object | |
UrlKnowledgeAgent(Facility facility, AgentProperties defaultAgentProperties) Constructor for the UrlKnowledgeAgent object |
Method Summary | |
protected int | doQuery(String queryPhrase, String filter) Description of the Method |
synchronized void | enqueueMessage(AgentMessage incomingMessage) Description of the Method |
String | getKnowledgeMetadata() Gets the KnowledgeMetadata attribute of the UrlKnowledgeAgent object |
URL | getKnowledgeUrl() Gets the KnowledgeUrl attribute of the UrlKnowledgeAgent object |
String | getOrigin() Gets the Origin attribute of the UrlKnowledgeAgent object |
protected String | getTemporaryKnowledgeMetadata() Gets the TemporaryKnowledgeMetadata attribute of the UrlKnowledgeAgent object |
void | handleDoDestroyAgentMessage(AgentMessage m) Description of the Method |
void | handleDoQueryKnowledgeMessage(AgentMessage m) doQueryKnowledge Message For now, assume that we only handle ASCII text. |
void | handleGetKnowledgeMessage(AgentMessage m) Description of the Method |
protected void | registerRoutingTags() Description of the Method |
protected void | rewriteLocalUrls() Description of the Method |
void | setKnowledgeMetadata(String knowledgeMetadata) Sets the KnowledgeMetadata attribute of the UrlKnowledgeAgent object |
void | setKnowledgeUrl(String knowledgeUrlString) Sets the KnowledgeUrl attribute of the UrlKnowledgeAgent object |
void | setKnowledgeUrl(URL knowledgeUrl) Sets the KnowledgeUrl attribute of the UrlKnowledgeAgent object |
void | setOrigin(String origin) Sets the Origin attribute of the UrlKnowledgeAgent object |
protected void | setTemporaryKnowledgeMetadata(String temporaryKnowledgeMetadata) Sets the TemporaryKnowledgeMetadata attribute of the UrlKnowledgeAgent object |
String | toString() Description of the Method |
Element | toXmlElement(String tagName) Description of the Method |
protected void | unregisterRoutingTags() Description of the Method |
protected void | updateTemporaryKnowledgeMetadata() Description of the Method |
Methods inherited from class java.lang.Thread |
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, getContextClassLoader, setContextClassLoader |
Methods inherited from class java.lang.Object |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize |
Field Detail |
protected final static String AGENT_ATTRIBUTE_KNOWLEDGE_METADATA_REFRESH_PROBABILITY
protected final static String AGENT_ATTRIBUTE_TIMES_QUERIED
protected final static String AGENT_ATTRIBUTE_TIMES_QUERIED_SUCCESSFULLY
protected final static String AGENT_KNOWLEDGE_METADATA_TAG_NAME
public final static double DEFAULT_STARTING_FUNDS
public final static RoutingTag KNOWLEDGE_AGENT_ROUTING_TAG
protected final static String KNOWLEDGE_URL_TAG_NAME
protected Date m_attrKnowledgeLastChanged
protected String m_attrKnowledgeMetadata
protected URL m_attrKnowledgeUrl
protected String m_temporaryKnowledgeMetadata
protected final static int MAX_LINES_EXAMINED
protected final static String ORIGIN_TAG_NAME
Constructor Detail |
public UrlKnowledgeAgent()
public UrlKnowledgeAgent(URL knowledgeUrl, String knowledgeMetadata)
public UrlKnowledgeAgent(String knowledgeUrl, String knowledgeMetadata)
public UrlKnowledgeAgent(Facility facility, AgentProperties defaultAgentProperties)
Method Detail |
protected int doQuery(String queryPhrase, String filter)
public synchronized void enqueueMessage(AgentMessage incomingMessage)
public String getKnowledgeMetadata()
public URL getKnowledgeUrl()
public String getOrigin()
protected String getTemporaryKnowledgeMetadata()
public void handleDoDestroyAgentMessage(AgentMessage m)
public void handleDoQueryKnowledgeMessage(AgentMessage m)
public void handleGetKnowledgeMessage(AgentMessage m)
protected void registerRoutingTags()
protected void rewriteLocalUrls()
public void setKnowledgeMetadata(String knowledgeMetadata)
public void setKnowledgeUrl(String knowledgeUrlString)
public void setKnowledgeUrl(URL knowledgeUrl)
public void setOrigin(String origin)
protected void setTemporaryKnowledgeMetadata(String temporaryKnowledgeMetadata)
public String toString()
public Element toXmlElement(String tagName)
protected void unregisterRoutingTags()
protected void updateTemporaryKnowledgeMetadata()
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |