agentland.drug
Interface NewDealer


public interface NewDealer
extends Agent


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 Drug requestHit(DrugRequest request)
          The ultimate method all requests go to.
 void setFilter(Filter filt, Drug drug)
          Lets an addict change the filter function with which we's asked for some drug we've given him.
 void setUrgency(Urgency urg, Drug drug)
          Lets an addict change the urgency with which he holds some drug we've given to him.
 Vector tuples()
          This returns a set of all the tuples that we could use, either because the tuples are 1-tuples of what we want, because they each contain a bunch of drugs we could piece together into a working logical unit, or both.
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 

Method Detail

requestHit

public Drug requestHit(DrugRequest request)
                throws RemoteException
The ultimate method all requests go to. Pretty simple - assembles a list of tuples of drugs we'd like, passes them on to the lord, and assembles whatever we get back for return to our addict.

setUrgency

public void setUrgency(Urgency urg,
                       Drug drug)
                throws RemoteException
Lets an addict change the urgency with which he holds some drug we've given to him.

setFilter

public void setFilter(Filter filt,
                      Drug drug)
               throws RemoteException
Lets an addict change the filter function with which we's asked for some drug we've given him.

tuples

public Vector tuples()
              throws RemoteException
This returns a set of all the tuples that we could use, either because the tuples are 1-tuples of what we want, because they each contain a bunch of drugs we could piece together into a working logical unit, or both.