![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Generate Python code for reactors. More...
Static Public Member Functions | |
| static String | generateListsToHoldClassInstances (ReactorInstance instance) |
| Generate code to instantiate a Python list that will hold the Python class instance of reactor instance. | |
| static String | generatePythonClass (ReactorInstance instance, List< String > instantiatedClasses, ReactorInstance main, PythonTypes types) |
| Generate a Python class corresponding to decl. | |
| static String | generatePythonClass (ReactorInstance instance, ReactorInstance main, PythonTypes types) |
| Wrapper function for the more elaborate generatePythonReactorClass that keeps track of visited reactors to avoid duplicate generation. | |
| static String | generatePythonClassInstantiations (ReactorInstance instance, ReactorInstance main) |
| Instantiate classes in Python, as well as subclasses. | |
Generate Python code for reactors.
|
static |
Generate code to instantiate a Python list that will hold the Python class instance of reactor instance.
Will recursively do the same for the children of instance as well.
| instance | The reactor instance for which the Python list will be created. |
|
static |
Generate a Python class corresponding to decl.
| instance | The reactor instance to be generated |
| instantiatedClasses | A list of visited instances to avoid generating duplicates |
| main | The main reactor instance. |
| types | The Python type helper. |
|
static |
Wrapper function for the more elaborate generatePythonReactorClass that keeps track of visited reactors to avoid duplicate generation.
| instance | The reactor instance to be generated |
| main | The main reactor instance. |
| types | The Python type helper. |
|
static |
Instantiate classes in Python, as well as subclasses.
Instances are always instantiated as a list of className = [_className, _className, ...] depending on the size of the bank. If there is no bank or the size is 1, the instance would be generated as className = [_className]
| instance | The reactor instance to be instantiated |
| main | The main reactor |