Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Papyrus/customizations/robotics/modular"

(Created page with "= Modular and Role based design = = Supported diagrams = == Component definition diagram == A component definition diagram models the internal structure and external interf...")
 
Line 6: Line 6:
  
 
A component definition diagram models the internal structure and external interface of a component. The former includes parameters, activities and functions, the latter ports that provide or require services
 
A component definition diagram models the internal structure and external interface of a component. The former includes parameters, activities and functions, the latter ports that provide or require services
 +
 +
[[Image:Papyrus-robotics-palette-component.png]]
  
 
== Service definition ==
 
== Service definition ==
  
A service definition binds a communication pattern to concrete communication objects, for instance the formal parameter ``Message'' of a Push pattern is bound to a concrete data type definition.
+
The goal of the service definition diagram is to defines services, as defined in the RobMoSys [https://robmosys.eu/wiki/modeling:metamodels:service service meta-model]: A Service allows interaction (i.e. regular exchange of information) between software components. A Service consists of service-properties (defined in an external metamodel) and a communication-pattern-usage.
 +
 
 +
In the UML realisation, we have used the concepts of templates and template binding. A communication pattern is defined as a template with one or more formal parameters. A service definition binds the formal parameters to concrete communication objects, for instance the formal parameter ``Message'' of a Push pattern is bound to a concrete data type definition.
  
 
== Datatype definition diagram ==
 
== Datatype definition diagram ==
  
This diagram is used to define data types, including potential variability
+
This diagram is used to define data types, including those with variable elements.
 +
 
 +
The Palette it shown below.
 +
 
 +
[[Image:Papyrus-robotics-palette-datatypes.png]]
 +
 
 +
The UML realisation is based on datatype definitions.
 +
 
 +
Not all data types are communication objects. In order to avoid duplicates, the palette of the diagram only enables the creation of the different data-type variants. At any moment, a data-type can be converted into a communication object and vice versa, as shown in the following dialog.
 +
 
 +
<center>
 +
[[Image:Papyrus-customizations-robotics-ToggleCommunicationObject.png]]<br/>
 +
Toggle between data-type and communication object
 +
</center>
 +
 
 +
 
  
 
== System assembly ==
 
== System assembly ==
  
 
A set of component instances that are ``wired'' together via their ports. At this level, it is also possible to configure component instances.
 
A set of component instances that are ``wired'' together via their ports. At this level, it is also possible to configure component instances.
 +
 +
[[Image:Papyrus-robotics-palette-system.png]]

Revision as of 11:29, 11 April 2019

Modular and Role based design

Supported diagrams

Component definition diagram

A component definition diagram models the internal structure and external interface of a component. The former includes parameters, activities and functions, the latter ports that provide or require services

Papyrus-robotics-palette-component.png

Service definition

The goal of the service definition diagram is to defines services, as defined in the RobMoSys service meta-model: A Service allows interaction (i.e. regular exchange of information) between software components. A Service consists of service-properties (defined in an external metamodel) and a communication-pattern-usage.

In the UML realisation, we have used the concepts of templates and template binding. A communication pattern is defined as a template with one or more formal parameters. A service definition binds the formal parameters to concrete communication objects, for instance the formal parameter ``Message of a Push pattern is bound to a concrete data type definition.

Datatype definition diagram

This diagram is used to define data types, including those with variable elements.

The Palette it shown below.

Papyrus-robotics-palette-datatypes.png

The UML realisation is based on datatype definitions.

Not all data types are communication objects. In order to avoid duplicates, the palette of the diagram only enables the creation of the different data-type variants. At any moment, a data-type can be converted into a communication object and vice versa, as shown in the following dialog.

Papyrus-customizations-robotics-ToggleCommunicationObject.png
Toggle between data-type and communication object


System assembly

A set of component instances that are ``wired together via their ports. At this level, it is also possible to configure component instances.

Papyrus-robotics-palette-system.png

Back to the top