SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 58 | Next

Jonathan Jacky, Margus Veanes, Colin Campbell, Wolfram Schulte

"Model-Based Software Testing and Analysis with C#"


Observable actions are nondeterministic.
The control program schedules each polling action by starting a timer (a controllable
action); when the timer times out (an observable action), the program polls the
sensor (controllable) and begins waiting for a message. When the message arrives
(observable), the program starts the timer again and the cycle begins over. The interval
that the timer waits before timing out determines the approximate frequency
at which polling occurs. It is not required that polling be exactly periodic.
The control program should continue working despite occasional faulty behavior
by the sensor. It is possible that the sensor may not respond when polled. In order to
prevent waiting indefinitely for an unresponsive sensor, each time the program polls,
it starts the timer again (a controllable action). After some time, either a message
arrives (an observable action) or the timer times out (another observable action); this
is another example of nondeterminism. If the time-out occurs, the control program
commands the sensor to reset, which may clear the problem. If it does, the sensor
sends back a message with a temperature sample.
It is possible that a faulty sensor may report an incorrect temperature. The control
program attempts to detect this. The temperature may vary over a wide range, so
a simple check that the temperature lies within this range would not be sound; an
incorrect temperature might be accepted.


Pages:
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6