18.04.2013 Views

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6. INTEGRATION WITH VIRTU 6.4. SmART integration<br />

• Parser Repository;<br />

• Co<strong>de</strong> Generator;<br />

• Grammar Compiler;<br />

• Tentative Grammar Repository.<br />

and the GOC is composed by Printer and PrinterMain.<br />

As previously mentioned, the two components perform disparate functions. The sub-<br />

components in OGC will be merged with the Ass<strong>em</strong>bly Configuration creation<br />

part whereas GOC will integrate the configuration file generation part. Following is <strong>de</strong>eper<br />

explanation of the integration of the SmART components in the VIRTU tool.<br />

6.4.1 SmART Original to Generic syntax Converter<br />

SmART Parser Repository<br />

The lowest level integration will be that of the Parser Repository. After the parsers are<br />

created, they are inserted in the Configuration Database. This calls for the alteration of<br />

the relational database by adding parser-related relations to it and the alteration of VIRTU DB<br />

in or<strong>de</strong>r for the latter to support the necessary database operations for the creation, edition<br />

and <strong>de</strong>letion of parsers. The concept of Parser Repository will, therefore, refer to a set of<br />

database relations which can be accessed by other components through the VIRTU DB software<br />

layer.<br />

SmART Processing Layer and Tentative Grammar Repository<br />

Most of SmART’s core will be integrated with the VIRTU Ass<strong>em</strong>bly Configurator. Namely,<br />

SmART OGC’s Configuration File Parser, Co<strong>de</strong> Generator, Grammar Compiler<br />

and also Tentative Grammar Repository are due to be located un<strong>de</strong>r the Ass<strong>em</strong>bly<br />

Configurator. The reason for the localization of this merge is, as it was seen earlier in this<br />

section, the fact that SmART OGC is only accessed by the VIRTU tool on the process of creating<br />

new Ass<strong>em</strong>bly Configurations.<br />

In this way, the normal SmART workflow r<strong>em</strong>ains unchanged, apart from some small ad-<br />

justments. For instance, the Configuration File Parser will now receive parse requests<br />

from the VIRTU Presentation Layer and get the parsers by issuing parser queries to the<br />

Data Layer, by means of VIRTU DB. The Co<strong>de</strong> Generator will r<strong>em</strong>ain intact, since it only<br />

interacts with the Configuration File Parser. The Grammar Compiler will now ac-<br />

cess the parser generator from the VIRTU third-party software sector. As for the Tentative<br />

Grammar Repository, its integration with the VIRTU tool was found to be more suitable<br />

to the VIRTU Processing Layer, opposed to the SmART Storage Layer, since it will not<br />

store permanently any grammar, but rather act as a grammar browser, which saves the final<br />

76

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!