jade.domain
Class ams

java.lang.Object
  |
  +--jade.core.Agent
        |
        +--jade.domain.ams

public class ams
extends Agent
implements AgentManager.Listener

Standard Agent Management System agent. This class implements FIPA AMS agent. JADE applications cannot use this class directly, but interact with it through ACL message passing.

Version:
$Date: 2003/02/24 15:01:31 $ $Revision: 2.78 $
Author:
Giovanni Rimassa - Universita` di Parma, Giovanni Caire - TILAB
See Also:
Serialized Form

Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_TRANSIT, AP_WAITING, currentBehaviour, currentMessage, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN
 
Constructor Summary
ams(AgentManager ap)
          This constructor creates a new AMS agent.
 
Method Summary
 void addedContainer(PlatformEvent ev)
          Put an AddedContainer event in the AMS event queue
 void addedMTP(MTPEvent ev)
          Put a AddedMTP event in the AMS event queue
 void bornAgent(PlatformEvent ev)
          Put a BornAgent event in the AMS event queue
 void changedAgentPrincipal(PlatformEvent ev)
          Put a ChangedAgentOwnership event in the AMS event queue
 void changedContainerPrincipal(PlatformEvent ev)
          Put a XXX event in the AMS event queue
 void deadAgent(PlatformEvent ev)
          Put a DeadAgent event in the AMS event queue
 jade.security.Authority getAuthority()
          Redefine the getAuthority() method to return the platform main authority
 void messageIn(MTPEvent ev)
           
 void messageOut(MTPEvent ev)
           
 void movedAgent(PlatformEvent ev)
          Put a MovedAgent event in the AMS event queue
 void removedContainer(PlatformEvent ev)
          Put a RemovedContainer event in the AMS event queue
 void removedMTP(MTPEvent ev)
          Put a RemovedMTP event in the AMS event queue
 void resumedAgent(PlatformEvent ev)
          Put a ResumedAgent event in the AMS event queue
protected  void setup()
          AMS initialization
 void suspendedAgent(PlatformEvent ev)
          Put a SuspendedAgent event in the AMS event queue
 
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, doActivate, doClone, doDelete, doMove, doStart, doSuspend, doTimeOut, doWait, doWait, doWake, extractPassword, extractUsername, getAID, getAMS, getArguments, getCertificateFolder, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getLocalName, getName, getO2AObject, getPrincipal, getProperty, getQueueSize, getState, here, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, read, read, receive, receive, removeBehaviour, restartLater, restore, run, send, setArguments, setEnabledO2ACommunication, setOwnership, setPrincipal, setQueueSize, takeDown, waitUntilStarted, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ams

public ams(AgentManager ap)
This constructor creates a new AMS agent. Since a direct reference to an Agent Platform implementation must be passed to it, this constructor cannot be called from application code. Therefore, no other AMS agent can be created beyond the default one.
Method Detail

setup

protected void setup()
AMS initialization
Overrides:
setup in class Agent
Tags copied from class: Agent
See Also:
Agent.addBehaviour(Behaviour b), Behaviour

bornAgent

public void bornAgent(PlatformEvent ev)
Put a BornAgent event in the AMS event queue

deadAgent

public void deadAgent(PlatformEvent ev)
Put a DeadAgent event in the AMS event queue

suspendedAgent

public void suspendedAgent(PlatformEvent ev)
Put a SuspendedAgent event in the AMS event queue

resumedAgent

public void resumedAgent(PlatformEvent ev)
Put a ResumedAgent event in the AMS event queue

movedAgent

public void movedAgent(PlatformEvent ev)
Put a MovedAgent event in the AMS event queue

changedAgentPrincipal

public void changedAgentPrincipal(PlatformEvent ev)
Put a ChangedAgentOwnership event in the AMS event queue

addedContainer

public void addedContainer(PlatformEvent ev)
Put an AddedContainer event in the AMS event queue

removedContainer

public void removedContainer(PlatformEvent ev)
Put a RemovedContainer event in the AMS event queue

changedContainerPrincipal

public void changedContainerPrincipal(PlatformEvent ev)
Put a XXX event in the AMS event queue

addedMTP

public void addedMTP(MTPEvent ev)
Put a AddedMTP event in the AMS event queue

removedMTP

public void removedMTP(MTPEvent ev)
Put a RemovedMTP event in the AMS event queue

messageIn

public void messageIn(MTPEvent ev)

messageOut

public void messageOut(MTPEvent ev)

getAuthority

public jade.security.Authority getAuthority()
Redefine the getAuthority() method to return the platform main authority
Overrides:
getAuthority in class Agent