13.08.2013 Views

institut f¨ur informatik - PST Thesis Management Interface - LMU

institut f¨ur informatik - PST Thesis Management Interface - LMU

institut f¨ur informatik - PST Thesis Management Interface - LMU

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Figure 3.9.: The principle of Generic AUTOSAR.<br />

3.3.2. Implementing tool functionality with GAUTOSAR<br />

3.3. The Generic AUTOSAR concept<br />

With GAUTOSAR, implementing functionality depicted in listing 3.1 works as follows: for<br />

each generic class in the model, an appropriate interface is generated as depicted in listing<br />

3.2:<br />

gautosar . gswcomponents . gcommunication ;<br />

GQueuedReceiverComSpec<br />

{<br />

Integer gQueueLength ;<br />

}<br />

Integer gGetQueueLength ();<br />

Listing 3.2: The generic interface representing a QueuedReceiverComSpec object.<br />

Instead of repeating code that embodies the desired functionality for each AUTOSAR version<br />

as in listing 3.1, the code can be written only once - by using the generic method provided by<br />

the generic interface. This way, at the time of implementation, the tool developer does not<br />

require any knowledge about how many AUTOSAR versions are supported in the current<br />

Artop release or in which version a tool user might build a model:<br />

35

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

Saved successfully!

Ooh no, something went wrong!