|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.micro.MicroAgent
jadex.micro.examples.ping.PingingAgent
public class PingingAgent
Agent that pings another and waits for its replies.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jadex.micro.MicroAgent |
|---|
MicroAgent.TimerWrapper |
| Field Summary | |
|---|---|
protected int |
dif
The difference between sent messages and received replies. |
protected IComponentIdentifier |
receiver
The receiver. |
protected Set |
sent
Hashset with conversation ids of sent messages. |
| Fields inherited from class jadex.micro.MicroAgent |
|---|
interpreter, longtime, timers |
| Constructor Summary | |
|---|---|
PingingAgent()
|
|
| Method Summary | |
|---|---|
void |
executeBody()
Execute the body. |
static Object |
getMetaInfo()
Get the agent meta info. |
void |
messageArrived(Map msg,
MessageType mt)
Called when a message arrives. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IComponentIdentifier receiver
protected int dif
protected Set sent
| Constructor Detail |
|---|
public PingingAgent()
| Method Detail |
|---|
public void executeBody()
executeBody in interface IMicroAgentexecuteBody in class MicroAgent
public void messageArrived(Map msg,
MessageType mt)
messageArrived in interface IMicroAgentmessageArrived in class MicroAgentpublic static Object getMetaInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||