|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
java.lang.String connectTo(java.lang.String remoteHost)
remoteHost
- The remote host to connect to.
java.lang.String calcPi(int numDigits)
numDigits
- The number of digits to compute PI to.
java.lang.String calcGetInfo(java.lang.String p)
p
- A string passed to the GetInfo object to use as it pleases.
void quit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |