gov.sns.tools.services.samples
Interface Greeting

All Known Implementing Classes:
GreetingService

public interface Greeting

Greeting is a sample service demonstrating a simple interface that can be served using the ServiceDirectory.


Method Summary
 double add(double x, double y)
          Add two numbers and return the result.
 java.lang.String sayHelloTo(java.lang.String receiver)
          Generate a greeting incorporating the receiver.
 

Method Detail

sayHelloTo

public java.lang.String sayHelloTo(java.lang.String receiver)
Generate a greeting incorporating the receiver.

Parameters:
receiver - The receiver to address in the greeting.
Returns:
A greeting.

add

public double add(double x,
                  double y)
Add two numbers and return the result.

Parameters:
x - An addend
y - An augend
Returns:
The sum of x and y.