25.12.2014 Views

On improving efficiency of model checking through systematically ...

On improving efficiency of model checking through systematically ...

On improving efficiency of model checking through systematically ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

3.4 Implementation<br />

In this section, we present the implementation <strong>of</strong> the transformation tool<br />

based on the abovementioned transformation framework. This tool takes an<br />

Nbac output <strong>model</strong> as the input and outputs an XTG <strong>model</strong>.<br />

Taking into account the syntax <strong>of</strong> Nbac output <strong>model</strong>s, XTG input <strong>model</strong>s,<br />

and the transformation framework, we choose the flexible scripting language<br />

Perl as our implementation language. We use Perl standard functions to<br />

process the input <strong>model</strong>s and XML::LibXML package to build the XML tree <strong>of</strong><br />

the output <strong>model</strong>.<br />

In two subsections below, we present more details about two versions <strong>of</strong><br />

our transformation tool:<br />

• nbac2xtgxml: the tool to transform an input Nbac <strong>model</strong> to an XML<br />

representation <strong>of</strong> PMC <strong>model</strong><br />

• nbac2uppaal: the tool to transform an input Nbac <strong>model</strong> to an XML<br />

representation <strong>of</strong> Uppaal <strong>model</strong><br />

3.4.1 nbac2xtgxml<br />

We implemented the transformation tool nbac2xtgxml according to the<br />

framework described above. Figure 3.10 depicts the input and output <strong>of</strong><br />

the tool.<br />

.ba file<br />

nbac2xtgxml<br />

.xml file<br />

xtgxml2xtg<br />

.xt file<br />

Figure 3.10: Input and output <strong>of</strong> nbac2xtgxml<br />

In Figure 3.10, the .ba file is generated by Nbac using the -obdd option.<br />

The transformation tool exports an .xml file defined for PMC <strong>model</strong>. After<br />

we have the .xml file, we use the tool xtgxml2xtg 3 to transform it to an<br />

.xt file that can be an input for PMC.<br />

3 developed by another group<br />

32

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

Saved successfully!

Ooh no, something went wrong!