SDA SE Wiki

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

User Tools

Site Tools


DPJF: DPD for Software Engineers

SET OUTPUT FOLDER

Choose a factbase as described above. Go to the Prolog console (Eclipse Main Menu→Prolog→Prolog Console), open it and enter the query setOutputFolder(Dir). This is in order Dir to contain the output of DPJF. Example

Setting Output Folder. Click to enlarge.

Important!
If you do not set the output folder explicitly, the results will be stored in the folder resultFolder that resides within the directory of the analyzed project. Just refresh this folder (right-click on the analyzed project and select Refresh) and you get the results.

RUN

Choose a factbase as described above. Then

  1. Go to the JTransformer Control Center.
  2. Locate the desired DP detector that you want to run. How to
  3. Right-click on the desired detector and select Run analysis from the context menu.
    • To run all enabled analyses click the Run button (green triangle pointing to the right) in the Control Center
  4. Go to the Result View. For each program element playing some role in a detected DP candidate, it will display a line showing the role name, the program element name and the file and line in which this program element resides. Roles are nested according to program element containment (methods in types, calls in methods).

INSPECT

Double-clicking a line in the Result View displays the the corresponding program element in an Eclipse editor.

Running DPJF and inspect results. Click to enlarge.

CLEANUP

If you do not want to see the markers of a particular DPD run anymore, you can remove them by right-click on the respective analysis in the Design Pattern Detection (DPJF) group of the JT Control Center and selecting Remove Analysis Markers.

DPJF saves the markers displayed in the Result View before exit. So they are immediately available at the start of a new session. If the project has been changed outside Eclipse, the stored markers might be outdated. Then rerun the analysis or cleanup the outdated markers as described above.

research/dpd/dpjf/engineers.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019