Class Expression

    • Constructor Detail

      • Expression

        public Expression​(Expression actor)
        Constructor method for the Expression adapter.
        Parameters:
        actor - The associated actor.
    • Method Detail

      • _generateFireCode

        protected java.lang.String _generateFireCode()
                                              throws IllegalActionException
        Generate fire code. The method reads in fireBlock from Expression.c, replaces macros with their values and appends the processed code block to the given code buffer.
        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).
      • getSharedCode

        public java.util.Set<java.lang.String> getSharedCode()
                                                      throws IllegalActionException
        Get shared code. This method reads the sharedBlock from Expression.c, replaces macros with their values and returns the processed code string.
        Overrides:
        getSharedCode in class NamedProgramCodeGeneratorAdapter
        Returns:
        A set of strings that are code shared by multiple instances of the same actor.
        Throws:
        IllegalActionException - If the code stream encounters an error in processing the specified code block(s).
      • generateWrapupCode

        public java.lang.String generateWrapupCode()
                                            throws IllegalActionException
        Generate wrap up code. This method reads the wrapupBlock from Expression.c, replaces macros with their values and appends the processed code block to the given code buffer.
        Overrides:
        generateWrapupCode in class NamedProgramCodeGeneratorAdapter
        Returns:
        The processed code string.
        Throws:
        IllegalActionException - If the code stream encounters an error in processing the specified code block(s).