Class UnaryMathFunction

    • Constructor Detail

      • UnaryMathFunction

        public UnaryMathFunction​(UnaryMathFunction actor)
        Construct the UnaryMathFunction adapter.
        Parameters:
        actor - the associated actor
    • Method Detail

      • _generateFireCode

        protected java.lang.String _generateFireCode()
                                              throws IllegalActionException
        Generate fire code. The method reads in expBlock, logBlock, signBlock, squareBlock, or sqrtBlock from UnaryMathFunction.c depending on the function parameter specified, replaces macros with their values and returns the the processed code block.
        Overrides:
        _generateFireCode in class NamedProgramCodeGeneratorAdapter
        Returns:
        The generated code.
        Throws:
        IllegalActionException - If the code stream encounters an error in processing the specified code block(s).