If the file argument to mbuilder is specified, it must be an IRIS Explorer module resource file. These files have a .mres extension; though the extension need not be added to the file name on the command line.
mbuilder accepts a description of a function or subroutine (known as the computational function) and a description of how the the computational function interfaces to the rest of IRIS Explorer. The external interface for the computational function is provided by creating a set of input and output ports and by specifying associations between these ports and arguments to the computational function.
With these descriptions, mbuilder generates a module resource file, wrapper code, and a Makefile necessary to build the computational function as an IRIS Explorer module.
In addition to integrating code into the IRIS Explorer environment, the Module Builder can change a module's appearance by editing the layout of the module's control panel.
The main display window is shown when the Module Builder is started. The main window is used to specify the name of the module and the file that contains the user's code. Other information that mbuilder uses to compile and link the user's software may also be specified in the main window (see the manual for details).
Using selections from the main window's menu bar, the user can open module resource files for editing, save the current resource, compile user code into a working IRIS Explorer module and install the module into a standard location. By default, modules are installed into the directory ${EXPLORERUSERHOME}/modules. If the environment variable EXPLORERUSERHOME is not set, modules are installed into ${EXPLORERHOME}/modules. If neither environment variable is set, modules are installed into /usr/explorer/modules.
The right hand side of the mbuilder main window contains a set of buttons that activate the other windows in the Module Builder. Brief discussions of these secondary windows are given below.
In the ``Function Args'' display, the user specifies the names and types of the arguments in the calling sequence of the computational function. The user also specifies the language in which his or her code is written and the name of the function or subroutine.
In the ``Connections'' display, the user specifies how data from input ports is supplied to the arguments of the computational function. The user also specifies how data generated by the computational function is supplied to module output ports.
Selecting ``Control Panels'' in the main display brings up the control panel editor (CPE). The control panel editor is used to specify the type location and attributes of widgets that will appear in the user's module control panel.
${EXPLORERHOME}/bin/mbuilder
${XUSERFILESEARCHPATH}/Mbuilder
${EXPLORERHOME}/lib/std.mres