[原创] Use UML to do fast design (3- Use UML in Design phase)
Posted on 2008-07-26 10:00 joyyuan97 阅读(1656) 评论(2) 编辑 收藏 举报不好意思,因为文章原本是给公司同事准备的培训材料(只有些大的提纲),所以都用的英文。等我把一些文档慢慢整理完贴上来以后,我会把一部分的内容翻译成中文的,再加入一些说明。
1.5 Analysis
Inputs:
1 Use case diagram
2 Domain objects
3 Activity diagram
Steps:
1 Analyze real use case
1.1 Sub use case (1.1.1 Analyze action between roles and system)
1.2 Realized use case (1.1.1.1 Analyze MVC)
* We can use sequence or activity diagram to show logic. Mind: check error branch for keeping it cover all requirement.
2 Analysis Object Model
3 Update domain object: According to the logic
4 Write description
5 Add the nonfunctional requirements.
1.6 Detail Design
Not finish yet.
Key Points
1 Describe the life cycle and relation of all classes.
2 Describe the logic in complex class internal.
3 Use design patterns
Process
1 Class diagram
2 Sequence diagram
3 Activity diagram
4 Class diagram: Find the hidden no-functional classes
5 Class-class relationship: Use sequence diagram to show the relationship to represent the object life-cycle
6 Inside the class: Use activity diagram to show the logic flow
1.7 Questions
1 How to do review high design?
Joy >> If you involved into a design review meeting, you can follow next rules to check their design is correct or not.
1. Check roles description. Did they design parent role?
2. Check use case package diagram to understand module in project.
3. Check domain objects, the project concept is completed or not.
4. Check relations between domain objects.
5. Check high level use case diagram
6. Check use case’s business logic diagram (Activity diagram for Role-Role). Check all domain object’s status in business logic diagram. Please read before session article.
7. Following high use case’s business logic diagram, go to check sub use case diagram. Mostly sub use cases are from the business logic steps, and mostly sub case is only related one role.
8. Check sub use case or realize use case’s internal logic diagram (Sequence diagram for Role-System).
9. Check main business logic. (Activity diagram or sequence diagram)
2 What’s relation between Domain object, class and DB schema?
Joy >> First, clear concept of domain object, class and DB schema
Domain Object: Based on business knowledge, team will design domain object. And then go to clear relation between domain objects, this step, can help us find new domain object which customer didn’t mention.
Class: business classes are from domain object diagram, one thing we need mind is, we need define some class to manage the relation of domain object. If there are too complex for a few domain objects, the best way is declare a management class for their relation.
Still we need define some system function class too. Such as: user, permission management class, and so on.
DB Schema: DB schema comes from Domain Object too. But need cover all business or system manager objects.
[原创] Use UML to do fast design (1 - Introduce work steps) http://www.cnblogs.com/joyyuan97/archive/2008/07/26/1251886.html
[原创] Use UML to do fast design (3- Use UML in Design phase) http://www.cnblogs.com/joyyuan97/archive/2008/07/26/1251928.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述