Finite State Machines
This is a very interesting and useful subject I'm impressed hasn't been used more when designing Information Systems. Finite State Machines are abstract representations of 2 or more states for a given object. In Finite State Machines or FSM for short, only 1 state can be active at a time so it transitions from one state to another in order to perform application logic.
They are a way of controlling and organizing program logic with plenty of use in Artificial Intelligence.
They are a way of controlling and organizing program logic with plenty of use in Artificial Intelligence.
|
The most basic FSM I could come up with. It makes use of Classes so its not so basic as to be unusable and divides application logic from State Machine neatly.
It randomly passes from one state to another according to the value generated by a random integer. |
lampfsm.py.zip | |
File Size: | 0 kb |
File Type: | zip |