agentland.rufus
Class ConfuciusWebAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--agentland.rufus.ConfuciusWebAgent
- All Implemented Interfaces:
- Agent, ConfuciusWeb, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy, WebInterfaceable
- public class ConfuciusWebAgent
- extends ManagedAgent
- implements ConfuciusWeb, WebInterfaceable
- See Also:
- Serialized Form
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, 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, lookupClass, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
Methods inherited from interface agentland.util.Spy |
tell |
ConfuciusWebAgent
public ConfuciusWebAgent()
throws RemoteException
webCall
public String webCall(Hashtable h)
throws RemoteException
webCall
handles the web interface for the ConfuciusAgent
- Specified by:
webCall
in interface WebInterfaceable
- Parameters:
h
- a Hashtable
containing at least a society
and catalog- Returns:
- a
String
value which is an
HTML page containing textboxes for sender's name, message, and priority
stopConfucius
protected void stopConfucius(String ccid)
throws RemoteException
startConfucius
protected void startConfucius(String ccid)
throws RemoteException
setUpdatePeriod
protected void setUpdatePeriod(String ccid,
int seconds)
throws RemoteException
getConfucius
protected ConfuciusClock getConfucius(String ccid)
throws RemoteException