booch方法_Booch的对象识别方法| 软件工程

Booch方法由Grady Booch于1992年提出,用于软件工程中的数据建模和面向对象的域分析。该方法从问题叙述中识别对象,通过保留信息、多个属性和常见操作三个标准验证对象的有效性。

booch方法

Booch's Object identification model was used to identify the different objects of software while doing domain analysis (domain modeling). This model was proposed by Grady Booch in 1992 when he was working for Rational Software which was later acquired by IBM. This model was then again revised by him in 1994. This model was widely used in software engineering for data modeling and object-oriented domain analysis purpose.

Booch的对象识别模型用于在进行域分析( 域建模 )时识别软件的不同对象。 该模型由Grady Booch于1992年提出,当时他为Rational Software工作,后来被IBM收购。 随后,他在1994年再次对该模型进行了修订。该模型已广泛用于软件工程中的数据建模和面向对象的域分析目的。

The aspect of Booch's method was taken from the concepts of UML (Unified Modelling Langauge). In the Booch's method of the object identification process, he proposed that a narrative of the given problem should be developed first. This narrative was nothing else but the problem statement itself refined into a simpler form that contained clear declarations of nouns and verbs in it.

Booch方法的方面来自UML( 统一建模语言 )的概念。 在Booch的对象识别过程方法中 ,他提出应首先开发给定问题的叙述。 这种叙述不过是什么,而是将问题陈述本身简化为一种更简单的形式,其中包含清晰的名词和动词声明。

The objects were then identified from these narratives. All the nouns in the narrative were noted down to be the objects. (The synonyms of the nouns were eliminated or neglected). All the verbs included in the narrative of the problem statement acted as the actions that were to be performed by the software.

然后从这些叙述中识别出对象。 叙述中的所有名词都被记录为宾语。 (名词的同义词被消除或忽略)。 问题陈述的叙述中包括的所有动词都充当软件要执行的动作。

However, all the nouns available in the narrative of the problem were not always objects. According to Booch's method, a potential object found after the lexical analysis was considered legitimate only if it satisfies the following criteria: Retained information, multiple attributed and common operations.

但是,问题叙述中可用的所有名词都不总是对象。 根据Booch的方法 ,只有在满足以下条件时,在词法分析之后发现的潜在对象才被视为合法:保留的信息,多个属性的操作和常见的操作。

Retained Information:

保留信息:

The object must contain dome specific and retained information regarding itself. If the object has no specific information or any sort of private data, then it is not considered to play an important role in the software. Hence, every valid object must have some information that could be able to define the object and its usefulness.

该对象必须包含特定于圆顶的信息并保留有关其自身的信息。 如果对象没有特定信息或任何类型的私有数据,则不认为该对象在软件中起重要作用。 因此,每个有效对象都必须具有一些信息,可以定义该对象及其有用性。

Multiple attributes:

多个属性:

The multiple attributes in the definition of the object mean that the object supports multiple methods. The more the number of methods (or attributes), the more the object can offer functionalities and can be related to other objects.

对象定义中的多个属性表示该对象支持多种方法。 方法(或属性)的数量越多,对象提供的功能越多,并且可以与其他对象相关。

Objects with single or very few attributes are usually considered to be a part of other objects or are directly driven by other objects. Hence, these types of objects are irrelevant and not efficient to construct.

具有单个或很少属性的对象通常被认为是其他对象的一部分,或由其他对象直接驱动。 因此,这些类型的对象是无关紧要的,而且构造效率也不高。

Common operations:

常用操作:

Several common operations are applicable to the potential objects. If all these operations are applicable to all the occurrences of the object, then they can easily be implemented to the whole class. If these operations are not applicable to the instances, then the object is not considered valid because every function of the class must be applicable to every instance of the class. If such cases hold, then they are considered under special objects where various sub-classes are needed to define them.

几种常见操作适用于潜在对象。 如果所有这些操作都适用于对象的所有出现,则可以轻松地对整个类实施它们。 如果这些操作不适用于实例,则该对象不被视为有效,因为该类的每个功能都必须适用于该类的每个实例。 如果这种情况成立,那么将在特殊对象下考虑它们,其中需要各种子类来定义它们。

翻译自: https://www.includehelp.com/basics/booch-object-identification-method-software-engineering.aspx

booch方法

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值