Package jadex.micro.examples.ping
Class PingingAgent
- java.lang.Object
-
- jadex.micro.examples.ping.PingingAgent
-
public class PingingAgent extends java.lang.Object
Agent that pings another and waits for its replies.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The micro agent class.protected int
dif
The difference between sent messages and received replies.protected IComponentIdentifier
receiver
The receiver.protected java.util.Set<java.lang.String>
sent
Hashset with conversation ids of sent messages.
-
Constructor Summary
Constructors Constructor Description PingingAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
executeBody()
Execute the body.void
messageArrived(java.util.Map<java.lang.String,java.lang.Object> msg)
Called when a message arrives.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The micro agent class.
-
receiver
protected IComponentIdentifier receiver
The receiver.
-
dif
protected int dif
The difference between sent messages and received replies.
-
sent
protected java.util.Set<java.lang.String> sent
Hashset with conversation ids of sent messages.
-
-
Method Detail
-
executeBody
public IFuture<java.lang.Void> executeBody()
Execute the body.
-
messageArrived
public void messageArrived(java.util.Map<java.lang.String,java.lang.Object> msg)
Called when a message arrives.
-
-