In order to understand the different states of an object, you might want to visualize all of the possible states and show how an object gets to each state, and you can do so with a UML state diagram.Įach state diagram typically begins with a dark circle that indicates the initial state and ends with a bordered circle that denotes the final state. States refer to the different combinations of information that an object can hold, not how the object behaves. A state machine is any device that stores the status of an object at a given time and can change status or cause other actions based on the input it receives.