State Machine Diagrams Flashcards
What is a State Machine Diagram? (State Machine Diagrams)
A diagram that allows us model all the events that can logically occur for an object in a state. It specifically allows to model the objects lifecycle.
What is a Start State and how is it represented? (State Machine Diagrams)
It indicates where the start of the state is and it is represented as a black dot.
What is a Transition and how is it represented? (State Machine Diagrams)
A transition changes an object from one state to another. Represented by a black arrow.
What is a State and how is it represented? (State Machine Diagrams)
A state is a representation of an object in a specified period in time. Respresented by a box.
What is an End State and how is it represented? (State Machine Diagrams)
And end state is where the lifecycle of the object ends. It is represented by a dot surrounded by a circle.
What is a Transition? (State Machine Diagrams)
It shows how a state transitions from one state to another. Will be labelled.
What is an Event? (State Machine Diagrams)
An event can also be seen as a state for example for a car it could be first registered, ved paid, etc..
What is a No State Change and a State Regression? (State Machine Diagrams)
Some events may leave an object in a same state or return an object to a previous state.
What is an Action? (State Machine Diagrams)
When an event occurs it might initiate some action. (Will be specified within the state).
What is a Conditional Transition? (State Machine Diagrams)
A transition that is permissable only under specific conditions.
What is a Guarded Transition? (State Machine Diagrams)
Used to test data primarily, an example is [amount<=balance] is the amount passes the logic the state will be in credit.
What is a Composite State? (State Machine Diagrams)
A state containing one or more regions (States).