jadex.micro.examples.remoteservice
Interface IMathService

All Superinterfaces:
IRemotable, IService
All Known Implementing Classes:
MathService

public interface IMathService
extends IService

Simple interface for a component service.


Field Summary
 
Fields inherited from interface jadex.commons.service.IService
EMPTY_SERVICES
 
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)
          Tests a void message call (default is asynchronous).
 
Methods inherited from interface jadex.commons.service.IService
getPropertyMap, getServiceIdentifier, signalStarted
 

Method Detail

addNB

IFuture addNB(int a,
              int b)
Tests a non-blocking call. Add two numbers.

Parameters:
a - First number.
b - Second number.
Returns:
Future that will deliver the sum of a and b.

addB

int addB(int a,
         int b)
Tests a blocking call (should be avoided!). Add two numbers.

Parameters:
a - First number.
b - Second number.
Returns:
The sum of a and b.

getPi

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. Get the PI value.


printMessage

void printMessage(String message)
Tests a void message call (default is asynchronous). Print out some message.

Parameters:
message - The message.

divZero

IFuture divZero()
Tests a method that throws an exception. Does a divide by zero operation and causes an exception.



Copyright © 2010. All Rights Reserved.