agentland.drug
Class TestAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.drug.TestAgent

public class TestAgent
extends AgentAgent
implements Test, Addict

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
TestAgent()
           
 
Method Summary
 Urgency drugNeed(Drug drug)
           
 void drugReplaced(Drug old_drug, Drug new_drug)
           
 void drugWithdrawn(Drug drug)
           
 void test()
           
 
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, 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
 

Constructor Detail

TestAgent

public TestAgent()
          throws RemoteException
Method Detail

test

public void test()
          throws RemoteException
Specified by:
test in interface Test

drugNeed

public Urgency drugNeed(Drug drug)
                 throws RemoteException
Specified by:
drugNeed in interface Addict

drugWithdrawn

public void drugWithdrawn(Drug drug)
                   throws RemoteException
Specified by:
drugWithdrawn in interface Addict

drugReplaced

public void drugReplaced(Drug old_drug,
                         Drug new_drug)
                  throws RemoteException
Specified by:
drugReplaced in interface Addict