Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Surya Bahadur Kathayat [email protected] 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 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 quickly generate code for different platforms 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 ! 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 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 Installing 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 | AboutUse Eclipse Platform | references Plugin..) the eclipse that is in the course web 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 Ramses Perspectives Editor View Property View Model View Inspection View 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 Importing Example Projects File > New > Example > Import ActorFrame OSGI Libraries File > New > Example > Import Other Examples Projects that you want 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 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...> 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 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 Editing State Machines 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 Working with Java Files (2) Actions on Any Activity / Tasks Variable Initializations Code Generation Execution 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 Execution You are done !!! Drag and Drop your osgi bundles to the Knopflerfish OSGi framework See the logs files or other (depending your application) OSGi Bundles Signal From Environment ** Code attached Console Some Practical Information !!! Form groups on your own. Each group should consists of at most 2 students Send the Group Information to me [email protected] IDI Room 160 Visit our Course Web and Ramses Wiki Regularly DEMO