Class MakeModules

java.lang.Object
   |
   +----MakeModules

public class MakeModules
extends Object
Automatically generate the intermediate java and C(++) files necessary for calling a C module. Furthermore this class contains a method that gives the module developer directions of what to do after the intermediate files are generated.

Version:
$Revision: 1.3 $

Variable Index

 o moduleName

Constructor Index

 o MakeModules(String)

Method Index

 o makeCModule(File, InConnectorStore, OutConnectorStore, String[], String[])
Automatically generate the intermediate C(++) file.
 o makeJavaModule(File, boolean, String, InConnectorStore, OutConnectorStore, String[], String[])
Automatically generate the intermediate Java file.
 o makeSuggestions(File, InConnectorStore, OutConnectorStore, String[], String[], ParameterStore)
Generate a list of things to do for the module developer after the intermediate files are generated.
 o makeUniqueExtensions(InConnectorStore, OutConnectorStore, String[], String[])
Some of the physical types of the in and out connectors may be the same so make them all unique.

Variables

 o moduleName
 private String moduleName

Constructors

 o MakeModules
 MakeModules(String moduleName)

Methods

 o makeUniqueExtensions
 public static void makeUniqueExtensions(InConnectorStore input,
                                         OutConnectorStore output,
                                         String inType[],
                                         String outType[])
Some of the physical types of the in and out connectors may be the same so make them all unique. All in and out connectors are investigated, if there are any of the same type they will get an index number. The new (unique) type will be stored in the inType and outType parameters.

 o makeJavaModule
 public void makeJavaModule(File jFile,
                            boolean javaCModules,
                            String moduleDescription,
                            InConnectorStore input,
                            OutConnectorStore output,
                            String inType[],
                            String outType[]) throws FileNotFoundException, IOException
Automatically generate the intermediate Java file. This file contains the call to a native C(++) function.

 o makeCModule
 public void makeCModule(File cFile,
                         InConnectorStore input,
                         OutConnectorStore output,
                         String inType[],
                         String outType[]) throws FileNotFoundException, IOException
Automatically generate the intermediate C(++) file. The generated file will only contain 1 function: Java__native". This funtion is called by the run method of the intermediate Java module.

See Also:
run
 o makeSuggestions
 public void makeSuggestions(File sFile,
                             InConnectorStore input,
                             OutConnectorStore output,
                             String inType[],
                             String outType[],
                             ParameterStore parameters) throws FileNotFoundException, IOException
Generate a list of things to do for the module developer after the intermediate files are generated.