Class BasicEngine

    • Constructor Summary

      Constructors 
      Constructor Description
      BasicEngine​(java.lang.String parser, java.net.URL conf, Logger logger)
      Create a new instance of this Engine.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.Object source, java.lang.String msg)
      Report a debug message to the user.
      Parser getParser()
      Return the Parser instance owned by this Engine.
      Printer getPrinter​(java.lang.String name)
      Return a Printer instance associated with the specified name.
      Processor getProcessor​(java.lang.String name)
      Return a Processor instance associated with the specified name.
      Producer getProducer​(java.lang.String name)
      Return a Producer instance associated with the specified name.
      void log​(java.lang.Object source, java.lang.String msg)
      Report a log message to the user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicEngine

        public BasicEngine​(java.lang.String parser,
                           java.net.URL conf,
                           Logger logger)
                    throws InitializationException
        Create a new instance of this Engine.
        Parameters:
        parser - The name of the Parser class used to read configuration.
        cont - The SystemID of the configuration file.
        logger - The Logger used by this Engine.
        Throws:
        InitializationException
    • Method Detail

      • getParser

        public Parser getParser()
        Return the Parser instance owned by this Engine.
        Specified by:
        getParser in interface Engine
        Returns:
        A non-null Parser instance.
      • getProducer

        public Producer getProducer​(java.lang.String name)
        Return a Producer instance associated with the specified name.
        Specified by:
        getProducer in interface Engine
        Parameters:
        name - A non-null String representing the Producer name.
        Returns:
        A non-null Producer instance or null if no Producer is associated with the specified name.
      • getProcessor

        public Processor getProcessor​(java.lang.String name)
        Return a Processor instance associated with the specified name.
        Specified by:
        getProcessor in interface Engine
        Parameters:
        name - A non-null String representing the Processor name.
        Returns:
        A non-null Processor instance or null if no Processor is associated with the specified name.
      • getPrinter

        public Printer getPrinter​(java.lang.String name)
        Return a Printer instance associated with the specified name.
        Specified by:
        getPrinter in interface Engine
        Parameters:
        name - A non-null String representing the Printer name.
        Returns:
        A non-null Printer instance or null if no Printer is associated with the specified name.
      • debug

        public void debug​(java.lang.Object source,
                          java.lang.String msg)
        Report a debug message to the user.
        Specified by:
        debug in interface Engine
        Parameters:
        msg - The debug message to report.
      • log

        public void log​(java.lang.Object source,
                        java.lang.String msg)
        Report a log message to the user.
        Specified by:
        log in interface Engine
        Parameters:
        msg - The log message to report.