State machine diagrams depict the various states that an object may be in and the transitions between those states. A state represents a stage in the behavior pattern of an object, and like Activity diagrams it is possible to have initial states and final states. An initial state, also called a creation state, is the one that an object is in when it is first created, whereas a final state is one in which no transitions lead out of. A transition is a progression from one state to another and will be triggered by an event that is either internal or external to the object.
We can show parallel states in the stae diagram. The state could also be reflexive. Transitions can have gaurd conditions which allow transition to other state only when they are full filled.
Each transition is a result of some event which would act as a trigger for the transition.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment