|
Enter Candidate Site Entries Here
Remember to write the author(s) name for each entry by entering four tildes at the end of your article(~). Example Entry 1 TitleExample Entry 1 Body Signature: Rescalante 14:00, 4 March 2009 (MST) Finite State MachinesA finite state machine (FSM) or simply a state machine, is a model of behavior composed of a finite number of states, transitions between those states, and actions. A finite state machine is an abstract model and can be implemented in both software and hardware. Vending Machine Example You have a vending machine to implement using a finite state machine in software. Your vending machine only takes quarters and items cost a dollar. If you receive more than $1 then they were being generous. http://i719.photobucket.com/albums/ww198/oscarsveliz/public/quarter_state.jpg 0 is initial state On Quarter event transition to next event. On Coin Return event transition to initial state and return change. On Vend event transition to initial state and vend selected item. Pseudocode
Signature: Oscar Veliz 10:23, 24 April 2009 (MST) |