|
AROM-2_2_13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Each implementation of AROM API must implement the AromSystem
interface.
This interface is used to access the type system and the modifier factory used by this
implementation and act as a knowledge base factory. In this way, each implementation
instantiates the right KnowledgeBase
concrete object.
The concrete class implementing this interface is automatically instatiated by the
AromSetUp
class. AromSetUp
suppose that the implementation
of AromSystem
is a singleton pattern. The only instance of this class
is retreived by calling a static method called getAromSystemInstance()
If this method is not defined in the class implementing the AromSystem
interface, an error occur and the AROM system fail to start.
This interface allows user to access to the parser formats defined in the
implementation. A description of the available format is accessible from here.
Created: Thu Oct 03 13:55:56 2001
Method Summary | |
void |
cleanup()
Cleans the entire AROM system. |
KnowledgeBase |
createKB(String name,
Object[] args)
Creates a new knowledge base object identified by the specified name. |
ModifierFactory |
getModifierFactory()
Return the ModifierFactory used by the implementation of
AROM currently running. |
KBReader |
getReader(String format)
Returns a KBReader which read AROM description from a Reader in the
specified format. |
ResourceManager |
getResourceManager()
Return the ResourceManager used by the implementation of
AROM currently running. |
KBReader |
getStandardReader()
Returns the standard reader. |
KBWriter |
getStandardWriter()
Return a knowledge base writer that produce a description of knowledge bases in the standard format. |
TypeSystem |
getTypeSystem()
Return the TypeSystem used by the implementation of
AROM currently running. |
KBWriter |
getWriter(String format)
Return a knowledge base writer that produce a description of knowledge bases in the specified format. |
Method Detail |
public KnowledgeBase createKB(String name, Object[] args) throws EntityCreationException
name
- the name of the knowldge base.args
- an array of arguments that are used by this constructor.
EntityCreationException
- if the supplied name or agrs are invalid.public KBWriter getStandardWriter()
KBWriter
valuepublic KBWriter getWriter(String format)
format
- the name of the format supported by the returned KBWriter.
KBWriter
value
IllegalArgumentException
- if the specified format isn't supported.public KBReader getStandardReader()
KBReader
valuepublic KBReader getReader(String format)
Reader
in the
specified format. If no KBReader is able to read the specified format, an exception
is thrown.
You can see the available formats list here.
format
- the format's name the returned KBReader
is able to read.
KBReader
value
IllegalArgumentException
- if the specified format isn't supported.public TypeSystem getTypeSystem()
TypeSystem
used by the implementation of
AROM currently running.
TypeSystem
used by the AROM system.public ModifierFactory getModifierFactory()
ModifierFactory
used by the implementation of
AROM currently running.
ModifierFactory
used by the AROM system.public ResourceManager getResourceManager()
ResourceManager
used by the implementation of
AROM currently running.
ResourceManager
used by the AROM system.public void cleanup()
|
AROM-2_2_13 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |