Lecture 3: Relationships and Packages Flashcards

1
Q

What is a relationship?

A

A relationship is a connection between modelling elements

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

What does association have between classes?

A
  • Aggregation
  • Composition
  • Association classes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a link?

A
  • Is the connection between objects

* How they communicate using messages to invoke operations

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

What is the term used to implement links in OO programming?

A

Object references/Pointers

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

What is an association?

A
  • Relationships between classes

* Links Instantiate association

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

What is multiplicity?

A

Is a constraint that specifies the number of objects that can participate in a relationship

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

What is a reflexive association?

A
  • Is a relationship that “reflexes” itself.

* Objects of the class have links to other objects of the same class

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

What is navigability?

A

• Traverse an object SOURCE CLASS into a TARGET CLASS

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

What is the standard practice of navigability?

A
  • Bi-directional associations have NO arrows
  • Unidirectional associations have a SINGLE arrow
  • Can’t show association that are navigable in BOTH directions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When do we use association?

A
  • The target class is important part of the model

* Target class shown in the model

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

When do we use attributes?

A
  • When it is not the important part of the domain (number/string)
  • Just an implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a association class syntax?

A

The association class consists of the class, the association and the dashed line

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

What two important links does association class syntax consist of?

A

They are links that have attributes and operations

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

When can you use association classes?

A

When there is only ONE UNIQUE LINK between objects

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

What is generalisation?

A

A relationship between a common class that shares the same attributes and behaviour in a generalised class

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

What is class inheritance

A

When a child class inherits all the features from the parent class

17
Q

What is overriding?

A

Subclasses override the methods of superclasses with the same signatures constraints and relationships

18
Q

What is an abstract class?

A

• A class that does not provide a complete declaration cannot be instantiated.

19
Q

What is Polymorphism?

A
  • Has many forms of and changes of implementation.

* It allows you to design systems to use as an abstract class then substitute concrete classes

20
Q

What is analysis packages?

A

• Organises modelling elements into groups
o Defines the semantic boundary
o Provides parallel working and configuration

21
Q

What do analysis packages contain?

A

Classes, data. entities, use cases and analysis packages

22
Q

What is the UML term for analysis packages?

A

Logical grouping mechanism

23
Q

What is Package generalisation?

A
  • More child packages inherit the public and private operations of the parent
  • Child packages override the parent package
24
Q

What is Architectural Analysis?

A

Organises the groupings of model elements that have a strong semantic connection into cohesive packages

  • Should be layered and partitioned
  • Coupling packages should be minimised
25
Q

How do you find analysis packages?

A

• Discovered in model matures
• Natural groupings in use case model to identify the analysis packages
- One or more business process/actors

26
Q

What does the architectural analysis define?

A

The structure of the analysis model defines the logical system architecture