Package jade.domain
Class ams
- java.lang.Object
-
- jade.core.Agent
-
- jade.domain.ams
-
- All Implemented Interfaces:
TimerListener,Serializable,Serializable,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$ $Revision$
- 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
Fields Modifier and Type Field Description static StringKEEP_NOTIFY_ON_SHUTDOWNstatic StringMAX_RESULTSstatic StringPERIODIC_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
Constructors Constructor Description ams(AgentManager ap)This constructor creates a new AMS agent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AMSEventQueueFeedergetQueueFeeder()voidresetEvents(boolean sendSnapshot)voidsetQueueFeeder(AMSEventQueueFeeder feeder)protected voidsetup()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, getAID, getAMS, getArguments, getBehavioursCnt, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getExecutedBehavioursCnt, getGenerateBehaviourEvents, getGenerateMessageEvents, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getPostedMessagesCnt, getProperty, getQueueSize, getReceivedMessagesCnt, getSentMessagesCnt, getState, here, isAlive, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restoreBufferedState, restoreFields, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setGenerateMessageEvents, setO2AManager, setQueueSize, takeDown, waitUntilStarted, write
-
-
-
-
Field Detail
-
PERIODIC_LOG_DELAY
public static final String PERIODIC_LOG_DELAY
- See Also:
- Constant Field Values
-
MAX_RESULTS
public static final String MAX_RESULTS
- See Also:
- Constant Field Values
-
KEEP_NOTIFY_ON_SHUTDOWN
public static final String KEEP_NOTIFY_ON_SHUTDOWN
- 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:
setupin classAgent- See Also:
Agent.addBehaviour(Behaviour b),Behaviour
-
resetEvents
public void resetEvents(boolean sendSnapshot)
-
setQueueFeeder
public void setQueueFeeder(AMSEventQueueFeeder feeder)
-
getQueueFeeder
public AMSEventQueueFeeder getQueueFeeder()
-
-