Hacker News new | past | comments | ask | show | jobs | submit login

Ultimately state is a function of time. Events are thus temporal effects from the outside world that can, depending on their values, cause a transition from a state to another state within the machine. If you model the machine as a graph where vertices are states and edges are events then a transition can be seen as a function from a (state, event) pair to a state, ie. (CurrState, Event) -> NewState. I've posted a simple explanation below, check it out if you like.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: