An introduction to state management analogy
Life cycle is an important phenomenon in event-driven implementation of components in any system. Components of the system pass through a predefined series of valid states. The transition across states is governed by events associated with the state and actions to be performed to address the event occurred.
Here are the some key terms that are used in this chapter:
- State: In computer science, the state of a computer program is a technical term for all the stored information, at a given instance in time, to which the program has access.
- Event: An event is an action or occurrence detected by the program that may be handled by the program. Typically, events are handled synchronously with the program flow, that is, the program has one or more dedicated places where events are handled.
- Event handle: Handles are associated with the events that describe what would be the next state and store information for the process if a particular event occurred.
- State...