13.02.2013 Views

Evaluation Environment for AUTOSAR-Autocode in Motor Control ...

Evaluation Environment for AUTOSAR-Autocode in Motor Control ...

Evaluation Environment for AUTOSAR-Autocode in Motor Control ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.2 Components of the <strong>Environment</strong><br />

OS, the orig<strong>in</strong>al RTE library should work with the RTA–OSEK PC–Port. Maybe<br />

<strong>for</strong> a newer generator version a customization of the library <strong>for</strong> MEDC17 won’t be<br />

necessary, but <strong>for</strong> the current versions it is and so there have to be at least two library<br />

versions <strong>for</strong> one generator handled, the standard and the customized <strong>for</strong> MEDC17.<br />

Test type The result can be obta<strong>in</strong>ed <strong>in</strong> some phases of the shown process. For<br />

some cases a code look up after the generation can be enough to take a decision of the<br />

result. The diagram just shows a simple flow and does not take care about MEDC17.<br />

For a test, which addresses RTE code <strong>in</strong>tegration <strong>in</strong> MEDC17, this diagram would<br />

look different. So even some other proceed<strong>in</strong>gs are necessary <strong>for</strong> tests.<br />

Typically an RTE generator supports just one <strong>AUTOSAR</strong> release. The XML scheme<br />

of the <strong>AUTOSAR</strong> configuration files and also the features differ a lot between the<br />

different <strong>AUTOSAR</strong> releases. So a test case also belongs just to one <strong>AUTOSAR</strong><br />

release.<br />

5.2 Components of the <strong>Environment</strong><br />

The components, which are described <strong>in</strong> the previous section, are the ma<strong>in</strong> objects of<br />

the environment. These components are shown with their relations <strong>in</strong> figure 5.2. There<br />

are more components than <strong>in</strong> the previous section described. Option, test, variable<br />

and resource are <strong>in</strong>troduced to provide a better reusability and flexibility.<br />

The test case from the previous section is called test template <strong>in</strong> the environment.<br />

A test template def<strong>in</strong>es the requirements of a test, but the test can only be per<strong>for</strong>med<br />

with a generator. So a test consists of an RTE generator and a test template.<br />

The diagram can be treated as a diagram <strong>for</strong> one <strong>AUTOSAR</strong> release, because there<br />

are no major dependencies between the components <strong>for</strong> different releases. Only the<br />

test types can be used globally. The components of this diagram are described <strong>in</strong> this<br />

section first, the next section deals with the configuration of this components.<br />

5.2.1 RTE Generator<br />

The RTE generators are the ma<strong>in</strong> test objects of the environment and of the evaluation.<br />

Every RTE generator has a specific name and version, which identifies a generator.<br />

For the environment it is necessary to know, how the RTE generator is called and how<br />

the <strong>AUTOSAR</strong> XML files are passed to the generator. This is done by the executable,<br />

which conta<strong>in</strong>s the path to the generator itself, and by the command l<strong>in</strong>e, which<br />

declares how the options and files are passed to the generator.<br />

5.2.2 Options<br />

An RTE generator also provides options, which can be passed through the command<br />

l<strong>in</strong>e. The options are treated separately to provide a better flexibility and to take care<br />

about different parameters <strong>for</strong> different generators. An RTE generator can provide an<br />

parameter <strong>for</strong> each option, but it does not have to. The test template then can specify<br />

37

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

Saved successfully!

Ooh no, something went wrong!