agentland.drug
Class DealerEHA
java.lang.Object
|
+--agentland.drug.DealerEHA
- public class DealerEHA
- extends Object
- implements ExceptionHandler, Dealer, Good, Addict
Method Summary |
void |
addMonitor(Spy param0)
Add a log monitor that gets all the screen output. |
boolean |
alive()
|
boolean |
connect(AgentID param0,
AgentID param1)
|
boolean |
connect(Drug param0,
Drug param1)
|
Urgency |
drugNeed(Drug param0)
|
void |
drugReplaced(Drug param0,
Drug param1)
|
void |
drugWithdrawn(Drug param0)
|
Agent |
getAgent()
get the internal stub used. |
AgentID |
getAgentID()
|
AgentID |
getAgtID()
get the internal agentID used. |
Vector |
getHistory()
|
String |
getHistoryElement(int param0)
|
Vector |
getMenu()
Return list of all drugs managed by this dealer. |
AgentID |
getMetaglueAgentID()
|
void |
instantiate(Agent a)
|
void |
replaceExceptionHandler(AgentExceptionHandler r)
|
Drug |
requestHit(Drug param0,
Urgency param1,
AgentID param2)
|
Drug |
requestHit(Drug param0,
Urgency param1,
AgentID param2,
Filter param3)
|
Drug |
requestHit(Urgency param0,
AgentID param1)
|
Drug |
requestHit(Urgency param0,
AgentID param1,
Filter param2)
|
void |
resetHistory()
|
void |
setAgent(Agent a)
set the internal stub used to passed agent. |
void |
setAgtID(AgentID a)
set the internal agentID used to passed agent. |
void |
shutdown()
|
void |
startup()
|
void |
tell(Secret param0)
This is called if the Agent is to recieve a particular
secret. |
InetAddress |
whereAreYou()
Returns the InetAddress of the machine where the agent is
running |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DealerEHA
public DealerEHA(MetagluePrimitives ap,
AgentID agentID,
Catalog c)
throws RemoteException
getAgent
public Agent getAgent()
- Description copied from interface: ExceptionHandler
- get the internal stub used.
(Used for resource management interception)
- Specified by:
- getAgent in interface ExceptionHandler
setAgent
public void setAgent(Agent a)
- Description copied from interface: ExceptionHandler
- set the internal stub used to passed agent.
(Used for resource management interception)
- Specified by:
- setAgent in interface ExceptionHandler
getAgtID
public AgentID getAgtID()
- Description copied from interface: ExceptionHandler
- get the internal agentID used.
(Used for resource management interception)
- Specified by:
- getAgtID in interface ExceptionHandler
setAgtID
public void setAgtID(AgentID a)
- Description copied from interface: ExceptionHandler
- set the internal agentID used to passed agent.
(Used for resource management interception)
- Specified by:
- setAgtID in interface ExceptionHandler
instantiate
public void instantiate(Agent a)
- Specified by:
- instantiate in interface ExceptionHandler
replaceExceptionHandler
public void replaceExceptionHandler(AgentExceptionHandler r)
- Specified by:
- replaceExceptionHandler in interface ExceptionHandler
drugNeed
public Urgency drugNeed(Drug param0)
throws RemoteException
- Specified by:
- drugNeed in interface Addict
drugReplaced
public void drugReplaced(Drug param0,
Drug param1)
throws RemoteException
- Specified by:
- drugReplaced in interface Addict
drugWithdrawn
public void drugWithdrawn(Drug param0)
throws RemoteException
- Specified by:
- drugWithdrawn in interface Addict
tell
public void tell(Secret param0)
throws RemoteException
- Description copied from interface: Spy
- This is called if the Agent is to recieve a particular
secret.
addMonitor
public void addMonitor(Spy param0)
throws RemoteException
- Description copied from interface: Agent
- Add a log monitor that gets all the screen output.
alive
public boolean alive()
throws RemoteException
getAgentID
public AgentID getAgentID()
getMetaglueAgentID
public AgentID getMetaglueAgentID()
throws RemoteException
shutdown
public void shutdown()
throws RemoteException
startup
public void startup()
throws RemoteException
whereAreYou
public InetAddress whereAreYou()
throws RemoteException
- Description copied from interface: Agent
- Returns the InetAddress of the machine where the agent is
running
getHistory
public Vector getHistory()
throws RemoteException
- Specified by:
- getHistory in interface Good
getHistoryElement
public String getHistoryElement(int param0)
throws RemoteException
- Specified by:
- getHistoryElement in interface Good
resetHistory
public void resetHistory()
throws RemoteException
- Specified by:
- resetHistory in interface Good
connect
public boolean connect(Drug param0,
Drug param1)
throws RemoteException
- Specified by:
- connect in interface Dealer
connect
public boolean connect(AgentID param0,
AgentID param1)
throws RemoteException
- Specified by:
- connect in interface Dealer
getMenu
public Vector getMenu()
throws RemoteException
- Description copied from interface: Dealer
- Return list of all drugs managed by this dealer.
- Specified by:
- getMenu in interface Dealer
requestHit
public Drug requestHit(Drug param0,
Urgency param1,
AgentID param2)
throws RemoteException
- Specified by:
- requestHit in interface Dealer
requestHit
public Drug requestHit(Drug param0,
Urgency param1,
AgentID param2,
Filter param3)
throws RemoteException
- Specified by:
- requestHit in interface Dealer
requestHit
public Drug requestHit(Urgency param0,
AgentID param1)
throws RemoteException
- Specified by:
- requestHit in interface Dealer
requestHit
public Drug requestHit(Urgency param0,
AgentID param1,
Filter param2)
throws RemoteException
- Specified by:
- requestHit in interface Dealer