agentland.info
Class PhoneDatabaseAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.info.PhoneDatabaseAgent
All Implemented Interfaces:
Agent, MetagluePrimitives, PhoneDatabase, Remote, Serializable

public class PhoneDatabaseAgent
extends AgentAgent
implements PhoneDatabase

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
PhoneDatabaseAgent()
           
 
Method Summary
 void addPerson(PersonInfo pi)
           
 void addPerson(String fname, String mname, String lname, String em, String hphone, String ophone, String add)
           
 void clearPM()
           
 void deletePerson(String name)
           
 void fillMap()
           
 Vector getName(String phoneNumber)
           
 Vector getPhoneNumber(String name)
           
 Vector listNames()
           
 void showPM()
           
 
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
 
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 metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 

Constructor Detail

PhoneDatabaseAgent

public PhoneDatabaseAgent()
                   throws RemoteException
Method Detail

showPM

public void showPM()
            throws RemoteException
Specified by:
showPM in interface PhoneDatabase

clearPM

public void clearPM()
             throws RemoteException
Specified by:
clearPM in interface PhoneDatabase

fillMap

public void fillMap()
             throws RemoteException
Specified by:
fillMap in interface PhoneDatabase

getPhoneNumber

public Vector getPhoneNumber(String name)
                      throws RemoteException
Specified by:
getPhoneNumber in interface PhoneDatabase

getName

public Vector getName(String phoneNumber)
               throws RemoteException
Specified by:
getName in interface PhoneDatabase

addPerson

public void addPerson(String fname,
                      String mname,
                      String lname,
                      String em,
                      String hphone,
                      String ophone,
                      String add)
               throws RemoteException
Specified by:
addPerson in interface PhoneDatabase

addPerson

public void addPerson(PersonInfo pi)
               throws RemoteException
Specified by:
addPerson in interface PhoneDatabase

deletePerson

public void deletePerson(String name)
                  throws RemoteException
Specified by:
deletePerson in interface PhoneDatabase

listNames

public Vector listNames()
                 throws RemoteException
Specified by:
listNames in interface PhoneDatabase