Sprint 1 Plug-in Demo Instructions
From DaVinci
Contents |
Sprint 1 Plug-In Demo Instructions
Introduction
This document intends to give the basic installation and run-time instructions for the port identification algorithm implementation, which is a part of team DaVinci Sprint 1 backlog.
Tool Installation
The following tools are required
- OSATE 1.0: http://seiproject.homeip.net:8088/svn/davinci/trunk/Training/SEI_AADL_Course_CD/Distributions/developer%20edition/osate-1.0-sdk-eclipse-3.0.2-emf-2.0.2-05312005-win32.zip
- Java SDK: http://seiproject.homeip.net:8088/svn/davinci/trunk/Training/SEI_AADL_Course_CD/Distributions/j2sdk-1_4_2_08-windows-i586-p.exe
Plug-in and AADL Example System
The plug-in and AADL example code is provided in a single zip
- http://seiproject.homeip.net:8088/svn/davinci/trunk/document/tech-reference/eclipse/sprint1_demo.zip
Plug-in and AADL Example System Installation
Unzip the zip into a desired Eclipse workspace (<ws>) and there will be two subdirectories
- <ws>/edu.cmu.sei.aadl.plugindemo. The Java plug-in code
- <ws>/ExampleModels. The AADL example system used for plug-in demonstration
Eclipse workspace setup
Start up Eclipse and follow the below steps
- Give <ws> as desired workspace location
- Run File->Import, Existing project into Workspace, Next, select edu.cmu.sei.aadl.plugindemo and Finish.
- Run File->Import, Existing project into Workspace, Next, select ExampleModels and Finish.
- Window->Open Perspective->Java
Testing the Plug-in
The plug-in is tested by starting a test instance of OSATE from within OSATE SDK.
- Run->Run, which will launch a test configuration dialog box
- Under Runtime Workbench, create a new configuration called plug-in test.
- Change the Location entry in the Workspace Data area to point to a new workspace for the runtime, i.e. <ws>/ExampleModels/pluginruntime. This directory will be used for temporary files during the execution of the plug-in. Execute Run.
- In the new instance of Eclipse, import the ExampleModels directory again. Run File->Import, Existing project into Workspace, Next, select ExampleModels and Finish.
- In the new instance of Eclipse, Window->Show View->Problems.
- In the new instance of Eclipse, under Navigator, select ExampleModels->aaxl->basicportgroups.aaxl (or any of the other port group examples).
- In the new instance of Eclipse, run Analysis Menu->Port Group Candidate Identification and enjoy the show :-).
Reference
The plug-in demo and its instructions are based on the course materials. For further information see http://seiproject.homeip.net:8088/svn/davinci/trunk/Training/SEI_AADL_Course_CD/exercises/session%206/session6.plugindev.pdf.