|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
Format Summary | |
standard |
This is a textual description of AROM Knowledge Representation. The output is human readable, it is possible to save/store a complete KnowledgeBase, or only some components of a base. |
instances |
This is also a textual description of AROM Knowledge Representation which allow only AMInstances saving. The other difference with standard format (which could also save only instances) is in the Reader. Indeed, this version is more faster than the standard reader for reading great number of instances. |
records |
This format allows to save and restore only instances in a binary format. The binary format permits to assume that no value has been changed by user so the reading can be done without any verifications. This format is faster than both standard and instances formats. |
Format Detail |
KBReader
methods in this format : readContent (AMClass container, InputStream reader, TestResult result)
, readContent (AMAssociation container, InputStream reader, TestResult result)
and readFacetModifier (Class facetType, InputStream reader, TestResult result)
methods are not implemented. An UnsupportedOperationException will be thrown if one of these is called.write(KnowledgeBase entity, OutputStream output)
Writes all KnowledgeBase contents (Structures and instances) to outputStream in txta formatwrite(Structure entity, OutputStream output)
Writes the specified Structure intention (only its description not its instances) to outputStream in txta format KBReader
methods in this format.createKB(InputStream input, TestResult result)
, readContent (AMClass container, InputStream reader, TestResult result)
, readContent (AMAssociation container, InputStream reader, TestResult result)
and readFacetModifier (Class facetType, InputStream reader, TestResult result)
have no definition in this format. Only instances description are supported and could be added to an existing KnowledgeBase. Use standard format for KnowledgeBase or Model creation. An InvalidFormatException will be thrown if one of these is called.readContent(KnowledgeBase entity, InputStream input, TestResult result)
The description read from InputStream should only contains instances definitions.
write(KnowledgeBase entity, OutputStream output)
Writes all KnowledgeBase instances to outputStream in txta formatwrite(Structure entity, OutputStream output)
not defined in this reader. An InvalidFormatException willbe thrown if called.KBReader
methods in this format.readContent(KnowledgeBase kb, InputStream input, TestResult result)
is implemented.readContent(KnowledgeBase entity, InputStream input, TestResult result)
The description read from InputStream should only contains instances definitions in record (binary) format.write(KnowledgeBase entity, OutputStream output)
writes all KnowledgeBase instances to outputStream in records formatwrite(Structure entity, OutputStream output)
writes specified Structure proper instances to outputStream in records format.