lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.federated.generator.FedGenerator Class Reference

The main class for the federated code generator. More...

Public Member Functions

boolean doGenerate (Resource resource, LFGeneratorContext context) throws IOException
 Produce LF code for each federate in a separate file, then invoke a target-specific code generator for each of those files.
 FedGenerator (LFGeneratorContext context)
 Create a new generator and initialize a file configuration, target configuration, and error reporter.

Package Attributes

final RtiConfig rtiConfig = new RtiConfig()
 Configuration of the RTI.

Detailed Description

The main class for the federated code generator.

Constructor & Destructor Documentation

◆ FedGenerator()

org.lflang.federated.generator.FedGenerator.FedGenerator ( LFGeneratorContext context)

Create a new generator and initialize a file configuration, target configuration, and error reporter.

Member Function Documentation

◆ doGenerate()

boolean org.lflang.federated.generator.FedGenerator.doGenerate ( Resource resource,
LFGeneratorContext context ) throws IOException

Produce LF code for each federate in a separate file, then invoke a target-specific code generator for each of those files.

Parameters
resourceThe resource that has the federated main reactor in it
contextThe context in which to carry out the code generation.
Returns
False if no errors have occurred, true otherwise.

Member Data Documentation

◆ rtiConfig

final RtiConfig org.lflang.federated.generator.FedGenerator.rtiConfig = new RtiConfig()
package

Configuration of the RTI.


The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/federated/generator/FedGenerator.java