public class BasicEngine extends java.lang.Object implements Engine
| Constructor and Description |
|---|
BasicEngine(java.lang.String parser,
java.net.URL conf,
Logger logger)
Create a new instance of this Engine.
|
| Modifier and Type | Method and 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.
|
public BasicEngine(java.lang.String parser,
java.net.URL conf,
Logger logger)
throws InitializationException
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.InitializationExceptionpublic Parser getParser()
public Producer getProducer(java.lang.String name)
getProducer in interface Enginename - A non-null String representing the Producer name.public Processor getProcessor(java.lang.String name)
getProcessor in interface Enginename - A non-null String representing the Processor name.public Printer getPrinter(java.lang.String name)
getPrinter in interface Enginename - A non-null String representing the Printer name.public void debug(java.lang.Object source,
java.lang.String msg)