agentland.info
Class StartAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--agentland.info.StartAgent
- All Implemented Interfaces:
- Agent, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy, Start
- public class StartAgent
- extends ManagedAgent
- implements Start
The implementation for the START querying agent. This agent
contains both a runQuery method so other agents can call START, as
well as a speech-recognition interface so that users can construct
free-form queries.
- See Also:
- Serialized Form
|
Constructor Summary |
StartAgent()
Creates a new StartAgent instance. |
| Methods inherited from class agentland.resource.ManagedAgent |
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank |
| Methods inherited from class agentland.util.GoodAgent |
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell |
| 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, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou |
| Methods inherited from interface agentland.util.Spy |
tell |
servername
public String servername
StartAgent
public StartAgent()
throws RemoteException
- Creates a new
StartAgent instance.
- Throws:
RemoteException - if an error occurs
runQuery
public void runQuery(String s)
throws RemoteException
- Take a english sentence. Get answer.
- Specified by:
runQuery in interface Start
- Parameters:
s - a String value- Throws:
RemoteException - if an error occurs
assertPlaceAndURL
public void assertPlaceAndURL(String name,
String location,
String url)
throws RemoteException
- Describe
assertPlaceAndURL method here.
- Specified by:
assertPlaceAndURL in interface Start
- Parameters:
name - a String valuelocation - a String valueurl - a String value- Throws:
RemoteException - if an error occurs