Terminology¶
- Contenu
- Terminology
MAY¶
MAY is a tool to build software components with SpeADL and Java. It stands for "Make Agent Yourself".
Software Component¶
The term software component is used ambiguisly to designate sometimes types of components, implementation of such a type, or a runtime instance of such an implementation.
With MAY, there are component descriptions in SpeADL, component implementations in Java and component instances at runtime.
Interface¶
In Java, interfaces are collections of methods.
An interface is identified by a name and is located in a Java package.
Namespace¶
A namespace plays the same role as a package in Java except that it is not tied to a particular directory hierarchy.
SpeADL Component Definition¶
A component definition is a definition of a component type and optionally of a composition of components in the form of a configuration.
It is located in a namespace.
Component Type¶
A component type is identified by a name and contains a collection of ports.
It represents a component from the exterior: this is all that can be externally accessed from a component instance.
In SpeADL, component types are not explicitly defined: a component definition implies the definition of a type (it is similar to Java where defining a class implies the definition of its type).
Component Port¶
A port in a component is identified by a name and has an interface.
If it is provided, it must answer call to the operations of the interface.
If it is required, it can be used from within the component to call operations of the interfaces without knowing who provides them.
Configuration¶
A configuration is a composition of component parts.
A configuration acts as an implementation for a component.
A configuration must be valid and it is when all the required ports of its part are bound (bindings) to other ports with the correct interface.
Component Part¶
A part is a member of a component and that is itself a component.
It is identified by a name and has a type denoted by its name.
Its required ports must be connected to a port providing the interface, and its provided ports are available from within the containing component.
Component Java Implementation¶
A component implementation is a Java implementation of a component definition.
It is located in a package as a normal Java class.
It contains implementations for the provided ports, definitions of the Java implementations for the parts and optionally implementation of the initialisation of the component.
Component Instance¶
A component instance is a runtime entity that exposes a component type and realise this type using a component definition exposing this type and a component implementation implementing this definition.
A component instance contains a component instance for each of its parts.
A component instance is created from the component implementation.
Ecosystem¶
An ecosystem is a component with species.
Ecosystem Definition¶
See Component Definition.
On top of that, it contains also species.
Ecosystem Java Implementation¶
See Component Java Implementation.
On top of that it contains definitions of the Java implementations for the species.
Species¶
A species is a component that can only be defined inside an ecosystem.
Species Definition¶
See Component Definition.
On top of that, it can have parameters (separated by commas) and contain uses.
Species Parameter¶
A species parameter is identified by a name and has a Java type.
Use¶
A use is a part that can only be defined inside a species.
A use is identified by a name but the only kind of component type it can have must be a species declared in one of the parts of the ecosystem containing its species.
If the type of the use has parameters, then arguments for these parameters must be passed to it.
Species Implementation¶
See Component Java Implementation.
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.
Species Instance¶
A species can be instantiated only from within the ecosystem that defines it.
Mis à jour par Anonyme il y a plus de 11 ans · 17 révisions