provided.client.view
Interface IModelAdapter


public interface IModelAdapter

Adapter the view uses to communicate to the model


Method Summary
 java.lang.String calcGetInfo(java.lang.String p)
          Gets the system information from the remote server by sending an entire GetInfo object to the remote server.
 java.lang.String calcPi(int numDigits)
          Calculates PI to the given number of decimal places by sending an entire Pi2 object to the remote ICompute object.
 java.lang.String connectTo(java.lang.String remoteHost)
          Requests that model connect to the RMI Registry at the given remote host
 void quit()
          Quits the applications and gracefully shuts down the RMI-related resources.
 

Method Detail

connectTo

java.lang.String connectTo(java.lang.String remoteHost)
Requests that model connect to the RMI Registry at the given remote host

Parameters:
remoteHost - The remote host to connect to.
Returns:
A status string regarding the connection result

calcPi

java.lang.String calcPi(int numDigits)
Calculates PI to the given number of decimal places by sending an entire Pi2 object to the remote ICompute object.

Parameters:
numDigits - The number of digits to compute PI to.
Returns:
A status string on the computation.

calcGetInfo

java.lang.String calcGetInfo(java.lang.String p)
Gets the system information from the remote server by sending an entire GetInfo object to the remote server.

Parameters:
p - A string passed to the GetInfo object to use as it pleases.
Returns:
A status string on the GetInfo task.

quit

void quit()
Quits the applications and gracefully shuts down the RMI-related resources.