| |||
| Home > Components > Parameter Export List | |||
The parameter export list is used to limit the set of CADI parameters of a virtual platform exposed to the user.
The parameter export list is a special purpose behavior and
must be placed in the top component. It must be named setupGlobalSystemAttributes().
Example 2.35 shows an example of including a parameter export list.
Example 2.35. Using a parameter export list
behavior setupGlobalSystemAttributes()
{
// hides parameters of 'core' and its subcomponents
hideParameter("*.core.*");
// but expose all parameters of component core.cpu0
exposeParameter("*.core.cpu0.*");
// but do not expose its semihosting parameters.
hideParameter("*.core.cpu0.semihosting*");
}
The methods used for exposing and hiding parameters have the following meaning:
Expose the given parameters.
Hide the given parameters.
The following rules apply:
By default all parameters are exposed
The filtering patterns given as the parameters of exposeParameter and hideParameter can
either contain fully qualified parameter names (including instance
names) or wild card expressions (see Example 2.35).
Filter patterns are evaluated in the order of their calls.