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

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

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

11.2. Platform Specific Model for the Simulation<br />

current train speed and the absolute distance. Their simulative calculation will be explained in<br />

Subsection 11.2.3, which illustrat<strong>es</strong> details about the implementation.<br />

According to Req.15, the acc<strong>es</strong>s to the DMI is realised by the definition of another D-Bus<br />

interface that is used in the concrete DMI observer CDMIQWidget from Subsection 8.3.2.<br />

Since the r<strong>es</strong>ulting generated D-Bus adaptor is simply used as composition, an additional<br />

UML diagram is omitted. Details about the interface and the adaptor can be found alongside<br />

with all other openETCS domain framework d<strong>es</strong>cription in Appendix D. The acc<strong>es</strong>s to the<br />

DMI from the simulation is in conflict with the general d<strong>es</strong>ign principle that only acc<strong>es</strong>s<strong>es</strong><br />

by method calls from the PIM to the PSM are allowed. Therefore, the DMI adaptor should<br />

only be available for simulation purpos<strong>es</strong> and only be used if required. This is done by the<br />

openETCS C++ generator by setting a Boolean property of the gEVCStateMachine root graph.<br />

The full documentation of the graph properti<strong>es</strong> can be found in Section B.1.<br />

11.2.2. Deployment D<strong>es</strong>ign<br />

The deployment of the PSM for the simulation is shown in Figure 11.5, which is an extension<br />

of the PSM execution environment in Figure 8.19. The new artefacts are d<strong>es</strong>cribed below:<br />

Simulation<br />

Holds all the PSM implementations needed for providing simulative<br />

hardware devic<strong>es</strong>.<br />

WrapperFunctions<br />

SimulationModel<br />

DMIDBusInterface<br />

DMIDBusAdaptor<br />

SimulationModel.xmi<br />

Provide a C-API for acc<strong>es</strong>sing objects of class<strong>es</strong> of the Simulation artefact<br />

because the RT-T<strong>es</strong>ter module used for code generation currently<br />

only supports the generation of C source code [72].<br />

Holds the simulation source code generated from the simulation<br />

model.<br />

Provid<strong>es</strong> the generated sourc<strong>es</strong> for the D-Bus proxy of the additional<br />

adaptor for the DMI / CDMIQWidget class.<br />

Includ<strong>es</strong> the generated sourc<strong>es</strong> for the D-Bus adaptor for the DMI<br />

r<strong>es</strong>pectively the class CDMIQWidget.<br />

Exported UML simulation model as XMI file.<br />

DMI.xml<br />

Is the D-Bus interface specification for the required DMI adaptor<br />

(Req.15).<br />

Details about the simulation model itself and the corr<strong>es</strong>ponding code generation can be found<br />

in Section 11.3 and Section 11.4.<br />

The libopenETCSPSMSIM component combin<strong>es</strong> the static source code for the simulation<br />

environment as library and is imported by the Simulation executable binary.<br />

The manif<strong>es</strong>tation of the libopenETCSPIM component is not complete in Figure 11.5 and only<br />

repr<strong>es</strong>ents the extensions compared to Figure 8.19. Since the usage of the DMI D-Bus adaptor<br />

is not defined before the generation of the GeneratedInstantiations artefact (Figure 8.19), the<br />

DMIDBusAdaptor source artefact must always be a part of the libopenETCSPIM library<br />

component.<br />

215

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

Saved successfully!

Ooh no, something went wrong!