agentland.debug.launcher
Class LauncherAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.debug.launcher.LauncherAgent
All Implemented Interfaces:
Agent, Launcher, MetagluePrimitives, Remote, Serializable

public class LauncherAgent
extends AgentAgent
implements Launcher

A Launcher agent can start other agents or query to see if they are running. Launcher is general enough to respond to requests regarding specific AgentID's, although such generality is probably useful only in very special circumstances (you're prolly better off calling reliesOn() yourself). The list of agents it knows about are stashed in a persistant map. This maps Strings ==> AgentIDs, where the string is representative of the agent; eg. "MapDisplaySpeech" ==> maps.speechin.MapDisplaySpeech

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
LauncherAgent()
           
 
Method Summary
 void addLaunchableAgent(String spoken_text, AgentID agentid)
           
 void addLaunchableAgent(String spoken_text, String agentid)
           
 String fire_up_text(String agent_to_be_run)
          fire_up starts agents
 String fire_up(AgentID agent_to_be_run)
           
 Vector launchableAgents()
          launchableAgents returns a listing of agents the launcher knows about.
 String query_text(String agent_to_be_queried)
          query checks an agent for existence
 String query(AgentID agent_to_be_queried)
           
 void removeLaunchableAgent(String text)
           
 String whois(String agentname)
           
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, log, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, 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, toString, 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, shutdown, startup, whereAreYou
 

Constructor Detail

LauncherAgent

public LauncherAgent()
              throws RemoteException
Method Detail

fire_up_text

public String fire_up_text(String agent_to_be_run)
                    throws RemoteException
Description copied from interface: Launcher
fire_up starts agents
Specified by:
fire_up_text in interface Launcher

fire_up

public String fire_up(AgentID agent_to_be_run)
               throws RemoteException
Specified by:
fire_up in interface Launcher

query_text

public String query_text(String agent_to_be_queried)
                  throws RemoteException
Description copied from interface: Launcher
query checks an agent for existence
Specified by:
query_text in interface Launcher

query

public String query(AgentID agent_to_be_queried)
             throws RemoteException
Specified by:
query in interface Launcher

launchableAgents

public Vector launchableAgents()
                        throws RemoteException
Description copied from interface: Launcher
launchableAgents returns a listing of agents the launcher knows about. this is useful for show the user what they can and cannot launch
Specified by:
launchableAgents in interface Launcher

whois

public String whois(String agentname)
             throws RemoteException
Specified by:
whois in interface Launcher

removeLaunchableAgent

public void removeLaunchableAgent(String text)
                           throws RemoteException
Specified by:
removeLaunchableAgent in interface Launcher

addLaunchableAgent

public void addLaunchableAgent(String spoken_text,
                               String agentid)
                        throws RemoteException
Specified by:
addLaunchableAgent in interface Launcher

addLaunchableAgent

public void addLaunchableAgent(String spoken_text,
                               AgentID agentid)
                        throws RemoteException
Specified by:
addLaunchableAgent in interface Launcher