05.11.2014 Views

AN: Capstone Dive Computer Example - Quantum Leaps

AN: Capstone Dive Computer Example - Quantum Leaps

AN: Capstone Dive Computer Example - Quantum Leaps

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.

Application Note:<br />

<strong>Capstone</strong> <strong>Dive</strong> <strong>Computer</strong> <strong>Example</strong><br />

www.state-machine.com<br />

2.4 Step 4: Designing the State Machines<br />

At the application level, you can mostly ignore such aspects of active objects as the separate task<br />

contexts, or event queues, and view them predominantly as state machines. In fact, your main job<br />

in developing QP application consists of elaborating the state machines of your active objects.<br />

2.4.1 <strong>Capstone</strong> State Machine<br />

Figure 5 shows the state machine associated with <strong>Capstone</strong> active object. The explanation section<br />

immediately following the state diagram explains the main interesting points.<br />

Figure 5 <strong>Capstone</strong> state machine.<br />

Copyright © <strong>Quantum</strong> <strong>Leaps</strong>, LLC. All Rights Reserved.<br />

13 of 29

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

Saved successfully!

Ooh no, something went wrong!