|
|
Figure 10. VChemLab Distributed Object Computing Environment
Other distributed computing architectures are possible, for example using the Common
Gateway Interface (CGI) or CORBA technology. CGI has an advantage in not requiring
Java capability in the client. However, it is a stateless client-server model and there is no
persistent connection to a database, so the run-time processes must be re-established with
each connection, leading to significant processing overheads on the server. CORBA allows
the use of a persistent heterogeneous programming environment, although any performance
loss with the RMI will hopefully disappear with the development of more efficient Java
compilers. Furthermore, with the availability of object databases, as distinct from the more
commonly-found relational or heirarchical databases, it is now possible to store and retrieve
these objects within a database in the same form as the object-oriented programming
environment
import java.io.*;
public class molData implements Serializable {
String molName; String filName; String Project;
double mp; double bp; double ri; double alpha_d;
public int molArray = 4; String safe[] = new String[molArray];
|
|
|
|
|
|
public molData (String molName2, String filName2, String Project2,
double mp2, double bp2, double ri2, double alpha_d2,
String safe0, String safe1, String safe2, String safe3) {
//
//Associate the object variables with
//arguments passed to the constructor
//
this.molNam= molName2;this.filName= filName2;
this.mp= mp2;this.bp= bp2;
this.ri= ri2;this.alpha_d= alpha_d2;
this.safe[0]= safe0;this.safe[1]= safe1;
this.safe[2]= safe2;this.safe[3]= safe3;
}
public String getMolName() {return molName;}
public double getMP() {return mp;}
public double getBP() {return bp;}
public String getSafety(int ii) {return safe[ii];}
}
Figure 11. Representative Java Class Definition for the Molecular Data Object
|
|
|