23.05.2015 Views

Space Link Extension - Service Management - CCSDS

Space Link Extension - Service Management - CCSDS

Space Link Extension - Service Management - CCSDS

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.

DRAFT RECOMMENDED STANDARD FOR SPACE LINK EXTENSION SERVICE MANAGEMENT<br />

D4<br />

STATE MACHINE DIAGRAM<br />

D4.1 GENERAL<br />

State machine diagrams show the dynamic behavior of an entity based on its response to<br />

events, showing how the entity reacts to events depending on its state. They can specify the<br />

behavior of an interaction from the point of view of one partner in the interaction. When the<br />

focus is on the dialogue between UM and CM, separate state machines show the behavior at<br />

either end. When the focus is on the life cycle of an information entity managed by CM in<br />

response to interaction with UM, then the states of that entity are shown as seen by CM.<br />

D4.2 STATE MACHINE DIAGRAM EXAMPLE<br />

The following diagrams demonstrate the UML conventions used in the state machine<br />

diagrams.<br />

Figure E-6 shows the same events have different effects depending on the state they arrive in,<br />

and possibly on ‘guard conditions’. For example, if the customer selects a drink before<br />

inserting enough money to pay for it, the machine transitions to the ‘Selected’ state, whereas<br />

if enough money has already been inserted, the machine immediately starts dispensing.<br />

An event may cause a return to the same state, shown as an arrow returning to the state it<br />

starts from.<br />

state machine VendingMachine[ MainInterface ]<br />

switchedOn<br />

moneyInserted<br />

Idle<br />

moneyInserted<br />

Unselected<br />

drinkSelected [enoughPaid]<br />

drinkSelected [not enoughPaid]<br />

drinkSelected<br />

Selected<br />

moneyInserted [enoughPaid]<br />

Dispensing<br />

Returning Change<br />

moneyInserted [not enoughPaid]<br />

switchedOff<br />

Figure E-6: State Machine Diagram Example 1<br />

<strong>CCSDS</strong> 910.11-R-2 Page E-7 March 2008

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

Saved successfully!

Ooh no, something went wrong!