zeus.agents
Class ACCAgent

java.lang.Object
  extended byzeus.agents.BasicAgent
      extended byzeus.agents.ACCAgent

public class ACCAgent
extends BasicAgent

The DFAgent is run to provide an IIOP ACC service for Zeus that uses FIPA addressing

Author:
Simon Thompson
See Also:
FIPA_AID_Address, zeus.actors.fipa.FIPA_Postman, zeus.actors.fipa.FIPA_Server, zeus.actors.fipa.Zeus_ACC_Server, zeus.actors.fipa.Zeus_ACC_Mailbox

Field Summary
protected  AgentContext context
           
static int CREATE
           
static int DEATH
           
private  HSet[] eventMonitor
           
static int RESUME
           
static int SUSPEND
           
 
Constructor Summary
ACCAgent(java.lang.String type, java.lang.String name, java.util.Vector nameservers)
           
ACCAgent(java.lang.String type, java.lang.String name, java.util.Vector nameservers, Clock clock)
           
 
Method Summary
 void addAgentMonitor(AgentMonitor monitor, long event_type)
          Add an AgentMonitor if your code needs to react to Agent-level changes in state
 void addMessageMonitor(MessageMonitor monitor, long event_type)
          Shortcut to add a MessageMonitor, used if your code needs to react to changes in the state of the mailbox
 AgentContext getAgentContext()
           
 void notifyMonitors(int type)
           
 void removeAgentMonitor(AgentMonitor monitor, long event_type)
           
 void removeMessageMonitor(MessageMonitor monitor, long event_type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventMonitor

private HSet[] eventMonitor

CREATE

public static final int CREATE
See Also:
Constant Field Values

DEATH

public static final int DEATH
See Also:
Constant Field Values

SUSPEND

public static final int SUSPEND
See Also:
Constant Field Values

RESUME

public static final int RESUME
See Also:
Constant Field Values

context

protected AgentContext context
Constructor Detail

ACCAgent

public ACCAgent(java.lang.String type,
                java.lang.String name,
                java.util.Vector nameservers)

ACCAgent

public ACCAgent(java.lang.String type,
                java.lang.String name,
                java.util.Vector nameservers,
                Clock clock)
Method Detail

getAgentContext

public AgentContext getAgentContext()
Overrides:
getAgentContext in class BasicAgent

addMessageMonitor

public void addMessageMonitor(MessageMonitor monitor,
                              long event_type)
Shortcut to add a MessageMonitor, used if your code needs to react to changes in the state of the mailbox

Overrides:
addMessageMonitor in class BasicAgent

removeMessageMonitor

public void removeMessageMonitor(MessageMonitor monitor,
                                 long event_type)
Overrides:
removeMessageMonitor in class BasicAgent

addAgentMonitor

public void addAgentMonitor(AgentMonitor monitor,
                            long event_type)
Add an AgentMonitor if your code needs to react to Agent-level changes in state

Overrides:
addAgentMonitor in class BasicAgent

removeAgentMonitor

public void removeAgentMonitor(AgentMonitor monitor,
                               long event_type)
Overrides:
removeAgentMonitor in class BasicAgent

notifyMonitors

public void notifyMonitors(int type)
Overrides:
notifyMonitors in class BasicAgent


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.