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
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 |
LauncherAgent
public LauncherAgent()
throws RemoteException
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