25.12.2014 Views

On improving efficiency of model checking through systematically ...

On improving efficiency of model checking through systematically ...

On improving efficiency of model checking through systematically ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

4.4 Subway system<br />

This case study is a subway regulation system taken from [22]. It concerns<br />

a (simplified version <strong>of</strong> a) speed regulation system avoiding collision. Each<br />

train detects beacons that are placed along the track, and receives the “clock<br />

tick” from a central clock. Ideally, a train encounters one beacon each clock<br />

tick. The space between beacons rules the speed <strong>of</strong> the train. Now, a<br />

train adjusts its speed as follows: let b and s be respectively the number <strong>of</strong><br />

encountered beacons and the number <strong>of</strong> received clock ticks.<br />

• When b ≥ s + 10, the train notices it is early, and puts on the brake<br />

as long as b>s. Continously braking makes the train stop before<br />

encountering 10 beacons (using a counter c).<br />

• When b ≤ s − 10, the train is late, and will be considered late as long<br />

as b

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

Saved successfully!

Ooh no, something went wrong!