jadex.micro.examples
Class CountingAgent
java.lang.Object
jadex.micro.MicroAgent
jadex.micro.examples.CountingAgent
- All Implemented Interfaces:
- IInternalAccess, IMicroAgent
public class CountingAgent
- extends MicroAgent
An agent that is counting to infinity.
Used to demonstrate "semantic" breakpoints.
|
Field Summary |
protected int |
cnt
The counter. |
| Methods inherited from class jadex.micro.MicroAgent |
addComponentListener, addDirectService, addService, agentCreated, agentKilled, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildren, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getModel, getParent, getServiceProvider, getTime, init, killAgent, killComponent, messageArrived, 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 |
cnt
protected int cnt
- The counter.
CountingAgent
public CountingAgent()
executeBody
public void executeBody()
- Execute a series of steps.
- Specified by:
executeBody in interface IMicroAgent- Overrides:
executeBody in class MicroAgent
isAtBreakpoint
public boolean isAtBreakpoint(String[] breakpoints)
- Return true, when a breakpoint was hit.
- Overrides:
isAtBreakpoint in class MicroAgent
getMetaInfo
public static Object getMetaInfo()
- Add the 'testresults' marking this agent as a testcase.
Copyright © 2010. All Rights Reserved.