Class TypedCompositeActor

    • Constructor Detail

      • TypedCompositeActor

        public TypedCompositeActor​(TypedCompositeActor component)
        Construct the code generator adapter associated with the given TypedCompositeActor.
        Parameters:
        component - The associated component.
    • Method Detail

      • generatePreinitializeCode

        public java.lang.String generatePreinitializeCode()
                                                   throws IllegalActionException
        Generate the preinitialize code. We do not call the super method, because we have arguments to add here This code contains the variable declarations Here the number of FMUs and the number of connections are determined and declared as #define inside the MA C code
        Overrides:
        generatePreinitializeCode in class NamedProgramCodeGeneratorAdapter
        Returns:
        The generated preinitialize code.
        Throws:
        IllegalActionException - If thrown while appending to the the block or processing the macros.