SpeADL Minus Tutorial » Historique » Révision 1
Révision 1/20
| Suivant »
Anonyme, 06/10/2014 15:03
SpeADL Minus Tutorial¶
This is a tutorial for SpeADL⁻: creating a project, defining simple and composite components, implementing components.
Objectives¶
The objective of this tutorial is to understand the basic workflow to follow when developing component-oriented applications with SpeADL in Eclipse/MAY.
We will create a simple composition of two components connected together following a typical client-server configuration.
The server will provide a service that will be used by the client.
They will be composed together in a big component.
A Java main() will be created to show how to execute the composition once.
A very simple GUI will be used to illustrate a self-contained component acting as an application.
Installing Eclipse and MAY¶
This procedure is described on this page.
Creating a New Project¶
First, we must create a project to work.
In Eclipse, go to the menus : File / New / Java Project.
Enter Tutorial 1 as the project name, verify that the execution environment JRE is 1.5 or above.
As a start, create a package in the src folder called tutorial1.
The Server Component¶
Create the following hierarchy of packages (See this best practice for details on the matter):- tutorial1.server
- impl
- interfaces
- datatypes
Create a speadl file: * Right-click on tutorial1.server and select New / File. * Enter server.speadl as the file name.
Define the namespace we are going to work in as well as the Server component:
namespace tutorial1.server {
component ServerComponentType {
}
}
Mis à jour par Anonyme il y a plus de 11 ans · 20 révisions