Activity Diagram Flashcards

(16 cards)

1
Q

What is the primary focus of an activity diagram?

A

Modelling procedural processing

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

Node

A

actions, objects, control nodes

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

Edges

A

control flow, object flow

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

What is a “token” in activity diagrams?

A

A virtual mechanism that:
- grants execution permission to actions (control token)
- transports data (object token)

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

What are the 4 key control nodes?

A
  1. Initial node: Starts activity
  2. Activity final node: Ends all flows
  3. Decision node: Splits paths with guards
  4. Merge node: Combines alternative paths
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How are concurrent paths modeled?

A
  • Parallelisation node: Splits into concurrent flows
  • Synchronisation node: Waits for all flows to complete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an object node?

A

Represents data/objects exchanged between actions

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

Central Buffers vs Data Stores

A
  • Central Buffer: Transient (deletes tokens after reading)
  • Data Store: Permanent (copies tokens)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 2 types of event-based actions?

A
  1. Send signal: Triggers an event
  2. Accept event: Waits for an event/time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a partition?

A

Groups nodes by responsibility/roles

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

How are exception handled?

A
  • Exception handler: Replaces a failed action
  • Interruptible region: Terminates a group of actions on an event
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What symbol represents a call behaviour action?

A

Fork icon

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

What happens when a token reaches an activity final node?

A

All flows terminate immediately (even concurrent ones)

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

How are guards written in activity diagrams?

A

In square brackets: [grade >= 5]. Must be mutually exclusive for decision nodes.

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

What does {weight=30} on an edge mean?

A

The action requires 30 tokens to execute (default=1)

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

When are connectors used?

A

To simplify diagrams when actions are far apart (avoid crossing lines)