[Skip Navigation] [ CSUSB ] / [CNS] / [CSE] / [R J Botting] / [CS375] [Search ]
[About] [Contact] [Grades] [Objectives] [Patterns] [Projects] [Schedule] [Syllabus]
Session: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
[Text Version] 19r.html Wed Jan 11 07:26:06 PST 2012


    Review Questions 19 -- UML Interaction Diagrams and DCDs

  1. Name the two types of interaction diagrams and give very simple example of the same interaction using one type of diagram and the other. Add a DCD that supports the interaction.
  2. How do you show that one class is responsible for creating an object? Show the creation UML notation for both types of interaction diagram. How might you show this in a DCD?
  3. How do you show that a class is responsible for executing an operation rather than an object?
  4. How do you show an operation that will be static in C++ or Java?
  5. How can you show an array and an element in an array in the UML?
  6. What is a found message? What does it mean?
  7. How do you show a returned object in a sequence diagram?
  8. Explain these structures: alt, loop, and opt.
  9. How do you show an action (x=x/2.0; for instance) in a sequence diagram?
  10. Explain ref and sd and the relation between them.
  11. In a communication diagram -- how many messages per link? How are the sequenced?
  12. I have messages numbered 1, 2, 3, 2.1, 1.1, 3.1, 1.2, 3.2. In what sequence are they actually sent?
  13. What does this mean in a communication diagram: [gender = male]? And what does *[i=1..20]?
  14. What is the purpose and form of a DCD? How does it relate to a Domain Model?
  15. Invent an example and use it to demonstrate three different ways of showing an attribute in a UML class diagram.
  16. What information can you attach to an operation in a UML DCD?
  17. How do you document the code for an operation in a UML DCD?
  18. Explain "keyword", "constraint", and "stereotype" in the UML.
  19. Draw a diagram that illustrates (using your own invented example) "generalization".
  20. What is an "abstract" class?
  21. How do you show that class "A" depends on class "B".
  22. How do you show an "interface" in the UML?
  23. WHat does an association class do?
  24. What is a singleton class?
  25. How do you show templatized classes in the UML?
  26. Give an example in the UML of a class in the C++ STL.

    Standard Definitions

  27. Artifact::="Anything that is created in the course of a project".
  28. artifact::=see above.
  29. DCD::diagram="Design Class Diagram", shows the classes that will be implemented in code.
  30. Deliverables::="A packet of artifacts that must be prepared by a deadline for review or distribution".
  31. Glossary::= See http://cse.csusb.edu/dick/cs375/uml.glossary.html.
  32. GoF::="Gang of Four", [ patterns.html#GoF ]
  33. GRASP::patterns="General Responsibility Assignment Software Patterns", a set of guidelines for designing objects and classes. They take a single event that the system must handle and determine a good class to carry it out. See [ patterns.html#GRASP -- General Responsibility Assignment Software Patterns ]
  34. Grades::= See http://cse.csusb.edu/dick/cs375/grading/.

  35. KISS::Folk_law="Keep It Simple, Stupid", in agile processes this means never drawing a diagram or preparing a document that doesn't provide value to the clients and stakeholders. In all processes it means never designing or coding what is not needed, see YAGNI.

  36. OO::shorthand="Object-Oriented".

  37. OOAD::="Object-Oriented Analysis and Design", See chapter 1 in text.
  38. patterns::="Documented families of problems and matching solutions", see Patterns.
  39. Patterns::= See http://cse.csusb.edu/dick/cs375/patterns.html.

  40. Process::="How to develop software".

  41. RJB::=The author of this document, RJB="Richard J Botting, Comp Sci Dept, CSUSB".
  42. RUP::Process="Rational UP", a proprietary version of UP.

  43. SSD::="System Sequence Diagrams", see chapter 10.

  44. TBA::="To Be Announced".

  45. UML::="Unified Modeling Language". [ Unified_Modeling_Language ]

  46. UP::="Unified Process", an iterative, risk-driven, and evolutionary way to develop OO software.

  47. YAGNI::XP="You Ain't Gonna Need It", an XP slogan that stops you planning and coding for things that are not yet needed. As a rule the future is not predictable enough to program a feature until the stakeholders actually need now. In this class it also means "It won't be on the final or in quizzes".

  48. XP::="Extreme Programming", the ultimate iterative, code-centric, user-involved process.