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 />

stimulations<br />

mod<strong>es</strong>, transitions<br />

Simulation Trac<strong>es</strong> EVC<br />

mod<strong>es</strong>, transitions<br />

ETCS outputs<br />

Figure 11.3.: Data flow of the generation of trac<strong>es</strong> for Mod<strong>es</strong> and transitions<br />

Req.14: simulation of the physical behaviour of the train<br />

Req.15: acc<strong>es</strong>s to DMI inputs and outputs<br />

Req.13 The simulative PSM must be developed using the already proposed platform-specific<br />

adaptor stubs in Figure 8.18 to make it directly usable for any openETCS model / CIM.<br />

Thus, those stubs or rather their methods only have to be implemented with the simulative<br />

functionality by class inheritance.<br />

Req.14 Since the simulation us<strong>es</strong> no hardware components, the physical behaviour must be<br />

simulated, too. This means, for example, if a brake system (service or emergency) is applied, the<br />

r<strong>es</strong>ulting output value of the odometer should be modified in a physically meaningful manner.<br />

Therefore, a physical model for the train movement and for brak<strong>es</strong> must be implemented in<br />

the simulative PSM.<br />

Req.15 Corr<strong>es</strong>ponding to Figure 11.1, the simulation do<strong>es</strong> not only need acc<strong>es</strong>s to hardware<br />

interfac<strong>es</strong> in the PSM because the driver’s behaviour should be modelled by manipulating inputs<br />

of the DMI. Furthermore, DMI outputs must be used to trace the state and the behaviour of<br />

the EVC binary, as it is defined in Figure 11.3. Therefore, an additional interface for acc<strong>es</strong>sing<br />

the DMI via D-Bus has to be defined and implemented.<br />

11.2.1. Structural D<strong>es</strong>ign<br />

According to Req.13, the simulative PSM should implement the provided adaptor stubs. This<br />

is done by inheritance from the stub class<strong>es</strong>, as it is shown in the UML class diagram in<br />

Figure 11.4. For simplification, all class nam<strong>es</strong> used in this section refer to the simulative<br />

class<strong>es</strong> in the ::oETCS::DF::PS::SIM UML package. The physical model of the train is located<br />

in the CServiceBrake class, which us<strong>es</strong> a separated thread for the permanent calculation.<br />

This is indicated by the composition m_p<strong>Ph</strong>ysicalCalculation to the ::std::thread class. The<br />

COdomoter class holds – due to its <strong>der</strong>ivation from the stub class in the PS package – the<br />

213

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

Saved successfully!

Ooh no, something went wrong!