Figure uml.06 State Machine Diagram
A state is a condition satisfied by the attributes of an object. For example, an Incident object in FRIEND can exist in four states: Active, Inactive, Closed, and Archived (see Figure uml.06). An active Incident denotes a situation that requires a response (e.g., an ongoing fire, a traffic accident). An inactive Incident denotes a situation that was handled, but for which reports are yet to be written (e.g., the fire has been put out, but damage estimates have not yet been completed). A closed Incident denotes a situation that has been handled and documented.
An archived Incident is a closed Incident whose documentation has been moved to off-site storage. In this example, we can represent these four states with a single attribute in the Incident class—a status attribute that can take any of four values: Active, Inactive, Closed, and Archived. In general, a state can be computed from the values of several attributes. A transition represents a change of state triggered by events, conditions, or time. For example, Figure uml.06 depicts three transitions: from the Active state into the Inactive state, from the Inactive state to the Closed state, and from the Closed state to the Archived state.
A state is depicted by a rounded rectangle. A transition is depicted by an open arrow connecting two states. States are labeled with their name. A small solid black circle indicates the initial state. A circle surrounding a small solid black circle indicates a final state.
Related Posts :
UML Intro
UML State Machine
UML Class Diagram
UML Use Case Diagram
UML Activity Diagram
UML Component Diagram
UML Deployment Diagram
UML Intro
UML State Machine
UML Class Diagram
UML Use Case Diagram
UML Activity Diagram
UML Component Diagram
UML Deployment Diagram