Title: Surya Bahadur Kathayat
1- Surya Bahadur Kathayat
- surya_at_item.ntnu.no
2Outline
- 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
3What 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
Once the system is running and if you want to
know what is happening here you are !
You can quickly generate code for different
platforms
4Other 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
5Installing
- 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
6Installing Ramses
- Install Eclipse 3.3 or later (download and unzip
to a local directory) - 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 - 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
8Ramses Perspectives
Editor View
Property View
Model View
Inspection 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
10Importing Example Projects
- File gt New gt Example gt Import ActorFrame OSGI
Libraries - File gt New gt Example gt 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
12Creating/Modeling New Project (1)
- Create a new Java Project File gt New gt New
Project gt 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 gt New gt
Example gt Import ActorFrame OSGI Libraries - Add the ActorFrame project to the build path In
Package Explorer gt project context menu gt Build
Path gt Configure Build Path gt Projects Tab gt 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...gt
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
14Creating 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
15Editing State Machines
16Working 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
17Working with Java Files (2)
Actions on Any Activity / Tasks
18Variable Initializations
19Code Generation
20Execution
- Installing Knopflerfish OSGi
- Download Knopflerfish from knopflerfish.org
(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
21Execution
22You are done !!!
- Drag and Drop your osgi bundles to the
Knopflerfish OSGi framework - See the logs files or other (depending your
application)
23OSGi Bundles
Signal From Environment
Console
Code attached
24Some Practical Information !!!
- Form groups on your own.
- Each group should consists of at most 2 students
- Send the Group Information to me
surya_at_item.ntnu.no - IDI Room 160
- Visit our Course Web and Ramses Wiki Regularly
25DEMO