7
Real Time Systems Behaviour Exercise Solution

Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise Refer to the following 2 state diagrams: Television Satellite Receiver

Embed Size (px)

Citation preview

Page 1: Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise  Refer to the following 2 state diagrams:  Television Satellite Receiver

Real Time Systems

BehaviourExercise Solution

Page 2: Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise  Refer to the following 2 state diagrams:  Television Satellite Receiver

Behaviour Exercise - 2

Exercise

Refer to the following 2 state diagrams: Television Satellite Receiver – Top State Television Satellite Receiver – Operate Sub-state

Assume that initially you are in the Locked sub-state. After that follow the state machine wherever the transition chains take you: doDiagnostics followed by changeChannel followed by orderMovie followed by status followed by diag_timeout signal;

assume EvaluateTest = false

Page 3: Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise  Refer to the following 2 state diagrams:  Television Satellite Receiver

Behaviour Exercise - 3

Television Satellite Receiver – Top State

changeChannel,

Page 4: Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise  Refer to the following 2 state diagrams:  Television Satellite Receiver

Behaviour Exercise - 4

Television Satellite Receiver – Operate Sub-state

Page 5: Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise  Refer to the following 2 state diagrams:  Television Satellite Receiver

Behaviour Exercise - 5

Exercise - solution

Assume that initially you are in the Locked sub-state. After that follow the state machine wherever the transition chains take you: doDiagnostics

doDiagnostics enter Diagnostic *end in Diagnostic

followed by changeChannel ignoreSignals *end in Diagnostic

Page 6: Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise  Refer to the following 2 state diagrams:  Television Satellite Receiver

Behaviour Exercise - 6

Exercise - solution

followed by orderMovie exit Diagnostic deferMovie enter Diagnostic *end in Diagnostic

followed by status exit Diagnostic exit Operate Status enter Diagnostic *end in Diagnostic

Page 7: Real Time Systems Behaviour Exercise Solution. Behaviour Exercise - 2 Exercise  Refer to the following 2 state diagrams:  Television Satellite Receiver

Behaviour Exercise - 7

Exercise - solution

followed by diag_timeout signal; {assume EvaluateTest = false} exit Diagnostic EvaluateTest (return false) False Exit Operate failedDiagnostics Enter Failed