|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.service.BasicService
jadex.micro.examples.remoteservice.MathService
public class MathService
Simple implementation of the math interface.
| Field Summary |
|---|
| Fields inherited from class jadex.commons.service.BasicService |
|---|
idcnt, properties, shutdowned, sid, started, startfutures |
| Fields inherited from interface jadex.commons.service.IService |
|---|
EMPTY_SERVICES |
| Constructor Summary | |
|---|---|
MathService(IServiceProvider provider)
Create a new add service. |
|
| Method Summary | |
|---|---|
int |
addB(int a,
int b)
Tests a blocking call (should be avoided!). |
IFuture |
addNB(int a,
int b)
Tests a non-blocking call. |
IFuture |
divZero()
Tests a method that throws an exception. |
double |
getPi()
Tests a constant call, i.e. call without parameters are assumed to be constant so that their value can be cached on local side. |
void |
printMessage(String message)
Print out some message. |
| Methods inherited from class jadex.commons.service.BasicService |
|---|
createServiceIdentifier, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, shutdownService, signalStarted, startService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.commons.service.IService |
|---|
getPropertyMap, getServiceIdentifier, signalStarted |
| Constructor Detail |
|---|
public MathService(IServiceProvider provider)
| Method Detail |
|---|
public IFuture addNB(int a,
int b)
addNB in interface IMathServicea - First number.b - Second number.
public int addB(int a,
int b)
addB in interface IMathServicea - First number.b - Second number.
public double getPi()
getPi in interface IMathServicepublic void printMessage(String message)
printMessage in interface IMathServicemessage - The message.public IFuture divZero()
divZero in interface IMathService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||