Package jadex.micro.benchmarks
Class MessagePerformanceAgent
- java.lang.Object
- 
- jadex.micro.benchmarks.MessagePerformanceAgent
 
- 
 public class MessagePerformanceAgent extends java.lang.ObjectTest message performance.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected intcurrentThe current message number sent.protected Future<java.lang.Void>futureThe future for terminating.protected intreceivedThe received messages.protected longstarttimeThe start time.
 - 
Constructor SummaryConstructors Constructor Description MessagePerformanceAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>agentCreated()Called once after agent creation.IFuture<java.lang.Void>executeBody()Execute an agent step.protected IFuture<IComponentIdentifier>getTarget(boolean auto, IComponentIdentifier def)Get the component identifier for sending.IFuture<java.lang.Long>getTime()Get the time.voidmessageArrived(java.util.Map<java.lang.String,java.lang.Object> msg)Called on message arrival.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
receivedprotected int received The received messages.
 - 
starttimeprotected long starttime The start time.
 - 
currentprotected int current The current message number sent.
 - 
futureprotected Future<java.lang.Void> future The future for terminating.
 
- 
 - 
Method Detail- 
agentCreatedpublic IFuture<java.lang.Void> agentCreated() Called once after agent creation.
 - 
executeBodypublic IFuture<java.lang.Void> executeBody() Execute an agent step.
 - 
getTargetprotected IFuture<IComponentIdentifier> getTarget(boolean auto, IComponentIdentifier def) Get the component identifier for sending.
 - 
messageArrivedpublic void messageArrived(java.util.Map<java.lang.String,java.lang.Object> msg) Called on message arrival.
 - 
getTimepublic IFuture<java.lang.Long> getTime() Get the time.
 
- 
 
-