State Machine Diagrams Flashcards

1
Q

What is a State Machine Diagram? (State Machine Diagrams)

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Start State and how is it represented? (State Machine Diagrams)

A

It indicates where the start of the state is and it is represented as a black dot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Transition and how is it represented? (State Machine Diagrams)

A

A transition changes an object from one state to another. Represented by a black arrow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a State and how is it represented? (State Machine Diagrams)

A

A state is a representation of an object in a specified period in time. Respresented by a box.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an End State and how is it represented? (State Machine Diagrams)

A

And end state is where the lifecycle of the object ends. It is represented by a dot surrounded by a circle.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Transition? (State Machine Diagrams)

A

It shows how a state transitions from one state to another. Will be labelled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an Event? (State Machine Diagrams)

A

An event can also be seen as a state for example for a car it could be first registered, ved paid, etc..

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a No State Change and a State Regression? (State Machine Diagrams)

A

Some events may leave an object in a same state or return an object to a previous state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an Action? (State Machine Diagrams)

A

When an event occurs it might initiate some action. (Will be specified within the state).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Conditional Transition? (State Machine Diagrams)

A

A transition that is permissable only under specific conditions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a Guarded Transition? (State Machine Diagrams)

A

Used to test data primarily, an example is [amount<=balance] is the amount passes the logic the state will be in credit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a Composite State? (State Machine Diagrams)

A

A state containing one or more regions (States).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly