|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jadex.micro.MicroAgent test.jadex.ControlAgent
public class ControlAgent
Agent that pings another and waits for its replies.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jadex.micro.MicroAgent |
---|
jadex.micro.MicroAgent.TimerWrapper |
Field Summary | |
---|---|
protected Board |
board
Blackboard |
protected int |
dif
The difference between sent messages and received replies. |
protected jadex.bridge.IComponentIdentifier |
receiver
The receiver. |
protected java.util.Set |
sent
Hashset with conversation ids of sent messages. |
Fields inherited from class jadex.micro.MicroAgent |
---|
interpreter, longtime, timers |
Constructor Summary | |
---|---|
ControlAgent()
|
Method Summary | |
---|---|
void |
agentCreated()
|
void |
agentKilled()
|
void |
executeBody()
Execute the body. |
static java.lang.Object |
getMetaInfo()
Get the agent meta info. |
void |
messageArrived(java.util.Map msg,
jadex.bridge.MessageType mt)
Called when a message arrives. |
Methods inherited from class jadex.micro.MicroAgent |
---|
addComponentListener, addDirectService, addService, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildren, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getModel, getParent, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, killComponent, removeComponentListener, removeService, scheduleStep, sendMessage, setResultValue, waitFor, waitForTick |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected jadex.bridge.IComponentIdentifier receiver
protected int dif
protected java.util.Set sent
protected Board board
Constructor Detail |
---|
public ControlAgent()
Method Detail |
---|
public void agentCreated()
agentCreated
in interface jadex.micro.IMicroAgent
agentCreated
in class jadex.micro.MicroAgent
public void executeBody()
executeBody
in interface jadex.micro.IMicroAgent
executeBody
in class jadex.micro.MicroAgent
public void messageArrived(java.util.Map msg, jadex.bridge.MessageType mt)
messageArrived
in interface jadex.micro.IMicroAgent
messageArrived
in class jadex.micro.MicroAgent
public void agentKilled()
agentKilled
in interface jadex.micro.IMicroAgent
agentKilled
in class jadex.micro.MicroAgent
public static java.lang.Object getMetaInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |