test.jadex
Class ControlAgent

java.lang.Object
  extended by jadex.micro.MicroAgent
      extended by test.jadex.ControlAgent
All Implemented Interfaces:
jadex.bridge.IInternalAccess, jadex.micro.IMicroAgent

public class ControlAgent
extends jadex.micro.MicroAgent

Agent that pings another and waits for its replies.


Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.micro.MicroAgent
jadex.micro.MicroAgent.TimerWrapper
 
Field Summary
protected  Board board
          Blackboard
protected  int dif
          The difference between sent messages and received replies.
protected  jadex.bridge.IComponentIdentifier receiver
          The receiver.
protected  java.util.Set sent
          Hashset with conversation ids of sent messages.
 
Fields inherited from class jadex.micro.MicroAgent
interpreter, longtime, timers
 
Constructor Summary
ControlAgent()
           
 
Method Summary
 void agentCreated()
           
 void agentKilled()
           
 void executeBody()
          Execute the body.
static java.lang.Object getMetaInfo()
          Get the agent meta info.
 void messageArrived(java.util.Map msg, jadex.bridge.MessageType mt)
          Called when a message arrives.
 
Methods inherited from class jadex.micro.MicroAgent
addComponentListener, addDirectService, addService, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildren, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getModel, getParent, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, killComponent, removeComponentListener, removeService, scheduleStep, sendMessage, setResultValue, waitFor, waitForTick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

receiver

protected jadex.bridge.IComponentIdentifier receiver
The receiver.


dif

protected int dif
The difference between sent messages and received replies.


sent

protected java.util.Set sent
Hashset with conversation ids of sent messages.


board

protected Board board
Blackboard

Constructor Detail

ControlAgent

public ControlAgent()
Method Detail

agentCreated

public void agentCreated()
Specified by:
agentCreated in interface jadex.micro.IMicroAgent
Overrides:
agentCreated in class jadex.micro.MicroAgent

executeBody

public void executeBody()
Execute the body.

Specified by:
executeBody in interface jadex.micro.IMicroAgent
Overrides:
executeBody in class jadex.micro.MicroAgent

messageArrived

public void messageArrived(java.util.Map msg,
                           jadex.bridge.MessageType mt)
Called when a message arrives.

Specified by:
messageArrived in interface jadex.micro.IMicroAgent
Overrides:
messageArrived in class jadex.micro.MicroAgent

agentKilled

public void agentKilled()
Specified by:
agentKilled in interface jadex.micro.IMicroAgent
Overrides:
agentKilled in class jadex.micro.MicroAgent

getMetaInfo

public static java.lang.Object getMetaInfo()
Get the agent meta info.