Class FSMDirector

    • Field Detail

      • _eol

        protected static final java.lang.String _eol
        End of line character. Under Unix: "\n", under Windows: "\n\r". We use a end of line character so that the files we generate have the proper end of line character for use by other native tools.
    • Constructor Detail

      • FSMDirector

        public FSMDirector​(FSMDirector director)
        Construct the code generator adapter associated with the given FSMDirector.
        Parameters:
        director - The associated ptolemy.domains.modal.kernel.FSMDirector
    • Method Detail

      • generateFireCode

        public java.lang.String generateFireCode()
        Description copied from class: FSMDirector
        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.
        Overrides:
        generateFireCode in class FSMDirector
        Returns:
        The generated code.