agentland.info
Class InfoManagerAgent
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.InfoManagerAgent
- All Implemented Interfaces:
- Agent, Good, InfoManager, Managed, MetagluePrimitives, Remote, Serializable, Spy, WebInterfaceable
- public class InfoManagerAgent
- extends ManagedAgent
- implements InfoManager, 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, 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 |
dbname
public static final String dbname
InfoManagerAgent
public InfoManagerAgent()
throws RemoteException
InfoManagerAgent
public InfoManagerAgent(String who)
throws RemoteException
getName
public String getName()
throws RemoteException
- Specified by:
getName in interface InfoManager
addPerson
public int addPerson(String name)
throws RemoteException
- Specified by:
addPerson in interface InfoManager
removePerson
public int removePerson(String name)
throws RemoteException
- Specified by:
removePerson in interface InfoManager
getMessages
public String getMessages()
throws RemoteException
addMessage
public void addMessage(String message)
throws RemoteException
getReminders
public String getReminders()
throws RemoteException
- Specified by:
getReminders in interface InfoManager
getCalendar
public Schedule getCalendar()
throws RemoteException
- Specified by:
getCalendar in interface InfoManager
addAppointment
public Vector addAppointment(Appointment a)
throws RemoteException
- Specified by:
addAppointment in interface InfoManager
setCalendar
public void setCalendar()
throws RemoteException
- Specified by:
setCalendar in interface InfoManager
getFirstName
public String getFirstName()
throws RemoteException
- Specified by:
getFirstName in interface InfoManager
setFirstName
public void setFirstName(String firstName)
throws RemoteException
- Specified by:
setFirstName in interface InfoManager
getLastName
public String getLastName()
throws RemoteException
- Specified by:
getLastName in interface InfoManager
setLastName
public void setLastName(String lastName)
throws RemoteException
- Specified by:
setLastName in interface InfoManager
getEmail
public String getEmail()
throws RemoteException
- Specified by:
getEmail in interface InfoManager
setEmail
public void setEmail(String email)
throws RemoteException
- Specified by:
setEmail in interface InfoManager
getURL
public String getURL()
throws RemoteException
- Specified by:
getURL in interface InfoManager
setURL
public void setURL(String url)
throws RemoteException
- Specified by:
setURL in interface InfoManager
getHomeNumber
public String getHomeNumber()
throws RemoteException
- Specified by:
getHomeNumber in interface InfoManager
setHomeNumber
public void setHomeNumber(String homeNumber)
throws RemoteException
- Specified by:
setHomeNumber in interface InfoManager
getOfficeNumber
public String getOfficeNumber()
throws RemoteException
- Specified by:
getOfficeNumber in interface InfoManager
setOfficeNumber
public void setOfficeNumber(String officeNumber)
throws RemoteException
- Specified by:
setOfficeNumber in interface InfoManager
getHomeAddress
public String getHomeAddress()
throws RemoteException
- Specified by:
getHomeAddress in interface InfoManager
setHomeAddress
public void setHomeAddress(String homeAddress)
throws RemoteException
- Specified by:
setHomeAddress in interface InfoManager
getOfficeAddress
public String getOfficeAddress()
throws RemoteException
- Specified by:
getOfficeAddress in interface InfoManager
setOfficeAddress
public void setOfficeAddress(String officeAddress)
throws RemoteException
- Specified by:
setOfficeAddress in interface InfoManager
getOther
public Object getOther(Object key)
throws RemoteException
- Specified by:
getOther in interface InfoManager
setOther
public void setOther(Object key,
Object value)
throws RemoteException
- Specified by:
setOther in interface InfoManager
signIn
public String signIn(String name)
throws RemoteException
- Specified by:
signIn in interface InfoManager
signOut
public void signOut(String name)
throws RemoteException
- Specified by:
signOut in interface InfoManager
webCall
public String webCall(Hashtable args)
throws RemoteException
- Specified by:
webCall in interface WebInterfaceable
killTable
public void killTable()
throws RemoteException
- Specified by:
killTable in interface InfoManager
getDateString
public static String getDateString(String name,
int value)
removeApp
public Vector removeApp(int index,
int number)
throws RemoteException
- Specified by:
removeApp in interface InfoManager
reminder
public String reminder(IMRecord imr)
throws RemoteException
reminder called by scheduler agent when reminder
is issued.
- Specified by:
reminder in interface InfoManager
- Parameters:
imr - an IMRecord the reminder message- Returns:
- a
String the string to be sent - Throws:
RemoteException - if an error occurs