jadex.micro.testcases
Class DFTestAgent

java.lang.Object
  extended by jadex.micro.MicroAgent
      extended by jadex.micro.testcases.DFTestAgent
All Implemented Interfaces:
IInternalAccess, IMicroAgent

public class DFTestAgent
extends MicroAgent

Test DF usage from micro agent.

Author:
Dirk, Alex

Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.micro.MicroAgent
MicroAgent.TimerWrapper
 
Field Summary
protected  List reports
          The reports of executed tests, used as result.
 
Fields inherited from class jadex.micro.MicroAgent
interpreter, longtime, timers
 
Constructor Summary
DFTestAgent()
           
 
Method Summary
 void agentKilled()
          Called when agent finishes.
 void executeBody()
          At startup register the agent at the DF.
static Object getMetaInfo()
          Add the 'testresults' marking this agent as a testcase.
 void messageArrived(Map msg, MessageType mt)
           
protected  void registerDF()
          Register the agent at the DF.
protected  void searchDF()
          Search for the agent at the DF.
 
Methods inherited from class jadex.micro.MicroAgent
addComponentListener, addDirectService, addService, agentCreated, 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

reports

protected List reports
The reports of executed tests, used as result.

Constructor Detail

DFTestAgent

public DFTestAgent()
Method Detail

executeBody

public void executeBody()
At startup register the agent at the DF.

Specified by:
executeBody in interface IMicroAgent
Overrides:
executeBody in class MicroAgent

agentKilled

public void agentKilled()
Called when agent finishes.

Specified by:
agentKilled in interface IMicroAgent
Overrides:
agentKilled in class MicroAgent

registerDF

protected void registerDF()
Register the agent at the DF.


searchDF

protected void searchDF()
Search for the agent at the DF.


messageArrived

public void messageArrived(Map msg,
                           MessageType mt)
Specified by:
messageArrived in interface IMicroAgent
Overrides:
messageArrived in class MicroAgent

getMetaInfo

public static Object getMetaInfo()
Add the 'testresults' marking this agent as a testcase.



Copyright © 2010. All Rights Reserved.