Presentation is loading. Please wait.

Presentation is loading. Please wait.

Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.

Similar presentations


Presentation on theme: "Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example."— Presentation transcript:

1 Surya Bahadur Kathayat surya@item.ntnu.no

2 Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example Projects  Creating New Modeling Project  Creating Packages and Components  Editing State Machines  Working with Corresponding Java Files  Code Generation  Execution

3 What is Ramses ?  It is a tool suite for creating reative systems  All implemented as eclipse-plugins You can quickly edit the functionality of your application You can test your model for typical error situations You can quickly generate code for different platforms Once the system is running and if you want to know what is happening – here you are !

4 Other Tools Needed....  ActorFrame (TellU) It constitutes of classes that are used for implementation and execution of state machines in Java  Knopflerfish OSGi Framework Open Source OSGi Framework – Java Based Service Platform More Information on http://www.knopflerfish.org

5 Installing  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example Projects  Creating New Modeling Project  Creating Packages and Components  Editing State Machines  Working with Corresponding Java Files  Code Generation  Execution

6 Installing Ramses  Install Eclipse 3.3 or later (download and unzip to a local directory) Install Eclipse 3.3 or later  Open update manager (Help | Software Updates | Find and Install... | Search for new features to install)  Add a new remote site for Ramses as http://www.item.ntnu.no/ramses/updates http://www.item.ntnu.no/ramses/updates  Select Europa Discovery Site as well.  Press Finish  Select latest version of Ramses and press ”Select Required”  Restart Eclipse  Check !! (Help | About Eclipse Platform | Plugin..) Use the eclipse that is references in the course web

7  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example Projects  Creating New Modeling Project  Creating Packages and Components  Editing State Machines  Working with Corresponding Java Files  Code Generation  Execution

8 Ramses Perspectives Inspection View Model View Editor View Property View

9  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example Projects  Creating New Modeling Project  Creating Packages and Components  Editing State Machines  Working with Corresponding Java Files  Code Generation  Execution

10 Importing Example Projects  File > New > Example > Import ActorFrame OSGI Libraries  File > New > Example > Import Other Examples Projects that you want

11  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example Projects  Creating New Modeling Project  Creating Packages and Components  Editing State Machines  Working with Corresponding Java Files  Code Generation  Execution

12 Creating/Modeling New Project (1)  Create a new Java Project File > New > New Project… > Java Project with default “src” and “bin” config  In the context menu of the created Java project, select “Extend Project to Ramses Project”.  Import the actor frame library: File > New > Example > Import ActorFrame OSGI Libraries  Add the ActorFrame project to the build path: In Package Explorer > project context menu > Build Path > Configure Build Path > Projects Tab > Add and then add the ActorFrame project  Add the intermediate builder. Make sure that property view is visible, then select your project in model view and then within the property view, select only “ActorFrame OSGi Code for ISIS”  Then start building your model...>

13  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example Projects  Creating New Modeling Project  Creating Packages and Components  Editing State Machines  Working with Corresponding Java Files  Code Generation Execution

14 Creating Packages and Components  With the operations in the context menu you can add packages to the UML resource, then add required Components, Signals… Project Name UML Model Your Package Component State Machine

15 Editing State Machines

16 Working with Java Files (1)  You dont have to work with too much with Java files. You can back and forth between model and package explorer views

17 Working with Java Files (2) Actions on Any Activity / Tasks

18 Variable Initializations

19 Code Generation

20 Execution  Installing Knopflerfish OSGi Download Knopflerfish from knopflerfish.org (knopflerfish_fullbin_osgi_2.0.1.jar)knopflerfish_fullbin_osgi_2.0.1.jar Install it by double clicking the executable jar file and follow the instructions Start the Knopflerfish by a duble clicking on framework.jar in the osgi folder  Add the ActorFrame bunder (osgiactorrouter.jar) by dragging it to the main window of Knopflerfish

21 Execution

22 You are done !!!  Drag and Drop your osgi bundles to the Knopflerfish OSGi framework  See the logs files or other (depending your application)

23 Signal From Environment ** Console OSGi Bundles Code attached

24 Some Practical Information !!!  Form groups on your own.  Each group should consists of at most 2 students  Send the Group Information to me surya@item.ntnu.no surya@item.ntnu.no  IDI Room 160  Visit our Course Web and Ramses Wiki Regularly

25 DEMO


Download ppt "Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example."

Similar presentations


Ads by Google