Modgen : Menu - Generation

Info

Modeling and Generation

Custom designs

Custom designs are a main service.

About the initiator

My name is James Wayne. I live in ... the Netherlands

User Guide Modgen




Menu - Generation

Menu_Generation

For the generation &*ear*&-generation and contextual generation are separated.

For the generation Action Scripts and Templates are used The process by gettting information of the EAR-datamodel. Generation implies, that a Template is filled using anAction-Script. The result is, that a new Product is created.

For instance, for every entitity a create_table script can be generated. The result is written in a Product.

In Action Scripts and templates &*substitu*&ion variables can occur. In this way dynamic dynamische templates emerge, that enable a the phase generation. The EAR-datamodel provides substitution-variables for tables with their attributes and relations. An other form of substitution is provided by contexts. By using context-tabels as the basis for the genereration, a template is filled with the avlaues of a tables. Fot instance: In this way it huge amounts of insert-statements can be generated by using an ASCII-file. Combinations of EAR and context-generation are possible, which make the possible forms of generation even more flexible. Next to EAR datamodels and en contexts a number of standard system-parameters can be used. And finally association lists can be used in the form of blocks of Globale and Locale variables.

All objects, that form the basis of the generation - process can be approached by their own specific actions. The possible ways of substitution are very extensize in the way.



Menu OptionFunction
&*Actions*&Maintenance Action Scripts List.
&*Action*&Maintenance Action-Script.
&*Template*&Maintenance Templates.
&*Paramete*&rsMaintenance of global and local parameters.
&*Gen*&erateGenerate from Action-Scripts List.
Journal2Give extended journal of the generation.
ProductMaintenance gegenated products.


Menu-item : Generating-Actions.

With the menu-option actions the list of Action Scripts can be maintained:

In the list of Action Scripts theAction Scripts are listed. Every Action-script refers to a template, parameters and context-tabels. Every action-script can produce one of more products.

Actions_Datamodel

Action Scripts and the referring components should have a version_number according to the convention. If one of the referring components changes and thus gets another version-number, the version-number of the calling Action-Script should be increased. In hthis way the list of Action Scriptscan be used as a version management index of sevearl projects.

Menu-item : Generating-Action.

With the menu-option Action an Action-Script (file with extension ACT) can be maintained. An Action-Script is a program script, that is dat is input for the generator, that interpretes the script interpreteert and generates the products.

Action_Datamodel

For the generation of the products the CG_AT –language is used. Generation occurs through actions, in which the environment is build. Within this Binnen environment the template is substitued. See Action-Scripts.

In the Visual Basic &*exa*&mple Visual Basic procedures are generated using an environment object table (see &*Vb1*&).

Menu-item : Generating-Template.

With the menu-option template a Template (file with extension SKL) can be maintained. A Template is a container of small pieces of text (Template-pieces) to be filled in by substitution.

EAR_Generation

Every Template-piece has its own name and the Action-Script executes during the building of the contexts repetitively an action, in which a Template-piecs is substituted.The subtituted lines are added to the Product.

Menu-item : Generating-Parameters.

With the menu-option parameters the Parameters (file with extension PAR) can be maintained. Parameters consist of blocks global and local association-lists. Association-lists can be used as a combination of global and local variabels.

Parameter_Usage

One or more blocks of global Parameters can exists and with each global block one or more blocks of locale variables can exist.

Each block of Global parameters has a name. With the action-script during iterations a specific block of variables can be activated. This block then is the basis for the variables to be substituted.

Menu-item : Generating-Generation.



With the menu-optie generation the generation-process is started.

The resulting products of the generation-process are written to the OUT files.

An extended journal is created during the generation-process.

Menu-item : Generating-Journal.



With the option Journal an extended journal can be viewed.

Menu-item : Generating-Product.

With the menu-option the products can be viewed.

Picture fetch

If you like the header, it can be found here.


Images

firefox

If you're using firefox, put your cursor over the logo. But for some reason IE doesn't like image rollover effects. Its not that big of a deal.