Generates C code to support modal models.
More...
Generates C code to support modal models.
- Author
- Edward A. Lee
-
Alexander Schulz-Rosengarten
-
Hou Seng Wong
◆ generateDeclarations()
| void org.lflang.generator.c.CModesGenerator.generateDeclarations |
( |
Reactor | reactor, |
|
|
CodeBuilder | body, |
|
|
CodeBuilder | constructorCode ) |
|
static |
Generate fields in the self struct for mode instances.
- Parameters
-
| reactor | |
| body | |
| constructorCode | |
◆ generateModeStructure()
Generate code for modal reactor registration and hierarchy.
- Parameters
-
| instance | The reactor instance. |
| code | The code builder. |
◆ generateStateResetStructure()
| String org.lflang.generator.c.CModesGenerator.generateStateResetStructure |
( |
ReactorInstance | instance, |
|
|
String | modeRef, |
|
|
String | selfRef, |
|
|
String | varName, |
|
|
String | source, |
|
|
String | type ) |
|
static |
Generate code registering a state variable for automatic reset.
- Parameters
-
| instance | The reactor instance. |
| modeRef | The code to refer to the mode |
| selfRef | The code to refer to the self struct |
| varName | The variable name in the self struct |
| source | The variable that stores the initial value |
| type | The size of the initial value |
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/c/CModesGenerator.java