Data Management for eFMU Algorithm Code to Production Generator

You can generate production from an eFMU with algorithm code.

This page discusses:

Generated Assets

The generator generates eFMU ProductionCode container compliant with eFMU standard.

The generator generates the following eFMU structure:

<folder> <eFmu>
   |-- <folder> schemas(from initial eFmu)
   |-- <file> __content.xml (from initial eFmu with modification)
   |-- <folder> AlgoCode (from initial eFmu)
   |-- <folder> < ProdCodeName > (generated)
   	|-- <file> <componentName>_itf.h  
   	|-- <file> <componentName>_itf.c
   	|-- <file> <componentName>_itf.h
   	|-- <file> <componentName>_types.h
   	|-- <file> <componentName>.h
   	|-- <file> <componentName>.c
   	|-- <file> galec_stl.h
   	|-- <file> galec_types.h
   	|-- <file> mei_block_interface.c
   	|-- <file> mei_block_interface.h
   	|-- <file> sii_block_interface.c
   	|-- <file> sii_block_interface.h
   	|-- <file> manifest.xml 

Translation of Elements

The production code is generated according to the following translation rules:

Algorithm Code Manifest eFmu Production Code Model Details
Manifest
  Name=”A”
Manifest
  Name=”PCode_<A>”
A manifest “PCode_<A>" is created.
Code Files eFmu Production Code Model Details
Code file
<File
                  id="FILE_ID_<filename>_0" name="<filename>"   path="./"
                  needsChecksum="true"   checksum="<calculatedChecksum>"
                  role="Code"/>
A file <filename> is created.
H code file
<CodeFile
                  id="CFILE_ID_<filename>" fileType="ProductionCode"
                  codeType="HeaderFile">
A code file is created.
C code file
<CodeFile
                  id="CFILE_ID_<filename>" fileType="ProductionCode"
                  codeType="SourceFile">
A code file is created.
C code file
<CodeContainer
                  language="C" standard="C99" platform="Legacy"
                  floatPrecision="64-bit">
A code container is created.

The following symbols are used in the tables:

  • ® This object is referenced
  • © This object is contained
  • @ This object is an attribute