Package jadex.micro.examples.ping
Class PingingAgent
- java.lang.Object
- 
- jadex.micro.examples.ping.PingingAgent
 
- 
 public class PingingAgent extends java.lang.ObjectAgent that pings another and waits for its replies.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe micro agent class.protected intdifThe difference between sent messages and received replies.protected IComponentIdentifierreceiverThe receiver.protected java.util.Set<java.lang.String>sentHashset with conversation ids of sent messages.
 - 
Constructor SummaryConstructors Constructor Description PingingAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>executeBody()Execute the body.voidmessageArrived(java.util.Map<java.lang.String,java.lang.Object> msg)Called when a message arrives.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The micro agent class.
 - 
receiverprotected IComponentIdentifier receiver The receiver.
 - 
difprotected int dif The difference between sent messages and received replies.
 - 
sentprotected java.util.Set<java.lang.String> sent Hashset with conversation ids of sent messages.
 
- 
 - 
Method Detail- 
executeBodypublic IFuture<java.lang.Void> executeBody() Execute the body.
 - 
messageArrivedpublic void messageArrived(java.util.Map<java.lang.String,java.lang.Object> msg) Called when a message arrives.
 
- 
 
-