webfunds.sox
Interface Issuer

All Known Implementing Classes:
SimpleIssuer, SmartIssuer

public interface Issuer

This class is a "SOX Agent" that passes basic requests to the Issuer. It should be passive until requested (by calls to the methods below).


Method Summary
 void getReady()
          Do the things necessary for being ready for a request.
 long getTimeDeviation()
          A likely deviation.
 long getTimeDifference()
          Undefined how accurate it is.
 byte[] request(Request request)
          Issue a request.
 

Method Detail

getReady

public void getReady()
              throws SOXIssuerException,
                     SOXLaterException
Do the things necessary for being ready for a request. Optional, checked by request anyway, but might speed progress.

request

public byte[] request(Request request)
               throws SOXIssuerException,
                      SOXLaterException
Issue a request.
Returns:
the reply packet

getTimeDifference

public long getTimeDifference()
Undefined how accurate it is. When in doubt, return 0. to adjust, subtract this number from local time
Returns:
milliseconds local is ahead of the issuer

getTimeDeviation

public long getTimeDeviation()
A likely deviation. Add this number to latest times, subtract from earliest.
Returns:
milliseconds of possible inaccuracy