An Example of Layers (cont) The final result needed is to cast the selected data to the class required for model fitting (an S data frame, in this case). Where can the knowledge needed reside:
The first case requires re-coding for each client and server application; the second for each client language and each server application (e.g., again to import into a spread-sheet server); the third requires more work for many server applications but not for individual applications.
at the client application layer
- the designer of the call-detail application could arrange to extract the data in an explicit way and create the object needed for model fitting.
at the client language layer
- someone could design, for the S language, suitable coercion methods from the query result class to the classes needed. (Because S also has dynamic discovery of methods, the application could find the coercion automatically.)
at the server layer
- if suitable standard class(es) exist, and the server includes methods to cast into those classes, the coercion can be fully automatic.
| Back | A Proposal | Start |