SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
research:jtransformer:tutorial:using_source_template_wizard [2015/03/03 07:49]
127.0.0.1 external edit
research:jtransformer:tutorial:using_source_template_wizard [2018/05/09 01:59] (current)
Line 1: Line 1:
 +===== The Dialog =====
 +
 +The dialog itself has two pages, the second one is availabe when generating a condition or transformation.
 +
 +==== First Page ====
 +
 +{{  :​research:​jtransformer:​tutorial:​c2c_dialog_page1_highlight.png|}}
 +The first dialog page for generating templates contains the following components:
 +  - A choice for the type of text to be generated:
 +    * **Facts**: This simply copies the selected PEFs.
 +    * **Condition**:​ This generates a condition from the selected PEFs. This means, that all IDs occuring in the selected PEFs will be replaced with Prolog variables. All occurences of one ID will be replaced with the same variable. Attributes that occur in the PEFs are kept.
 +    * **Transformation**:​ This generates a transformation from the selected PEFs. IDs occuring in the selected PEFs are replaced in the same way as described in //​condition//,​ attributes are also kept. Additionaly the PEFs are wrapped into ''​add/​1''​. The ID of each PEF to be added will be bound in call of the ''​new_id/​1''​ predicate.
 +  - Two options that control semantic details and formating of the generated code:
 +    * **Match context**: If checked, additional conditions will be created to ensure that only the selected code is matched. Otherwise, any code with the same structure is matched. This is the default, since it is what you will want in most cases.
 +    * **Do not indent**: If checked, all lines of code will start at the same position. Otherwise, lines representing elements nested inside the elements above will be indented.  ​
 +  - A help field explaining the above choices and options.
 +  - A preview of the code generated according to the settings above.
 +  - A //Next// button that will proceed to the [[#Second Page]].
 +  - A //Finish// button which will close the dialog and copy the generated JTransformer code to the clipboard.
 +
 +
 +==== Second Page ====
 +
 +{{  :​research:​jtransformer:​tutorial:​c2c_dialog_page2_highlight.png|}}
 +The second dialog page for generating templates contains the following components:
 +  - a table for variable replacements,​
 +  - a preview of the text to generate and
 +  - a //Finish// button which will close the dialog and copy the generated text to the clipboard.
 +
 +The second page of the dialog allows replacing the automatically generates variable names. The table allows defining a mapping for the generated variable names.
  
research/jtransformer/tutorial/using_source_template_wizard.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019