31.01.2014 Views

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

11.3. Simulation Model<br />

Figure 11.6.: UML class diagram of the t<strong>es</strong>t environment model<br />

CInitPSM<br />

Simple state machine for initialising the PSM in or<strong>der</strong> that the EVC binary can<br />

be connected to the required D-Bus adaptors (see Section 8.5). Also, it creat<strong>es</strong><br />

the proxy to the DMI for the CDMI machine.<br />

The interface ISignals provid<strong>es</strong> global signals between the state machine class<strong>es</strong> and is used in<br />

their concrete models, which will be introduced in detail in a subsection each. The complete<br />

simulation model can also be found in Section H.3.<br />

11.3.1. CInitPSM – Initialisation Model<br />

The model of the state machine for the PSM initialisation is quite simple and only consists of<br />

sequence of stat<strong>es</strong>, which is shown in Figure 11.7. The state “Waiting_for_start_of_PSM”<br />

creat<strong>es</strong> all simulative adaptors for hardware interfac<strong>es</strong> and waits for user input because the<br />

generated EVC executable binary has to be started manually to connect to those adaptors via<br />

proxi<strong>es</strong>.<br />

Afterwards, “Initialising_DMI” creat<strong>es</strong> a proxy to acc<strong>es</strong>s the DMI in the PSM part of the<br />

EVC binary. The Boolean bInitialised signal is set to true to inform the other state machin<strong>es</strong><br />

that all preconditions for the simulation proc<strong>es</strong>s have been met.<br />

Currently, the RT-T<strong>es</strong>ter do<strong>es</strong> not support the usage of final state objects, which are part of<br />

the UML standard for state machin<strong>es</strong> [64]. Therefore, the empty and dead state “Final” is used<br />

to model that after the initialisation nothing more is executed by the CInitPSM state machine.<br />

Most stat<strong>es</strong> in all state machin<strong>es</strong> generate an output by the printf() function, which can<br />

be used to generate the simulation trac<strong>es</strong> d<strong>es</strong>cribed in Section 11.1.<br />

219

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

Saved successfully!

Ooh no, something went wrong!