[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] w5.html Wed Jan 11 07:26:29 PST 2012


    Assigned Work 5: First Interaction and Class diagrams

    02005-02-07Copied from W4 and edittedRJB
    12006-02-15Added some more details RJB
    22009-03-04Stated rules for SSD->Interactions RJB

    (Close Table)


    1. Requirements
      • Vision
      • Business Case
      • Use Cases: a few fully dressed, most named, brief, or casual.
      • SSDs of interesting scenarios
      • Supplementary Specifications(if any)
      • Business Rules(if any)
      • Glossary
    2. Domain model with classes, associations, and some attributes.
    3. A first logical architecture


    In early iterations most of the above will need revision as the project proceeds.


    The deliverables form a packet and every element in the packet should be there in the listed order.
    1. Use case with SSD of an interesting scenario
    2. Interaction diagrams (sequence or communication) for events/messages in SSD with GRASP annotations. Note: Each interaction diagram should have precisely one found event/message taken from the SSD. It should show how a set of objects inside the software can carry out the step.
    3. A class diagram that supports all the interaction diagrams. Notice: many interactions generate a single design class diagram.
    4. Do not do any login/logout messages yet.

    (annotations): These are informal, but vital. The name of the GRASP links one message to an object, as in the book.

    Hint 1

    In real projects you should do the more complex SSDs but here (Grading) you just need to show that you've got the ideas as shown on a simple one to get the credit.

    Hint 2

    Use at least the first two GRASP patterns -- Information Expert and Creator in your designs. Perhaps Controller if necessary. Initially take your classes from the domain model, then from the design class diagram.


    1. Review previous documentation.
    2. Think...
    3. Draw rough diagrams: interactions+class diagram.
    4. Edit rough diagrams.
    5. Prepare less rough ones(one interaction+class) to hand in with use case and SSD.
    6. Plan a presentation where the team acts out one of the collaborations. Each person should play the part of an object.
    7. Present SSD, interactions, and class diagram showing how the classes support the interaction and the interaction realizes the use case(5 minutes).
    8. Revise paper deliverables.
    9. Submit copy for grading.


    Points are for following the notation and hints in pages 221-270. Mistakes in using GRASP will not loose points in this iteration but will in the next one.

    Standard Definitions

  1. Artifact::="Anything that is created in the course of a project".
  2. artifact::=see above.
  3. DCD::diagram="Design Class Diagram", shows the classes that will be implemented in code.
  4. Deliverables::="A packet of artifacts that must be prepared by a deadline for review or distribution".
  5. Glossary::= See http://cse.csusb.edu/dick/cs375/uml.glossary.html.
  6. GoF::="Gang of Four", [ patterns.html#GoF ]
  7. 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 ]
  8. Grades::= See http://cse.csusb.edu/dick/cs375/grading/.

  9. 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.

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

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

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

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

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

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

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

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

  21. 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".

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