mam.agent
Class PluginAgent
java.lang.Object
|
+--java.lang.Thread
|
+--mam.agent.Agent
|
+--mam.agent.TransactionalAgent
|
+--mam.agent.PluginAgent
- public class PluginAgent
- extends TransactionalAgent
- implements PluginGLListener
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 |
Methods inherited from class mam.agent.Agent |
fromXmlElement, getAccessStatisticsGroup, getAccount, getAgentProperties, getAgentTraits, getDescription, getFacility, getMamId, getNickname, getQuote, getRole, getRoutingTagToSelf, getXmlSerializable, handleDoAgentShutdownMessage, handleGetAccessStatisticsMessage, handleGetAgentPropertiesMessage, handleGetAgentTraitsMessage, handleGetQuoteMessage, handleSetDescriptionMessage, handleSetNicknameMessage, idleActivity, registerRoutingTags, requiresPersistence, run, setAccount, setAgentTraits, setDescription, setFacility, setMamId, setNickname, setRole, setXmlSerializable, toString, toXmlElement, toXmlElement, unregisterRoutingTags |
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 |
DEFAULT_TIMEOUT
protected final static long DEFAULT_TIMEOUT
DEFAULT_UPDATE_PERIOD
protected final static long DEFAULT_UPDATE_PERIOD
knowAgents
protected Collection knowAgents
knowAgentsize
protected int knowAgentsize
m_ipAgentRoutingTag
private RoutingTag m_ipAgentRoutingTag
m_monitorAgentRoutingTag
private RoutingTag m_monitorAgentRoutingTag
m_traitedSoundSystem
private TraitedSoundSystem m_traitedSoundSystem
menu
private AgentListUIDialog menu
MonitorTotal
protected int MonitorTotal
myFilter
private javaFilter myFilter
pDialog
public static PluginGLDialog pDialog
Plugin_AGENT_MESSAGE_WAITER_ID
protected final static String Plugin_AGENT_MESSAGE_WAITER_ID
PLUGIN_DIR
protected final static String PLUGIN_DIR
Plugin_MONITOR_MESSAGE_WAITER_ID
protected final static String Plugin_MONITOR_MESSAGE_WAITER_ID
QUERY_ADD_AGENT_MESSAGE_WAITER_ID
protected final static String QUERY_ADD_AGENT_MESSAGE_WAITER_ID
watchIdentities
protected Collection watchIdentities
PluginAgent
public PluginAgent()
addMessageWaiter
protected void addMessageWaiter(String id, AgentMessage originalMessage, boolean exitAfterQuota)
eventHappens
public void eventHappens(PluginGLEvent event)
filesToNames
public String[] filesToNames(File[] files)
finished
public void finished(MessageWaiter messageWaiter)
getTraitedSoundSystem
public TraitedSoundSystem getTraitedSoundSystem()
getWatchIdentities
protected Collection getWatchIdentities()
handleDoAddIdentityMessage
public void handleDoAddIdentityMessage(AgentMessage m)
handleDoStartMissionMessage
public void handleDoStartMissionMessage(AgentMessage m)
handleEventDeclareAgentPropertiesMessage
public void handleEventDeclareAgentPropertiesMessage(AgentMessage message)
handleEventDeclareKnowledgeMessage
public void handleEventDeclareKnowledgeMessage(AgentMessage message)
handleEventQueryMonitoredUrlsResultsMessage
public void handleEventQueryMonitoredUrlsResultsMessage(AgentMessage message)
handleMessages
protected void handleMessages()
- Generic message handler Override this method to provide custom message handling. Default is to handle messages one at a time, in the order they come in. Send an error message if you don't know how to handle a given message.
invokeMessageHandler
protected void invokeMessageHandler(AgentMessage message)
throws java.lang.Exception
- Utility method to use reflection to invoke the standard handler for whatever message is passed.
listSelect
public void listSelect(String name)
nameTrim
public String nameTrim(String name)
pluginhandleDoRemoveKnowledgeAgentMessage
public void pluginhandleDoRemoveKnowledgeAgentMessage(AgentMessage m)
pluginhandleEventAgentCreatedMessage
public void pluginhandleEventAgentCreatedMessage(AgentMessage m)
report
protected void report(AgentMessage m)
responsesReceived
public void responsesReceived(MessageWaiter messageWaiter, Serializable identifier, Collection recentResponses)
setTraitedSoundSystem
public void setTraitedSoundSystem(TraitedSoundSystem traitedSoundSystem)
to Class mam.agent.pluginAgentRes.PluginGLDialog
to Class mam.sound.TraitedSoundSystem
to Class java.lang.String
to Class mam.internetworking.RoutingTag
to Class mam.internetworking.RoutingTag
to Class java.lang.String
to Class applications.proxy.dialog.AgentListUIDialog
to Class java.util.Collection
to Class java.util.Collection
to Class java.lang.String
to Class java.lang.String
to Class mam.agent.PluginAgent.javaFilter