Class Director

    • Constructor Detail

      • Director

        public Director​(Director director)
        Construct the code generator adapter associated with the given director. Note before calling the generate*() methods, you must also call setCodeGenerator(GenericCodeGenerator).
        Parameters:
        director - The associated director.
    • Method Detail

      • generateFMIMA

        public java.lang.String generateFMIMA()
                                       throws IllegalActionException
        Generate the code for the firing of actors. In this base class, it is attempted to fire all the actors once. In subclasses such as the adapters for SDF and Giotto directors, the firings of actors observe the associated schedule. In addition, some special handling is needed, e.g., the iteration limit in SDF and time advancement in Giotto.
        Specified by:
        generateFMIMA in class FMIMACodeGeneratorAdapter
        Returns:
        The generated code.
        Throws:
        IllegalActionException - If the adapter associated with an actor throws it while generating fire code for the actor.