Projet

Général

Profil

MAY Terminology » Historique » Version 2

Anonyme, 10/10/2014 15:04

1 1 Anonyme
h1. SpeADL Terminology
2
3
{{>toc}}
4
5 2 Anonyme
h2. MAY
6
7
MAY is a tool to build software components with SpeADL and Java.
8
9 1 Anonyme
h2. Software Component
10
11 2 Anonyme
A software component is at the same time the type of a component, an implementation of this type and the runtime entity that can be instantiated from this implementation.
12 1 Anonyme
13 2 Anonyme
h3. Component Class
14
15
A component class is at the same time a type and an implementation.
16
17
h2. Interface
18
19
An interface has a name and is a collection of operations.
20 1 Anonyme
In Java, interfaces are collections of methods.
21
22 2 Anonyme
h2. SpeADL Component
23 1 Anonyme
24 2 Anonyme
With MAY, a component is made of a SpeADL definition and a Java implementation.
25 1 Anonyme
26 2 Anonyme
h2. SpeADL Component Definition
27
28
A component definition is a SpeADL definition of a component type and optionally of a component implementation in the form of a configuration.
29
30 1 Anonyme
h3. Component Type
31
32
A component type has a name and a collection of ports.
33 2 Anonyme
It represents a component from the exterior: this is all that can be externally accessed from a component instance.
34 1 Anonyme
35 2 Anonyme
h3. Component Port
36 1 Anonyme
37 2 Anonyme
A port in a component has a name and an interface.
38
If it is provided, it must answer call to the operations of the interface.
39
If it is required, it can be used from within the component to call operations of the interfaces without knowing who provides them.
40 1 Anonyme
41
h3. Configuration
42
43
A configuration is a composition of component parts.
44
A configuration acts as an implementation for a component.
45
A configuration is valid when all the required ports of its part are connected to ports with the correct interface.
46
47 2 Anonyme
h3. Component Part
48 1 Anonyme
49 2 Anonyme
A part is a member of a component and that is itself a component.
50 1 Anonyme
51 2 Anonyme
It has a name and component type.
52
Its required ports must be connected to a port providing the interface, and its provided ports are available from within the containing component.
53 1 Anonyme
54 2 Anonyme
h2. Component Java Implementation
55 1 Anonyme
56
A component implementation is a Java implementation of a component definition.
57 2 Anonyme
It contains implementations for the provided ports, definitions of the Java implementations for the parts and optionally implementation of the initialisation of the component.
58 1 Anonyme
59 2 Anonyme
h2. Component Instance
60 1 Anonyme
61 2 Anonyme
A component instance is a runtime entity that exposes the type of its class and realise this type using the implementation of its class.
62
A component instance contains a component instance for each of its parts.
63
64 1 Anonyme
A component instance is created from the component implementation.
65
66
h2. Ecosystem
67
68
An ecosystem is a component with species.
69
70
h3. Ecosystem Definition
71
72 2 Anonyme
See [[SpeADL Terminology#Component Definition|Component Definition]].
73 1 Anonyme
On top of that, it contains also species.
74
75
h3. Ecosystem Java Implementation
76
77
See [[SpeADL Terminology#Component Java Implementation|Component Java Implementation]].
78 2 Anonyme
On top of that it contains definitions of the Java implementations for the species.
79 1 Anonyme
80
h2. Species
81
82
A species is a component that can only be defined inside an ecosystem.
83
84
h3. Species Definition
85
86 2 Anonyme
See [[SpeADL Terminology#Component Definition|Component Definition]].
87
On top of that, it can have parameters (separated by commas) and contain uses.
88
89
h3. Species Parameter
90
91
A species parameter has a name and a Java type.
92
93
h3. Use
94
95
A use is a part that can only be defined inside a species.
96
A use has a name but the only component type it can have must be a species declared in one of the parts of the ecosystem containing its species.
97
If the type of the use has parameters, then arguments for these parameters must be passed to it.
98
99 1 Anonyme
h3. Species Implementation
100
101 2 Anonyme
See [[SpeADL Terminology#Component Java Implementation|Component Java Implementation]].
102
Contrary to parts, a use implementation don't have to be defined as they are already defined in the implementation of the ecosystem containing the species of the use.
103
104 1 Anonyme
h3. Species Instance
105 2 Anonyme
106
A species can be instantiated only from within the ecosystem that defines it.