Package jadex.micro.benchmarks
Class MessagePerformanceAgent
- java.lang.Object
-
- jadex.micro.benchmarks.MessagePerformanceAgent
-
public class MessagePerformanceAgent extends java.lang.Object
Test message performance.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected int
current
The current message number sent.protected Future<java.lang.Void>
future
The future for terminating.protected int
received
The received messages.protected long
starttime
The start time.
-
Constructor Summary
Constructors Constructor Description MessagePerformanceAgent()
-
Method Summary
All 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.void
messageArrived(java.util.Map<java.lang.String,java.lang.Object> msg)
Called on message arrival.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
received
protected int received
The received messages.
-
starttime
protected long starttime
The start time.
-
current
protected int current
The current message number sent.
-
future
protected Future<java.lang.Void> future
The future for terminating.
-
-
Method Detail
-
agentCreated
public IFuture<java.lang.Void> agentCreated()
Called once after agent creation.
-
executeBody
public IFuture<java.lang.Void> executeBody()
Execute an agent step.
-
getTarget
protected IFuture<IComponentIdentifier> getTarget(boolean auto, IComponentIdentifier def)
Get the component identifier for sending.
-
messageArrived
public void messageArrived(java.util.Map<java.lang.String,java.lang.Object> msg)
Called on message arrival.
-
getTime
public IFuture<java.lang.Long> getTime()
Get the time.
-
-