Public Member Functions | |
def | __init__ |
def | add_state |
def | run |
def | set_start |
Public Attributes | |
endStates | |
handlers | |
startState |
(finite) State Machine from the great David Mertz's great Charming Python article.
Definition at line 67 of file dxfReader.py.
def draftlibs::dxfReader::StateMachine::__init__ | ( | self | ) |
Definition at line 70 of file dxfReader.py.
def draftlibs::dxfReader::StateMachine::add_state | ( | self, | ||
handler, | ||||
end_state = 0 | ||||
) |
All states and handlers are functions which return a state and a cargo.
Definition at line 75 of file dxfReader.py.
def draftlibs::dxfReader::StateMachine::run | ( | self, | ||
cargo = None | ||||
) |
Definition at line 86 of file dxfReader.py.
def draftlibs::dxfReader::StateMachine::set_start | ( | self, | ||
handler | ||||
) |
Sets the starting handler function.
Definition at line 81 of file dxfReader.py.
Definition at line 73 of file dxfReader.py.
Definition at line 71 of file dxfReader.py.
Definition at line 72 of file dxfReader.py.