state charts Flashcards

1
Q

what are statechart diagrams

A

show the behaviour of the system in response to external and internal events

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

what are statechart diagrams used for

A

modelling real time systems

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

They show system states as?

A

nodes

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

they show events as?

A

arcs

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

Are statecharts an integral part of Unified Modelling Language (UML)

A

yes

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

how is an initial state denoted

A

solid circle and is optional as system can start in difference places

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

how is a final state denoted

A

solid circle with a ring around it and is also option

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

how are states represented

A

rounded rectangles

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

What does each state contain

A

state name and a brief description of the action performed

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

Does a state machine model show the flow of data within the system?

A

no

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

what is ‘do’

A

optional - brief description of actions is included following the do in each state

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

What does the label on an arc denote?

A

the method called to move from one state to the net(event)

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

why is a guard used?

A

to ensure the system only moves from one state to another if an expression is satisfied

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

what is a composite state

A

a state containing a subdiagram witjin in. Useful when you want to model subsystem

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

how would you denote actions after an event?

A

using a /

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

Do you need an idle state when process isnt active?

A

yes

17
Q

does statechart diagrams need an exit>

A

yes so no deadlock even in error conditions

18
Q

What are finite state machines

A

also known as Finite state automata are models of the behaviours of a system or a complex object.

19
Q

What does finite state machines consist of

A

set of states, inital state, input alpahbet and a transitio ffunction

20
Q

what is a model

A

abstract system view