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

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  GoodAsker asker
           
protected  String curAgentName
           
protected  SpeechOut sout
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
LauncherSpeechAgent()
           
 
Method Summary
 void acceptedTagsResult(Hashtable tags)
           
protected  String getAgentName(Hashtable tags)
           
 void updateGrammar()
          Asks the launcher agent for the current list of names used to address agents
 void updateGrammar(Secret s)
          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)
 
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
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, getOldLogs, shutdown, startup, whereAreYou
 

Field Detail

sout

protected SpeechOut sout

asker

protected GoodAsker asker

curAgentName

protected String curAgentName
Constructor Detail

LauncherSpeechAgent

public LauncherSpeechAgent()
                    throws RemoteException
Method Detail

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