State machine diagram Flashcards

1
Q

What is a state machine diagram?

A

A diagram that describes behaviours of an object in term of:

  • The state that the object can be in
  • The transitions between the states
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe general syntax for labelling a transition

A

eventName(parameters)[guard]/actions

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

What is a composite state?

A

A state that includes many sub-states

The sub-states often share common transitions and actions

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

What is a state?

A

A point in the life-cycle of the object during which the object satisfies certain conditions and can respond to some kind of events

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

What is the meaning of transition to a composite state?

A

To start the sub-flow in the composite state

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

What is the meaning of transition from a composite state?

A

Can be applied to any of the sub-states in the composite state

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

Give history state example

Give concurrent states example

A

-

- States that exist in the composite state at the same time

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

How to hide the complexity of the state machine diagram?

A
  • Using entry and exit point

- Draw the composite state in details elsewhere

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