SRRC Wiki

Service Robotics Research Center
at Ulm University of Applied Sciences

User Tools

Site Tools


how-tos:documentation-datasheet:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how-tos:documentation-datasheet:start [2019/12/10 12:06]
Alex Lotz [Documenting the Component Model]
how-tos:documentation-datasheet:start [2019/12/12 17:43] (current)
Dennis Stampfer
Line 30: Line 30:
 {{ :​how-tos:​documentation-datasheet:​cdlparametersdocumentation.png |}} {{ :​how-tos:​documentation-datasheet:​cdlparametersdocumentation.png |}}
  
-Here you can see the parameters of the CDL component that are documented individually using the same comment-like syntax. As can bee seen not all element strictly ​have to be documented (although we highly recommend to do so), and you don't have to use multiple lines for documentation,​ single line comments are fine as well.+Here you can see the parameters of the CDL component ​(as an example) ​that are documented individually using the same comment-like syntax. As can bee seen not every element strictly ​has to be documented (although we highly recommend to do so), and you don't have to use multiple lines for documentation,​ single line comments are fine as well.
  
  
 ===== Adding further Non-technical Meta-Data Elements to the Component Model ===== ===== Adding further Non-technical Meta-Data Elements to the Component Model =====
  
-Since SmartMDSD Toolchain version 3.12, the **ComponentDatasheet** has been refined such that it solely focusses on the non-technical,​ yet structured documentation for meta-data elements such as e.g. the used license, the manufacturer and other non-technical attributes. Please notice, that the **ComponentDatasheet** model now replaces the old Component Documentation model, which is even deactivated since the SmartMDSD Toolchain version 3.12.+Since SmartMDSD Toolchain version 3.12, the **ComponentDatasheet** has been refined such that it solely focusses on the non-technical,​ yet structured documentation ​and annotation ​for meta-data elements such as e.g. the used license, the manufacturer and other non-technical attributes ​(descriptive information,​ also semantic information). Please notice, that the **ComponentDatasheet** model now replaces the old Component Documentation model, which is even deactivated since the SmartMDSD Toolchain version 3.12.
  
 You can easily create a new **ComponentDatasheet** model as follows (see also the following screenshot):​ You can easily create a new **ComponentDatasheet** model as follows (see also the following screenshot):​
Line 65: Line 65:
 Please notice, the documentation outputs are only generated if the respective project has a valid **ComponentDatasheet** model which acts as root model for code generation. This means that while you can (and should) provide technical documentation within technical models as described above, their output in the different datasheet formats will first take effect when you create a datasheet model. After that, you can modify any of the models as needed and the datasheet outputs will collect all the updates of all the models and re-combine them in the collective outputs. Please notice, the documentation outputs are only generated if the respective project has a valid **ComponentDatasheet** model which acts as root model for code generation. This means that while you can (and should) provide technical documentation within technical models as described above, their output in the different datasheet formats will first take effect when you create a datasheet model. After that, you can modify any of the models as needed and the datasheet outputs will collect all the updates of all the models and re-combine them in the collective outputs.
  
 +The documentation of the **DomainModel** and **System** projects works analogously to the here presented **Component** documentation,​ with the only difference of the Datasheet file extensions which are analogously **.domainModelsDatasheet** and **.systemDatasheet**.
  
-OLD... 
  
-As shown in the screenshot above, you can document your model elements using a Javadoc-like syntax. Please note, that these comments are not only local comments, instead they are later collected from the respective Datasheed model to generate different Datasheet representations such as e.g. the RDF/TTL for importing in semantic triple-stores (as shown below).+===== Free Form Documentation =====
  
-{{ :how-tos:documentation-datasheet:newdomainmodelsds.png?​500|}}+To describe and document the algorithm that you implemented in a component, component behavior, or anything that is not covered by the above means for documentation, proceed as follows:
  
-You can now create ​new DomainModels Datasheet as follows: +  * Create ​a folder ​"​documentation"​ in your project ​root 
- +  * Place at least a index.md in that folder ​and put your documentation ​in markdown into that file 
-  - Select the **model** ​folder ​of your current ​project ​in the **Model Explorer** view +  Feel free to add any figures ​and further .md files to the documentation/ folderMake sure to link to them via index.md
-  ​- Use the Eclipse menu: **File** -> **New** -> **File** +
-  - Provide the model file name, e.g.: **CommBasicObjects.domainModelsDatasheet** (use your project name, but keep the file extension) +
- +
-Your menu wizzard should look as shown in the screenshot on the right. +
- +
-You can now provide the non-technical information such as e.g. the used License in this model file. As soon as you save the model, it will collect all the technical information from related models ​and non-technical information and generate the supported Datasheet types. At the moment we already support the RDF/TTL syntax for importing ​in semantic triple-stores. An example is shown in the screenshot below. Please note, that the previously defined comments from the **CommJoystick** are also reflected in the generated Datasheet syntax. +
- +
-{{ :​how-tos:​documentation-datasheet:​commbasicobjectsds.png |}} +
- +
-The documentation of the **DomainModel** and **System** projects works analogously ​to the here presented **Component** ​documentation, with the only difference of the Datasheet file extensions which are analogously **.domainModelsDatasheet** and **.systemDatasheet**.+
  
 ===== Acknowledgements ===== ===== Acknowledgements =====
how-tos/documentation-datasheet/start.1575976013.txt.gz · Last modified: 2019/12/10 12:06 by Alex Lotz