Introduction to Object Diagrams and Communication Diagrams and Sequence Diagrams Flashcards

1
Q

What is a Class Diagram? (Object and Communication Diagrams)

A

Show all the classes for the area of business being analysed and how they relate to each other over time.

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

What is an Object Diagram? (Object and Communication Diagrams)

A

Show how specific instances of the classes relate to each other at a specific instant in time.

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

How are Object Diagrams written? (Object and Communication Diagrams)

A

Written with their names underlined plus the class they belong to.

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

How is a Object shown? (Object and Communication Diagrams)

A

In a rectangular box, same as the class, but we label it with the name of this particular instance followed by a colon and the class name. All of these underlined.

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

What are some difference between an Object and Class Diagram? (Object and Communication Diagrams)

A

We look at objects not classes, we focus on links not associations.

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

What is the difference between a Use Case and a Use Case Realisation? (Object and Communication Diagrams)

A

Use case is a description of the external sequence of events between an actor and the system needed to meet a requirement. Use Case Realisation is a sequence of events and interactions that form part of a use case. Each UCR gives us a temporal specification of actions carried out, and for each use case there will be several realisations.

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

Use Case Realisation in Analysis? (Object and Communication Diagrams)

A

Understand which objects are required to meet each Use Case Description. Of particular interest are the entity objects (Data) - these should be found on the Domain Class Diagram.

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

Use Case Realisation in Design? (Object and Communication Diagrams)

A

Understand what operations will be required on which objects in order to realise each Use Case. Also serves to confirm and augment the attributes of the object too.

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

What is View of Participating Classes (VOPC)? (Object and Communication Diagrams)

A

A diagram of all the entity classes whose instances work together to realise the use case.

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

What is VOPC a subset of? (Object and Communication Diagrams)

A

The documentation is a subset of the Domain Class Model.

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

UC Architecture - Best Practice? (Object and Communication Diagrams)

A

Requires grouping objects into layers based on a separation of concerns, there are 3 standard layers.

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

UC Architecture - Boundary? (Object and Communication Diagrams)

A

Objects that provide a means for actors to communicate with the system. For an interactive user this could be a form or page. For external systems some form of protocol-based interface. Usually one for every actor-system association found in the use=case model.

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

UC Architecture - Control? (Object and Communication Diagrams)

A

Objects that act as a placeholder for the logic of a use case. Uusally one for each use case being realised.

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

UC Architecture - Entity? (Object and Communication Diagrams)

A

Objects discovered during Domain Class Modelling. These objects represent the business domain and persist beyond the execution of a single use case. Usually some form of database is used to support the persistence of these objects.

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

What is the Boundary Stereotype? (Object and Communication Diagrams)

A

specialises objects for presentation and manipulation. Boundary objects present and communicate the information in a system to another system, such as a human or a machine (that is, actors). The boundary objects can also enable the manipulation of the information (through well-defined rules in the entity objects). Boundary objects are typically windows, dialog boxes, or communication classes, such as TCP/IP.

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

What is the Control Stereotype? (Object and Communication Diagrams)

A

is used to connect boundary objects with their entity objects and to handle a sequence of operations inside the system. Control objects hold the logic of the Use Case, as describe in the Use Case description. The entity objects carry the information that is presented and manipulated through boundary objects. Control objects typically handle the processing of the information in the entity objects, along with the functionality sequences from the Use Case that involve a number of entity objects.

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

What is the Entity Stereotype? (Object and Communication Diagrams)

A

is used to model business objects (the core concepts) such as debt, invoice, insurance contract, and so on. They are typically persistent so that they can be stored in the system. The classes of these objects should be found on the Domain Class model.

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

What does a Boundary icon look like? (Object and Communication Diagrams)

A

a circle with a hammer shape coming out.

19
Q

What does a Control Icon look like? (Object and Communication Diagrams)

A

a circle with an arrow (snake eating itself)

20
Q

What does an Entity Icon look like? (Object and Communication Diagrams)

A

a circle with a line underneath it.

21
Q

Why are stereotypes important? (Object and Communication Diagrams)

A

allow to extend the vocubolary of the UML so that you can create new model elements, derived from exisiting ones, but that have specific properties that are suitable for your problem domain.

22
Q

What is a Communication Diagram? (Object and Communication Diagrams)

A

Shows interactions between the objects involved in the use case, show the communicating links between participating objects and show the messages passed along those communication links.

23
Q

What is the difference between a Communication and Sequence Diagram? (Object and Communication Diagrams)

A

Sequence diagram emphasise on time ordering of interactions. Communication diagram emphasises on context and overall organisation of the participantrs that are itneracting.

24
Q

What does an Object Diagram show? (Object and Communication Diagrams)

A

Shows the links between different objects.

25
Q

Who will usally draw first a Communication Diagram? (Object and Communication Diagrams)

A

Business Analyst.

26
Q

What does Sending a Message mean in Interaction Diagrams? (Object and Communication Diagrams)

A

It means invoking an object’s behaviour.

27
Q

What form does a Full Message signature take? (Object and Communication Diagrams)

A

messageName(parameters): returnType. Parameters carry data that the operation needs: returnType is the type of data we expect back from the operation once completed.

28
Q

What are the different ways of showing a Communication Diagram? (Object and Communication Diagrams)

A

With messages or using icons (with messages).

29
Q

What is a Sequence Diagram? (Sequence Diagrams)

A

Show participant interactions arranged in time sequence. They depict the sequence of messages exchanged to carry out the functionality of the scenario. Asscoiated with Use Case Realisation.

30
Q

What is a Sequence Diagram a representation of? (Sequence Diagrams)

A

A graphical representation of a Use Case Realisation.

31
Q

What is an advantage of a Sequence Diagram over a Communication Diagram? (Sequence Diagrams)

A

Sequence’s diagram vertical axis show time therefore numbering required for communication diagrams can be removed.

32
Q

Where are participants shown in a Sequence Diagram? (Sequence Diagrams)

A

Across the top of the diagram.

33
Q

What is a lifeline? (Sequence Diagrams)

A

A line assigned for each participant.

34
Q

What is an Activation Bar and what else can you tell me about it? (Sequence Diagrams)

A

Shows when the participant is actively involved in a UC step.(they are optional)

35
Q

What is a message? (Sequence Diagrams)

A

Messages go from one participant lifeline to another, or back to itself.

36
Q

What is a call/synchronous? (Sequence Diagrams)

A

Request from the object sending the message for the receiveing object to carry out one of its operations.

37
Q

What is a return? (Sequence Diagrams)

A

Returns are typically involved to indicate that the operation is complete.

38
Q

What is asynchronous? (Sequence Diagrams)

A

Indicates that the sending object transfers control to the receiving object and doesn’t wait for the operation to complete.

39
Q

What are Sequence Diagrams designed for? (Sequence Diagrams)

A

Sequences!

40
Q

What are combined fragments? (Sequence Diagrams)

A

As logic is not always straightforward we can use combined fragments overlaid on the diagram.

41
Q

What is a Loop? (Sequence Diagrams)

A

Used to mdel a repetitive sequence.

42
Q

What is an Alt? (Sequence Diagrams)

A

Alternatives are used to designate a mutually exclusive choice between two or more message sequences.

43
Q

What is an Opt? (Sequence Diagrams)

A

Is optional? Requires a confirmation?

44
Q

What is a Par? (Sequence Diagrams)

A

Can be used to show that there is no dependency between the two messages.