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

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
static String dbname
           
 
Fields inherited from class agentland.resource.ManagedAgent
rm, society
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
InfoManagerAgent()
           
InfoManagerAgent(String who)
           
 
Method Summary
 Vector addAppointment(Appointment a)
           
 void addMessage(String message)
           
 int addPerson(String name)
           
 Schedule getCalendar()
           
static String getDateString(String name, int value)
           
 String getEmail()
           
 String getFirstName()
           
 String getHomeAddress()
           
 String getHomeNumber()
           
 String getLastName()
           
 String getMessages()
           
 String getName()
           
 String getOfficeAddress()
           
 String getOfficeNumber()
           
 Object getOther(Object key)
           
 String getReminders()
           
 String getURL()
           
 void killTable()
           
 String reminder(IMRecord imr)
          reminder called by scheduler agent when reminder is issued.
 Vector removeApp(int index, int number)
           
 int removePerson(String name)
           
 void setCalendar()
           
 void setEmail(String email)
           
 void setFirstName(String firstName)
           
 void setHomeAddress(String homeAddress)
           
 void setHomeNumber(String homeNumber)
           
 void setLastName(String lastName)
           
 void setOfficeAddress(String officeAddress)
           
 void setOfficeNumber(String officeNumber)
           
 void setOther(Object key, Object value)
           
 void setURL(String url)
           
 String signIn(String name)
           
 void signOut(String name)
           
 String webCall(Hashtable args)
           
 
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 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 agentland.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Field Detail

dbname

public static final String dbname
Constructor Detail

InfoManagerAgent

public InfoManagerAgent()
                 throws RemoteException

InfoManagerAgent

public InfoManagerAgent(String who)
                 throws RemoteException
Method Detail

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