IDL Java Code C++ Code

The fundamental data type used in this example is a Wafer. For the most part, its structure is irrelevant. However, we describe it briefly here. More information about this example and the data content is available.

IDL Description of a Wafer

The simplest way to describe a Wafer is to identify the attributes it has and the additional methods that require computations. In this way, we declare that a wafer This does not say anything about how we represent the Wafer in any system, but simply what public attributes clients consider it to have and methods to access these (and set them if they are not readonly). The yield method involves the server manipulating the wafer's data to compute a non-attribute value.
#include "GenericDataTypes.idl"

module Wafer {
 interface Wafers {
    attribute GenericDataTypes::character modes;
    attribute GenericDataTypes::list coordinates;
    attribute GenericDataTypes::list values;

    GenericDataTypes::numeric yield();
 };
};

So the alternative without attributes is the longer

#include "GenericDataTypes.idl"

module Wafer {
 interface Wafers {

      // we could attain the same more interestingly with
      // attributes (either readonly or read and writable).
      // This would allow us to dynamically determine the basic
      // fields of a Wafer object from the Interface repository.
      // The IDL compiler will generate the methods for querying and
      // setting the attributes we declare.
      // However, doing it this way allows us to avoid the thorny
      // issue of what types the attributes should have.

    GenericDataTypes::character modes();
    GenericDataTypes::list coordinates();
    GenericDataTypes::list values();

    void setModes(in GenericDataTypes::character data);
    void setCoordinates(in GenericDataTypes::integer x,
                        in GenericDataTypes::integer y);
    void setValues(in GenericDataTypes::list data);

    GenericDataTypes::numeric yield();
  };
};
We used this because we didn't want to identify the attributes for encapsulation purposes and also we didn't want to identify the types they had. But one ends up doing this anyway when creating the get and set methods.

Java

The Java code for the databases (in JavaDatabases and WaferDatabase) do not deal with Wafer objects as remote objects but use the LocalWafer class (in WaferDatabase) to store and supply the attributes passed to it from the factory. The databases store LocalWafer objects in the Hashtable.

C++ Code

The only C++ code to maipulate these objects or the data the getWaferObject in the
WaferGraphicsServer in getWafer.cc. This takes the individual elements from a wafer
Duncan Temple Lang <duncan@research.bell-labs.com>
Last modified: Thu May 21 14:38:27 EDT 1998