Class AddSubtract

    • Constructor Detail

      • AddSubtract

        public AddSubtract​(AddSubtract actor)
        Construct a AddSubtract adapter.
        Parameters:
        actor - The given ptolemy.actor.lib.AddSubtract actor.
    • Method Detail

      • _generateFireCode

        protected java.lang.String _generateFireCode()
                                              throws IllegalActionException
        Generate fire code. The method generates code that loops through each input [multi-ports] and combines (add or subtract) them.
        Overrides:
        _generateFireCode in class AddSubtract
        Returns:
        The generated code.
        Throws:
        IllegalActionException - If the code stream encounters an error in processing the specified code block(s).