Chapter 5 Flashcards

1
Q

Name the two types of behaviour models

A
  1. Control-flow oriented models:
    Captured with state charts and activity diagrams
  2. Data-flow oriented models

Note:
State charts model the functional states of a component and the transition between them.

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

State charts support the modelling of?

A
  1. Hierarchical state charts and
  2. Concurrent state charts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain Activity charts

A

They model an algorithm by defining the control flow, using modelling elements such as operations, branches etc

They can be used to model the methods of a passive component that receives an input and produces an output. The behaviour of active components can better be modelled using state charts ( components that are continuously active)

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

Activity chart with concurrent control flow

A

Fork modelling element is used to split the control flow into concurrent threads. The Join modelling element is used to synchronise the concurrent threads by combining them into a single common thread.

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

In state charts, a transition consists of four elements, namely

A
  1. The start and end state
  2. The trigger
  3. A guard
  4. An effect
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In state charts, the trigger event types can be captured using 5 different event types in UML which are

A
  1. Signal event
  2. Change event
  3. Call event
  4. Time event
  5. Completion event
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Hierarchical and concurrent state charts are modelled respectively by

A

OR-States which means that the component can either be in one state or another and AND-States which means that the component can be in one state and another state at the same time.

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

Two modeling elements of block diagram are

A

Blocks and connections.

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

In block diagrams, sources define

A

The entry point of data flow and only have output values.

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

In block diagram, sinks define

A

The exit points of data flow and only have inport values.

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

What is the difference between structure model and behavior model

A

Their difference lies in the aspect of the system that are to be modeled. Structure models focus on defining the structure of the system, the component’s internal behavior is not considered. They are at higher level of abstraction than behavior models.

The semantics of connections in data-flow oriented behavior models is often limited to mathematical relations.

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

What is hybrid models?

A

It is a behavior model that contains both data-flow oriented and control-flow oriented models in a single model.

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

The strength and weakness of control-flow oriented models

A

It’s strength lies in modeling state-based, discrete behavior and its weakness is modeling of continuous behavior.

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

The strength and weakness of data-flow oriented behavior model

A

It’s strength lies in modeling of continuous behavior and it’s weakness in modeling control-flow and state-based behavior.

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

Transition in state chart is defined by

A
  1. Trigger
  2. A guard
  3. Effect
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Five trigger event types

A
  1. Signal events
  2. Change event
  3. Call event
  4. Time event
  5. Completion event