Presentation is loading. Please wait.

Presentation is loading. Please wait.

PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University.

Similar presentations


Presentation on theme: "PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University."— Presentation transcript:

1 PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University

2 Overall flow Critical use-cases Overview Structural view Implemented as Eclipse plug-ins Architecture Formal specification Project plan and Test Plan Demo Artifacts Demo

3 Launch application Collect execution trace XML format Collect trace Analyze trace xml Generate UML model files Analyze trace Visualize UML model files as UML diagrams Visualize

4

5 Collector Collect execution trace from running application Analyzer Generate UML model files Ui Visualizer Render model files as UML diagrams Each Core functionality is implemented as an Eclipse plug-in. Interface between plug-ins is through extension-points.

6

7

8 Defining BRUE Launch configuration  Can specify which packages/classes/methods to instrument Instrumenting application  Uses Eclipse Probekit to instrument class files Launching application  Uses Eclipse launch configuration delegates to launch Java applications.

9

10

11 Instruments class files  Uses Eclipse Probekit for instrumentation. Records Method Entry and Method Exit events  Method exit event includes actual return type, and any exception thrown. Attaches Probekit.jar to running application.

12

13

14 Need to control when to start or stop trace data collection.

15 Agent class  On a thread, from within the launched application, listen for requests from BRUE plug-in.  Maintain flags for enabling or disabling trace data collection.

16

17 A “Scenario” contains a trace of method entry and method exit events. The events references an id that describes the method details (method name, signature, return type, its class name, package name).

18

19 Parse trace xml file. Extract packages and classes from trace xml file Build UML2 based package model Build UML2 based class model Build UML2 based interaction model

20 Use of Builder pattern

21

22 Eclipse GMF used to draw packages and classes Model –  UML2 model generated from analyzer Graphical definition file  Contains properties for graphical notations (rectangle, polyline) Graphical mapping definition  Maps UML2 model elements with graphical notations. Eclipse GMF builds a editor based on the mapping.  (Pending).

23 Use of Eclipse GEF Sequence diagrams is not freeform and should conform to UML2 specifications. GEF applications follow MVC paradigm  Model  EditPart (Controller)  Figure (View)

24

25 One Edit part per Model

26

27

28 Test Plan  Use of Junit  Planned to use Eclipse TPTP for measuring test coverage Formal specification  Positioning of sequence diagram model elements Project Plan  Planning for Presentation 3 in September third week.

29


Download ppt "PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University."

Similar presentations


Ads by Google