agentland.util.launcher
Class LauncherSpeechAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.launcher.LauncherSpeechAgent
- All Implemented Interfaces:
- Agent, LauncherSpeech, MetagluePrimitives, Remote, RemoteTagsListener, Serializable
- public class LauncherSpeechAgent
- extends AgentAgent
- implements LauncherSpeech, RemoteTagsListener
A LauncherSpeech agent listens for commands from a user directing it to
start other agents, or respond with queries as to whether specific agents
are alive or not.
Launcher acquires knowledge about which agents it can start and query by
user input via addLaunchableAgent(). It keeps track of agents it knows
about in a PersistantMap.
- See Also:
- Serialized Form
Methods inherited from class metaglue.AgentAgent |
addMonitor, alive, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, log, lookupClass, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
sout
protected SpeechOut sout
asker
protected GoodAsker asker
curAgentName
protected String curAgentName
LauncherSpeechAgent
public LauncherSpeechAgent()
throws RemoteException
acceptedTagsResult
public void acceptedTagsResult(Hashtable tags)
throws RemoteException
- Specified by:
acceptedTagsResult
in interface RemoteTagsListener
getAgentName
protected String getAgentName(Hashtable tags)
throws RemoteException
updateGrammar
public void updateGrammar(Secret s)
throws RemoteException
- Appropriate secret ("launcher.agentlist.update") will trigger
updating of launcher grammar (update process will ask the
launcher agent for the current list of agent names)
- Specified by:
updateGrammar
in interface LauncherSpeech
updateGrammar
public void updateGrammar()
throws RemoteException
- Asks the launcher agent for the current list of names used to
address agents
- Specified by:
updateGrammar
in interface LauncherSpeech