Lecture 8 - analysis and design mode Flashcards

1
Q

what is the aim of the analysis and design model?

A

analysis model - gain understanding of the application domain (capture requirnments)
design model - produce a model to be used for implementing the system

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

what does an analysis model include?

A

use case diagrams, use case descriptions, domain class diagrams, state machine diagrams and activity diagrams

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

what does a design model include?

A

design class diagrams, state machine diagrams, sequence diagrams, atomic use specifications (atomis use cases are specific to our particular method)

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

what is a logical and detailed design model?

A

logical - what we do

detailed - UI, components to provide data persistance, etc

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

explain association in terms of design model?

A

associations - if class contains element of another

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

what are top-level entries?

A

permits: set is a system (allows entry points to access the domain objects stored in the system)

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

what must top-level entries and navigation paths ensure?

A

that we can reach every donmain object (system object)

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

attributes of a one-to-one association?

A

no new classes, include an object of the other classes type as a member of class at tail of arrow

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

attributes of a one-to-many association?

A

no new classes, include a STL container that holds class objects from the many side

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

attributes of a many-to-many association? (without relationship attributes)

A

either include set of classes of many type in both, or introduce a new class that holds a member of each type.

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

attributes of a many-to-many association? (with relationship attributes)

A

introduce new lass that holds new attributes

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

attributes of a ternary or higher order association?

A

have to introduce new class to represent association

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

give an example of when we may change a relationship? (order and customer)

A

customer and order have a one to many relatioship, but we may make it a one-to-one relationship if we dont want customer info to be shared amongst order objects (now when customer makes 2 orders 2 it treats this customer as 2 different unrelated people)

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

what should classes include in a domain class diagram?

A

all attribute names, if useful then add attribute types and/or methods

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