Package xal.service.worker
Interface Working
- All Known Implementing Classes:
WorkService
public interface Working
Demo service interface.
- Author:
- tap
-
Method Summary
Modifier and TypeMethodDescriptiondouble
add
(double summand, double addend) add two numbersdouble[]
generateSinusoid
(double amplitude, double frequency, double phase, int numPoints) calculate the sinusoid waveform from zero to 2piget the launch timesayHelloTo
(String name) say hello to the person with the specified namevoid
shutdown
(int code) shutdown the serviceint
sumIntegers
(int[] summands) add an array of integers and return the sum
-
Method Details
-
add
double add(double summand, double addend) add two numbers -
sumIntegers
int sumIntegers(int[] summands) add an array of integers and return the sum -
getLaunchTime
Date getLaunchTime()get the launch time -
generateSinusoid
double[] generateSinusoid(double amplitude, double frequency, double phase, int numPoints) calculate the sinusoid waveform from zero to 2pi -
sayHelloTo
say hello to the person with the specified name -
shutdown
void shutdown(int code) shutdown the service
-