IDL Java Code C++ Code
Files
Wafer Factory
The Wafer Factory is used to simulate the
probe machines in our demo and to populate the
databases with lot data.
The chapter to defines some simple
functions and classes to transfer raw wafer
maps/lots in files to
S wafers objects and move them to the appropriate
(distributed process) databases.
The S wafers class and tools have already been created in another chapter
not distributed with this demo and allow us to construct the S objects
from the ASCII files.
Each object is assigned to the appropriate
remote database using the
assign()
or assignWafer()
method.
This is artificial (since we have the data in S and move it to another
S process for plotting) but the idea is illustrative.
To simplify matters,
we do not use the Wafer
IDL description and we assign the wafer data to the
WaferDatabase using the assignWafer
method.
In this way, the data for the object will live in the database
and not the wafer factory.
There are other ways to do this using a remote Wafer object constructed in the factory, but
this is not useful for our example.
In order to create the wafer lot in the database,
we use S code to read the map file for each lot
and create an S object of class wafers.
Basically, this is an object containing
fields for
- X and Y coordinates of the standard wafer within this lot
- These are integers describing the locations of the different
chips on the wafer object
- Values
- These are the different values of the chip probes
- Modes
- These are a list of the possible failure/status modes for the probe.
This is basically what is described in the IDL file for
the wafer.
S scripts and code
The S_src directory
contains a script
which takes care of attaching the S wafer and CORBA chapters,
setting some parameters to control creation of the wafers
and identifying the databases of interest.
Then it connects to each of the databases, populating
it with some fraction of the available lots.
It does this by assigning each wafer to the database
using the assignWafer function.
Finally, if the S object asynchronousAssignment is
T, the remainder of the maps for each dataase are assigned
in the same manner at regular intervals. This is used to generate
asynchronous events in the database which are broadcast to the
Event Channel if supported by the database and ORB.
See WaferDatabase.
The attach.JDatabase()
function uses getCorbaObject
to obtain a reference to the CORBA object that is the database
of a specified name.
The assignWafer()
takes the S wafers object and passes it to a
C routine that
invokes the remote method assignWafer() on the
database to assign the data into the hashtable.
The main C/C++ support provided in this chapter is the
ability to assign a wafer to a database.
This is done in the file assign.cc
via the routine assignWaferToJDatabase.
This also uses getCORBADatabase()
which takes care of obtaining a C++-level reference
to the remote database. (Note that this is done horribly
and will be made more generic in the near future when the
S-CORBA interface is coded. Basically, the database returned
from the S level attach.JDatabase()
will extend the S class CORBAObject which will have
the stringified reference to the object. In this way, the
getCORBADatabase() routine can simply narrow the C++ object
returned from the ORB method string_to_object() to the
appropriate type and return it. There should be no need for the raw
slot in a database except for efficiency. And the headaches it causes
are not worth the fractional gain in efficiency!)
)
- Sdb.cc
- connects to the remote database and retrieves pointers/references (YUCK) from the
S objects representing these databases.
- assign.cc
- performs the assignment of the wafer to the database. Also
contains other routines that should be in Sdb.cc (namely,
attachCorbaDatabase()). Lastly, contains a routine
for use in the general setup which converts an S wafers objects
to an IDL-based Wafer object. This will be done dynamically
in the S-CORBA interface based on the attributes in the IDL and
the slots in the S class.
- CWafer.cc
- Converts C/C++/IDL based wafers objects to S objects by
probing the attributes and converting them to S objects.
- utils.cc and Utils.h
- Utility routines to convert S objects to
Generic Data Types
defined in IDL
Not used until the GenericDataTypes are ironed out further.
Duncan Temple Lang
<duncan@research.bell-labs.com>
Last modified: Thu May 21 16:42:49 EDT 1998