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

Both sides previous revision Previous revision
Next revision
Previous revision
research:dpd:dpjf:generate [2012/03/14 13:11]
127.0.0.1 external edit
research:dpd:dpjf:generate [2018/05/09 01:59] (current)
Line 1: Line 1:
 +====== DPJF: Generate, Load and Switch to a JTransformer Factbase ======
 +
 +To enable design pattern detection on a Java project **P**, ​
 +a JTransformer factbase must be created and loaded into DPJF
 +(-> steps 1 and 2 below). ​
 +
 +If multiple factbases are loaded you must switch to the one 
 +that you want (-> step 3 below).
 +
 +===== 1. Activate JTransformer for a Project =====
 +=== ===
 +Check whether the capital letters **'​JT'​** are displayed ​
 +as overlay on the icon of **P** in the Package Explorer. ​
 +If not, right-click on the project and select from the context menu 
 +  * "​**Configure**->​**Assign JTransformer factbase**" ​
 +
 +This will automatically generate and load a factbase for **P**. ​
 +Successful completion of this process is indicating by displaying ​
 +  * **Green '​JT'​** letters as overlay on the icon of **P** in the Package Explorer
 +  * The name of **P** in the upper left corner of the Prolog Console
 +
 +**Yellow '​JT'​** letters displayed as overlay on the icon of P indicate that the 
 +creation of the factbase is not finished yet. It may 
 +take seconds to minutes depending on the project size. Please be patient. ​
 +To see what is going on you can ++open the Progress View | by clicking the symbol ​
 +in the lower right corner of the Eclipse window++.
 +
 +===== 2. Load Existing JTransformer Factbase =====
 +=== ===
 +**Grey '​JT'​** overlay letters indicate that JTransformer has been
 +activated for the project in a former Eclipse session and a cached
 +version of the factbase has been saved (at the end of the last session)
 +but has not been loaded yet.
 +
 +Then loading of the factbase for **P** must be triggered explicitly ​
 +by selecting the name of **P** in the 
 +  * Factbase Switcher of the JTransformer Control Center or 
 +  * Process Switcher of the Prolog Console
 +
 +|  {{factbaseswitcherincontrolcenter.jpg|Factbase Switcher of JTransformer Control Center}} ​ |  {{factbaseswitcherinprologconsole.jpg|Process Switcher of Prolog Console}} ​ | 
 +|  Factbase Switcher of Control Center ​ |  Process Switcher of Prolog Console ​ | 
 +
 +
 +===== 3. Switch to Loaded JTransformer Factbase =====
 +=== ===
 +If multiple factbases are loaded you must switch to the one 
 +that you want by selecting the proper factbase name in the 
 +  * Factbase Switcher of the JTransformer Control Center or 
 +  * Process Switcher of the Prolog Console
 +As you have noted, loading cached factbases and switching ​
 +to another loaded factbase is done in the same way. 
 +
 +===== 4. Tips =====
 +
 +<note tip> ​
 +If you want to get detailed statistics on a factbase, ​
 +just open the "​Factbase Statistics"​ view 
 +from the JTransformer menu. 
 +</​note>​
  
research/dpd/dpjf/generate.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2020