Class CodeGeneratorAdapter

    • Constructor Detail

      • CodeGeneratorAdapter

        public CodeGeneratorAdapter()
    • Method Detail

      • createDecoratorAttributes

        public DecoratorAttributes createDecoratorAttributes​(NamedObj target,
                                                             GenericCodeGenerator genericCodeGenerator)
        Create and return the decorated attributes for the corresponding Ptolemy Component.
        Parameters:
        target - The NamedObj that will be decorated.
        genericCodeGenerator - The code generator that is the decorator for the corresponding Ptolemy Component.
        Returns:
        The decorated attributes.
      • generateName

        public static java.lang.String generateName​(NamedObj namedObj)
        Generate sanitized name for the given named object. Remove all underscores to avoid conflicts with systems functions.
        Parameters:
        namedObj - The named object for which the name is generated.
        Returns:
        The sanitized name.
      • setCodeGenerator

        public abstract void setCodeGenerator​(GenericCodeGenerator codeGenerator)
        Set the code generator associated with this adapter class.
        Parameters:
        codeGenerator - The code generator associated with this adapter class.
        See Also:
        getCodeGenerator()