Question

Examine the design class diagram and add qualifiers to each association: inheritance, interface-implementation, aggregation, composition, or just a regular navigation visibility. LiveDaracT> AddToDoActivity etends AppCompesk RecyclerView etana Viero orsmtrs fields oons tructors- impleme NieaingCN method

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi, Please find below design class diagram table with qualifiers.

Association Qualifier Description
ToDoRepository -> ToDoDao Aggregation

ToDoRepository is the whole which is an aggregation of ToDoDao and other potential Daos.

ToDoViewModel -> LiveData<T> Aggregation ToDoViewModel has LiveData<T> as its member which is an aggregation.
ToDoRepository -> LiveData<T> Aggregation ToDoRepository contains LiveData<T> as its member which is an aggregation.
MainActivity -> ToDoRepository Aggregation MainActivity contains ToDoRepository as its member which is an aggregation.
AppCompatActivity -> MainActivity Inheritance, Navigation Visibility MainActivity extends AppCompatActivity which is an inheritance. Also MainActivity is dependent on AppCompatActivity which is a regular navigation visibility.
AppCompatActivity -> AddToDoActivity Inheritance AddToDoActivity extends AppCompatActivity which is an inheritance.
ToDoViewModel -> ToDoRepository Aggregation,Navigation Visibility ToDoViewModel contains ToDoRepository as its member which is an aggregation. Also ToDoViewModel is dependent on ToDoRepository which is a Navigation dependency.
ToDoAdapter -> MainActivity Navigation Visibility MainActivity delegates control to ToDoAdapter which is a Navigation dependency.
RecyclerVIew -> DateConverter N/A As per class diagram, there is no relationship between RecyclerView and DateConverter
ToDo -> MainActivity Navigation Visibility ToDo is dependent on MainActivity so it is an Navigation Dependency
Add a comment
Know the answer?
Add Answer to:
Examine the design class diagram and add qualifiers to each association: inheritance, interface-implementation, aggregation, composition, or...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT