From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC

XDCscript - Module-Object.Params

Module's instance creation parameters

Contents

Synopsis

 
var «params» = new «Mod».Params();

Description

For a module «Mod» that manage instances, «Mod».Params is a constructor that is used to create a "structure" that contains fields for each instance configuration parameter declared by «Mod». This structure is used to create new instance managed by «Mod».

In addition to the configuration parameters declared by «Mod», «Mod».Params also contains a special field, named instance, which defines instance creation parameters common to all modules and is declared by xdc.runtime.IInstance.

Example

 
 
 
 
 
 
 
 
 
var LoggerBuf = xdc.useModule("xdc.runtime.LoggerBuf");
 
/* create and initialize a LoggerBuf Params object */
var params = new LoggerBuf.Params(); 
params.numEntries = 128;
params.instance.name = "myLogger";
 
/* create new LoggerBuf instance object */
... = Logger.create(params);

See also

XDCscript - Module-Object.create Create a new Instance object managed by this unit

[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference