...
The import Statement (APL Code)
In Analysis and Aggregation agents, module names are not needed if the format is selected in the UDR Types list in the configuration dialog of the agent. Also, the APL Editor allows selection of the UDR types from a list. Right-click in the Code Area to display the via which the UDR Internal Format Browser can be opened.
If none of these lists are used, the full format name must be referred to, or the import
keyword must be used. The module name must be prefixed with ultra.
to distinguish format imports from APL code imports.
Info | ||||
---|---|---|---|---|
| ||||
The module in this example is named Case 1 - import statement
Case 2 - no import
|
The import Statement (UFDL Code)
It is possible to split different blocks of a format between several format definitions. In these cases, the import
statement may be used to avoid referring to the module name. The ultra.
prefix is not needed (or allowed) in the UFDL import statement.
Using import
in UFDL Code
Suppose there is a format definition with the module name Default.AMA
containing an internal myInt
, and a new format definition must include the internal in the in_map
. This can be accomplished in two ways:
Case 1 - import
Code Block |
---|
import Default.AMA; in_map exMap : external( myCDR ), internal( myInt ), target_internal( myCDR_TI ) { automatic; }; |
Case 2 - no import
Code Block |
---|
in_map exMap : external( myCDR ), internal( Default.AMA.myInt ), target_internal( myCDR_TI ) { automatic; }; |
Note | ||
---|---|---|
| ||
|
Name Lookup Rules
Consider the following ASN.1 block example. Depending on from where a format name is referred, the name lookup will work differently.
References from within the asn_block
specification:
If there is a name in the
asn_block
specification, choose that name.If there is a name in the same format definition, choose that name.
Evaluate the
import
statements.
References from within the same module but outside of the asn_block
:
If there is a name in the same format definition (outside of any
asn_block
specifications), choose that name.If there is a name in the
asn_block
specification, choose that name.Evaluate the
import
statements.
Info | ||
---|---|---|
| ||
|
Note | ||||
---|---|---|---|---|
| ||||
References to existing ASN.1 formats in UFDL requires the ASN.1 module to be part of the reference. Suppose the previous external specification, saved under the name Case 1 - import
|
Scroll pagebreak |
---|