public class MathService extends jadex.bridge.service.BasicService implements IMathService
Constructor and Description |
---|
MathService(jadex.bridge.IComponentIdentifier cid)
Create a new add service.
|
Modifier and Type | Method and Description |
---|---|
int |
addB(int a,
int b)
Tests a blocking call (should be avoided!).
|
jadex.commons.future.IFuture<java.lang.Integer> |
addNB(int a,
int b)
Tests a non-blocking call.
|
jadex.commons.future.IFuture<java.lang.Void> |
divZero()
Tests a method that throws an exception.
|
double |
getPi()
Tests a constant call, i.e.
|
void |
printMessage(java.lang.String message)
Print out some message.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getInterfaceType, getInternalAccess, getMethodTimeout, getPropertyMap, getProviderId, getServiceIdentifier, hashCode, initNFProperties, isValid, setComponentAccess, setPropertyMap, shutdownService, startService, toString
public MathService(jadex.bridge.IComponentIdentifier cid)
public jadex.commons.future.IFuture<java.lang.Integer> addNB(int a, int b)
addNB
in interface IMathService
a
- First number.b
- Second number.public int addB(int a, int b)
addB
in interface IMathService
a
- First number.b
- Second number.public double getPi()
getPi
in interface IMathService
public void printMessage(java.lang.String message)
printMessage
in interface IMathService
message
- The message.public jadex.commons.future.IFuture<java.lang.Void> divZero()
divZero
in interface IMathService