Glossary
| Acronym | Definition |
|---|---|
| SPO | Software Production Operation |
| BL | Behavior Layer |
| ML | Middleware Layer |
| BSM | Behavior-Specific Middleware |
| TSM | Target-Specific Middleware |
Glossary
Referenced Documents
General Concepts
UML to C++ code operation is a code generation operation producing C++ code from UML entities. UML entities belong to a design composed of multiple design patterns described as follows. See [10] for more information. Components Layer GenerationThis operation generates the code associated with the components layer. For more information on the components layer, see to [9]. ![]() Note that a software producer model is generated with the code. The purpose of this mode is to describe the contract of the generated components and the connection between them. It mainly contains a description of:
See [1] for more information on the software producer model. See [2] for more information on the model generation. The generated code for a component is composed of:
The generated code for the communication and scheduling component specifies the communication between the components and schedules the behaviors triggered by Execution Types. – See [12] It is generated from a composition of components or from a single component to expose its communication points. UML to C++ code generation operation generates automatically all of these elements. The generated code of behaviors must have a predictable behavior. To respect this constraint, the input behavior must respect design patterns. You are guided during the design phase by the validation constraints. The generator supports only a limited list of designed patterns. See the dedicated documents for more information. The code generator produces a valid code. You can implement or customize some specific parts (for example, you can implement a state in a statemachine). These customized parts must respect the validation constraints. Once the code is generated, you can modify identified parts of the generated code. These sections of code are identified by comments in the generated code as user code sections. User code sections can be used by other applications to perform a round-trip operation and replicate the modified code in the input model. Note also that user code sections can be protected from a generation to another to prevent code lost. For more information about user code sections, see [8]. LimitationThe case of ambiguous semantics will be clarified in the next iteration of the SysML Statemachine generator function. A typical example is the order used to read and manage input signals, which impacts the way the statemachine behaves. Input ElementsNot applicable Validation ConstraintsThe code generated from a UML or SysML behavior is expected to have predictable behavior. For this, the input behavior must respect design patterns. The generators support only a limited list of designed patterns. These patterns are described in specific documents. The validations constraints are described in the code generators specifications for each UML and SysML behavior. For more information, see the dedicated specification. Code Generator SpecificationSoftware Production Operation Identity Card
Parameterscode_deployment_id Parameter
report_name Parameter
dry_run Parameter
Validate Parameter
report_html Parameter
Implementation Generation Parameter
Instrumented Code Parameter
output Parameter
Central Pool Size parameter
Default Pool Size Parameter
Tick Frequency Parameter
Compiler Parameter
Misra Violation Comment Parameter
Misra Ignore Parameter
Cpp Version Parameter
Derive Instance Graph Parameter
Files SpecificationThe code generator generates C++ code compliant with standard c++11, c++14, c++17, c++20 Any character of the block name or the class name which is different of a digit, an ASCII letter, a - or a _, is replaced by an _ in the generated folder / file. The file name of each behavior is composed with the parent names and its name separated by underscore. MyBlock_ClassifierBehavior_SubBehavior.cpp/.h Example 1 of a sub behavior file name called by the classifier behavior MyBlock_ClassifierBehavior_SubBehavior_SubSubBehavior.cpp/.h Example 2 of a sub-sub-behavior file name called by a sub behavior called itself by the classifier behavior The operation must support the file header customization as defined in [10]. Depending on the behavior type, code generation is described in dedicated specification documents. For each behavior type, the name of the generated files is composed of a variable part and a fixed one. The variable part is identified in the specification documents as following: <Behavior> and must be replaced with the parent names as described above. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||