9-chapter10-DesignClasses9-chapter10-DesignClasses.pptVIP

  • 7
  • 0
  • 约2.75万字
  • 约 44页
  • 2016-12-29 发布于贵州
  • 举报

9-chapter10-DesignClasses9-chapter10-DesignClasses.ppt

* Example of CRC Card Introduction to Systems Analysis and Design, 6th Edition ? 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. * CRC Cards Procedure Because the process is to design, or realize, a single use case, start with a set of unused CRC cards. Add a controller class (Controller design pattern). Identify a problem domain class that has primary responsibility for this use case that will receive the first message from the use case controller. For example, a Customer object for new sale. Use the first cut design class diagram to identify other classes that must collaborate with the primary object class to complete the use case. Have use case descriptions and SSDs handy Introduction to Systems Analysis and Design, 6th Edition ? 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the U.S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. * CRC Cards Procedure (continued) Start with the class that gets the first message from the controller. Name the responsibility and write it on card. Now ask what this first class needs to carry out the responsibility. Assign other classes responsibilities to satisfy each need. Write responsibilities on those cards. Sometimes different designers play the role of each class, acting out the use case by verbally sending messages to each other demonstrating responsibilities Add collaborators to cards showing which collaborate with which. Add attributes to back when data is used Eventually, user interface classes or even data access classes can be added Introduction to Systems Analysis and Design, 6th Edition ? 2012 Cengage Learning. All Rights Reserved. This ed

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档