14 interface ISoil {

15 public double getWaterStress();

Figure 11-1. Example of an IDL interface definition for components Weather and Soil.

Java maps IDL modules to a package with the same name and every package corresponds to a directory in the file system. The IDL compiler creates a directory for each module and all generated files are saved in this directory.

As CORBA has to work with different programming languages, there are mapping methods that map types and structures from the common language, IDL, to a number of programming languages. For example: The boolean type in Java is mapped to boolean type of IDL, the byte type in Java is mapped to octet type of IDL, etc [Vin97]. Currently, there are mappings to IDL for Java, C, C++, COBOL, Smalltalk, ADA, etc. (

0 0

Post a comment