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

      • _generateFireCode

        protected java.lang.String _generateFireCode()
                                              throws IllegalActionException
        Description copied from class: NamedProgramCodeGeneratorAdapter
        Generate the fire code. In this base class, add the name of the associated component in the comment. It checks the inline parameter of the code generator. If the value is true, it generates the actor fire code and the necessary type conversion code. Otherwise, it generate an invocation to the actor function that is generated by generateFireFunctionCode.
        Overrides:
        _generateFireCode in class NamedProgramCodeGeneratorAdapter
        Returns:
        The generated code.
        Throws:
        IllegalActionException - Not thrown in this base class.
      • generatePreinitializeCode

        public java.lang.String generatePreinitializeCode()
                                                   throws IllegalActionException
        Generate the preinitialize code of the associated composite actor. It first creates buffer size and offset map for its input ports and output ports. It then gets the result of generatePreinitializeCode() method of the local director adapter.
        Overrides:
        generatePreinitializeCode in class NamedProgramCodeGeneratorAdapter
        Returns:
        The preinitialize code of the associated composite actor.
        Throws:
        IllegalActionException - If the adapter associated with an actor throws it while generating preinitialize code for the actor or while creating buffer size and offset map.
      • generatePreinitializeMethodBodyCode

        public java.lang.String generatePreinitializeMethodBodyCode()
                                                             throws IllegalActionException
        Generate the preinitialize code of the associated composite actor. It first creates buffer size and offset map for its input ports and output ports. It then gets the result of generatePreinitializeCode() method of the local director adapter.
        Overrides:
        generatePreinitializeMethodBodyCode in class NamedProgramCodeGeneratorAdapter
        Returns:
        The preinitialize code of the associated composite actor.
        Throws:
        IllegalActionException - If the adapter associated with an actor throws it while generating preinitialize code for the actor or while creating buffer size and offset map.