首页 > 其他分享 >学习高校课程-软件工程-需求建模:基于类的方法(ch10)

学习高校课程-软件工程-需求建模:基于类的方法(ch10)

时间:2024-11-21 13:29:40浏览次数:1  
标签:operations ch10 职责 软件工程 建模 should Responsibilities classes class

CLASS-RESPONSIBILITY-COLLABORATOR(CRC) MODELING

Responsibilities are the attributes and operations that are relevant for the class.
职责是与类相关的属性和操作。

Collaborators are those classes that are required to provide a class with the information needed to complete a responsibility. In general, a collaboration implies either a request for information or a request for some action.
协作者是那些需要为类提供完成职责所需信息的类。一般来说,协作意味着信息请求或某些操作的请求。

Classes:Entity classes,Boundary classes(managing the way entity objects are represented to users),Controller(interface) classes(manage a “unit of work” from start to finish)
类:实体类,边界类(管理实体对象向用户表示的方式),控制器类(从头到尾管理工作单元)

Responsibilities:identifying responsibilities (attributes and operations)
确定职责(属性和操作)
System intelligence should be distributed across classes ,Each responsibility should be stated as generally as possible,Information and the behavior related to it should reside within the same class,Information about one thing should be localized with a single
class,Responsibilities should be shared among related classes
系统智能应该跨类分布,应尽可能笼统地说明每项责任,信息和与之相关的行为应该驻留在同一类中,关于一件事的信息应该本地化到单个类中,在相关类之间共享职责

Collaborations:Classes fulfill their responsibilities in one of two ways:(1) A class can use its own operations to manipulate its own attributes, thereby fulfilling a particular responsibility, or (2) a class can collaborate with other classes.
类通过以下两种方式之一履行其职责:(1)类可以使用自己的操作来操作自己的属性,从而履行特定职责,或者(2)类可以与其他类协作。
(1) the is-part-of relationship, (2) the has-knowledge-of relationship, and (3) the depends-upon relationship
(1) is-part-of 关系(聚合),(2) has-knowledge-of 关系(关联),以及 (3) 依赖关系

ANALYSIS PACKAGES

various elements of the requirements model (e.g., use cases, analysis classes) are categorized in a manner that packages them as a grouping—called an analysis package —that is given a representative name.

标签:operations,ch10,职责,软件工程,建模,should,Responsibilities,classes,class
From: https://www.cnblogs.com/Mephostopheles/p/18560064

相关文章