public abstract class EnsembleAgent extends jade.core.Agent implements LifeCycle, RouterClient
| Modifier and Type | Class and Description |
|---|---|
private class |
EnsembleAgent.ReceiveCommand
The Class ReceiveCommand.
|
| Modifier and Type | Field and Description |
|---|---|
private VirtualClockHelper |
clock
Clock Service.
|
protected boolean |
isBatch
Router Service.
|
protected Parameters |
parameters
Agent Parameters.
|
private EnsembleAgent.ReceiveCommand |
rcvCmdBehavior
The rcv cmd behavior.
|
(package private) jade.core.behaviours.ThreadedBehaviourFactory |
tbf
The tbf.
|
| Constructor and Description |
|---|
EnsembleAgent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure()
User-implemented method that configures the component, setting up user parameters and essential properties.
|
boolean |
finit()
User-implemented finalization method, called by stop().
|
java.lang.String |
getAddress()
Returns this component framework address.
|
EnsembleAgent |
getAgent()
Gets agent's name.
|
java.lang.String |
getAgentName()
Gets agent's name.
|
VirtualClockHelper |
getClock()
Clock getter.
|
java.lang.String |
getParameter(java.lang.String key)
Gets the parameter.
|
java.lang.String |
getParameter(java.lang.String key,
java.lang.String defaultValue)
Gets the parameter.
|
Parameters |
getParameters()
Parameters getter.
|
boolean |
init()
User-implemented initialization method, called by start().
|
boolean |
parameterUpdate(java.lang.String name,
java.lang.String newValue)
User-implement method called when a parameter has been updated.
|
void |
processCommand(Command cmd)
An user-implemented method to process a received command.
|
void |
sendCommand(Command cmd)
A framework-implemented method that sends a command to its destination, via RouterAgent if the recipient is another agent.
|
void |
setParameters(Parameters parameters)
Parameters setter.
|
protected void |
setup()
Initialization method called by JADE.
|
protected void |
takeDown()
Finalization method called by JADE.
|
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, getO2AObject, getProperty, getQueueSize, getState, here, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, removeTimer, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setO2AManager, setQueueSize, waitUntilStarted, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreceiveCommandjade.core.behaviours.ThreadedBehaviourFactory tbf
private EnsembleAgent.ReceiveCommand rcvCmdBehavior
protected Parameters parameters
private VirtualClockHelper clock
protected boolean isBatch
public final Parameters getParameters()
getParameters in interface LifeCyclepublic final void setParameters(Parameters parameters)
setParameters in interface LifeCycleparameters - the new parameterspublic final java.lang.String getParameter(java.lang.String key)
key - the keypublic final java.lang.String getParameter(java.lang.String key,
java.lang.String defaultValue)
key - the keydefaultValue - the default valuepublic final EnsembleAgent getAgent()
public final java.lang.String getAgentName()
public final VirtualClockHelper getClock()
protected void setup()
setup in class jade.core.Agentprotected void takeDown()
takeDown in class jade.core.Agentpublic final java.lang.String getAddress()
RouterClientgetAddress in interface RouterClientpublic final void sendCommand(Command cmd)
RouterClientsendCommand in interface RouterClientcmd - the cmdpublic boolean configure()
LifeCyclepublic boolean init()
LifeCyclepublic boolean finit()
LifeCyclepublic boolean parameterUpdate(java.lang.String name,
java.lang.String newValue)
LifeCycleparameterUpdate in interface LifeCyclename - the namenewValue - the new valuepublic void processCommand(Command cmd)
RouterClientprocessCommand in interface RouterClientcmd - the cmd