Class WorkService

java.lang.Object
xal.service.worker.WorkService
All Implemented Interfaces:
Working

public class WorkService extends Object implements Working
Demo service providing demo work.
Author:
tap
  • Constructor Details

    • WorkService

      public WorkService()
  • Method Details

    • add

      public double add(double summand, double addend)
      add two numbers
      Specified by:
      add in interface Working
    • sumIntegers

      public int sumIntegers(int[] summands)
      add the integers and return the resulting sum
      Specified by:
      sumIntegers in interface Working
    • getLaunchTime

      public Date getLaunchTime()
      get the launch time
      Specified by:
      getLaunchTime in interface Working
    • generateSinusoid

      public double[] generateSinusoid(double amplitude, double frequency, double phase, int numPoints)
      calculate the sinusoid waveform from zero to 2pi
      Specified by:
      generateSinusoid in interface Working
    • sayHelloTo

      public String sayHelloTo(String name)
      say hello to the person with the specified name
      Specified by:
      sayHelloTo in interface Working
    • shutdown

      public void shutdown(int code)
      shutdown the service
      Specified by:
      shutdown in interface Working