metaonly module ti.xdais.wizards.genalg.Main |
 |
 |
XDM GenAlg wizard
var Main = xdc.useModule('ti.xdais.wizards.genalg.Main');
module-wide config parameters
'[-g] [--cgtools <dir>] [--gcccgtools <dir>] [--m3cgtools <dir>] [-f <file> | --xml <file>] [-d <destination dir>]'
];
module-wide functions
per-instance config parameters
per-instance functions
config Main.usage // module-wide |
 |
Usage for this command
Main.usage = String[] [
'[-g] [--cgtools <dir>] [--gcccgtools <dir>] [--m3cgtools <dir>] [-f <file> | --xml <file>] [-d <destination dir>]'
];
Main.exec() // module-wide |
 |
xs script entry point
Main.exec(Any args) returns Any
DETAILS
This function is called from within other XDCscript scripts and
performs the same operations as
main() except that,
rather than output the return value of
inst.run(), this value
is simply returned to the caller of
exec().
Main.main() // module-wide |
 |
xs shell entry point
Main.main(Any args) returns Any
DETAILS
This function
- creates a no-arg instance, inst, of the module inheriting
this interface;
- parses command line arguments placing all options in the config
params of the inheriting module;
- creates a xdc.tools.Cmdr instance, cmdr;
- calls inst.run() with the cmdr and any command
line command line arguments not parsed as options; and
- outputs the return result from inst.run()
Instance Config Parameters |
 |
var params = new Main.Params;
// Instance config-params object
params.cgTools = String null;
// TI C6000 codegen tools directory
params.destDir = String null;
// package destination directory
params.gccCgTools = String null;
// GCC codegen tools directory
params.gui = Bool false;
// Gui
params.m3cgTools = String null;
// m3 codegen tools directory
params.xmlFile = String null;
// XML File containing saved user input
config Main.Params.cgTools // instance |
 |
TI C6000 codegen tools directory
var params = new Main.Params;
...
params.cgTools = String null;
config Main.Params.destDir // instance |
 |
package destination directory
var params = new Main.Params;
...
params.destDir = String null;
config Main.Params.gccCgTools // instance |
 |
GCC codegen tools directory
var params = new Main.Params;
...
params.gccCgTools = String null;
config Main.Params.gui // instance |
 |
Gui
var params = new Main.Params;
...
params.gui = Bool false;
config Main.Params.m3cgTools // instance |
 |
m3 codegen tools directory
var params = new Main.Params;
...
params.m3cgTools = String null;
config Main.Params.xmlFile // instance |
 |
XML File containing saved user input
var params = new Main.Params;
...
params.xmlFile = String null;
Main.run() // instance |
 |
Underlying implementation of the command
DETAILS
Since this method is used to support both command line tools and
other XDCscript scripts, it is important to avoid explicit
termination of the JVM via java.lang.System.exit(); doing so
precludes callers from handling failures.
Implementations should instead call
generated on Tue, 28 Jun 2016 21:14:29 GMT