calc_hsm.py File Reference


Classes

class  calc_hsm.CalcEvent
 Calc state machine events. More...
class  calc_hsm.CalcHsm
 Calc state machine. More...

Packages

package  calc_hsm

Variables

 calc_hsm.SIG_CLEAR = SIG_USER
 Clear signal, user has pressed the clear button.
int calc_hsm.SIG_CLEAR_ENTRY = 1
 Clear Entry signal, user has pressed the clear entry button.
int calc_hsm.SIG_DIGIT_1_9 = 2
 Digit 1-9 signal, user has pressed a digit button ranging from 1 to 9.
int calc_hsm.SIG_DIGIT_0 = 3
 Digit 0 signal, user has pressed the 0 button.
int calc_hsm.SIG_OPERATOR = 4
 Operator signal, user has pressed an operator (add, subtract, multiply, divide) button.
int calc_hsm.SIG_POINT = 5
 Point signal, user has pressed the decimal point button.
int calc_hsm.SIG_EQUALS = 6
 Equals signal, user has pressed the equals button.

Detailed Description

Author:
Daniel Newton <djpnewton@gmail.com>
Version:
1.0

LICENSE

Copyright (c) 2009 Daniel Newton

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

DESCRIPTION

The calc state machine

Generated on Thu Feb 4 09:29:18 2010 for simplehsm(python) by  doxygen 1.5.9