jade.domain
Class ams

java.lang.Object
  extended by jade.core.Agent
      extended by jade.domain.ams
All Implemented Interfaces:
TimerListener, java.io.Serializable, java.lang.Runnable

public class ams
extends Agent

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: 2011-07-11 11:10:03 +0200 (lun, 11 lug 2011) $ $Revision: 6423 $
Author:
Giovanni Rimassa - Universita' di Parma, Giovanni Caire - TILAB
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.Agent
Agent.Interrupted
 
Field Summary
static java.lang.String MAX_RESULTS
           
static java.lang.String PERIODIC_LOG_DELAY
           
 
Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS
 
Constructor Summary
ams(AgentManager ap)
          This constructor creates a new AMS agent.
 
Method Summary
 AMSEventQueueFeeder getQueueFeeder()
           
 void resetEvents(boolean sendSnapshot)
           
 void setQueueFeeder(AMSEventQueueFeeder feeder)
           
protected  void setup()
          AMS initialization
 
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, takeDown, waitUntilStarted, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERIODIC_LOG_DELAY

public static final java.lang.String PERIODIC_LOG_DELAY
See Also:
Constant Field Values

MAX_RESULTS

public static final java.lang.String MAX_RESULTS
See Also:
Constant Field Values
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
See Also:
Agent.addBehaviour(Behaviour b), Behaviour

resetEvents

public void resetEvents(boolean sendSnapshot)

setQueueFeeder

public void setQueueFeeder(AMSEventQueueFeeder feeder)

getQueueFeeder

public AMSEventQueueFeeder getQueueFeeder()