public class MultiServiceAgent extends MicroAgent implements IAddService, ISubService
MicroAgent.ExecuteWaitForStep| Constructor and Description |
|---|
MultiServiceAgent() |
| Modifier and Type | Method and Description |
|---|---|
IFuture |
add(double a,
double b)
Add two numbers.
|
IFuture<Void> |
executeBody()
Search for the two services and check if they work as expected.
|
IFuture |
sub(double a,
double b)
Subtract two numbers.
|
addComponentListener, addMessageHandler, addService, addService, agentCreated, agentKilled, createReply, createResultListener, createResultListener, createServiceContainer, getAgentAdapter, getAgentName, getArgument, getArguments, getChildrenAccesses, getChildrenIdentifiers, getClassLoader, getComponentAdapter, getComponentDescription, getComponentIdentifier, getConfiguration, getExternalAccess, getFetcher, getInterpreter, getLogger, getModel, getParentAccess, getProperty, getRawService, getRawService, getRawServices, getRequiredService, getRequiredServices, getResults, getServiceContainer, getServiceProvider, getTime, init, isAtBreakpoint, isComponentThread, killAgent, killComponent, messageArrived, removeComponentListener, removeMessageHandler, removeService, scheduleStep, sendMessage, sendMessage, sendMessageAndWait, setResultValue, streamArrived, waitFor, waitForDelay, waitForTickpublic IFuture<Void> executeBody()
executeBody in interface IMicroAgentexecuteBody in class MicroAgentpublic IFuture add(double a, double b)
add in interface IAddServicea - Number one.b - Number two.public IFuture sub(double a, double b)
sub in interface ISubServicea - Number one.b - Number two.Copyright © 2012. All Rights Reserved.