...
Method | Usage |
---|---|
| Adds a directive to dictionary of directives |
| Called by parser whenever a directive is found during parsing of the TM1 rule file. Creates a new directive and appends it to the internal dictionary. |
| Returns a new instance of |
| Resolves and applies directives to an area statement of a TM1 rule or feeder command. |
| Functionality was removed, originally served to store last splicing results in a file to be able to rollback to previous rule state. |
TM1RegionContainer (class in TM1RegionContainer.py)
The class is used to store global list of regions defined throughout the TM1 rule file. Regions play important role when calculating scope of splicing directives to certain TM1 rule or feeder command.
The class defines following attributes:
Attribute | Type | Usage |
---|---|---|
|
| Dictionary of all available regions defined in the TM1 rule file indexed by region name. The value is |
The class exposes following methods:
Method | Usage |
---|---|
| Adds a region to internal |
| Creates a new region and sets its start index (by characters counted from beginning of the file) according to parser. |
| Creates a new region and sets its end index or if the region already exists, updates its end index. Index is counted by number of characters from beginning of the file. |
| Returns a list of regions that enclose specified string area by |
| Returns a list of all |
| Returns lowest available |
| Returns highest available |