wpf自定义组件重用
软件重用的优势 (Advantages of software reuse)
Software products are costly.
软件产品价格昂贵。
Software project managers are worried about the expensive software development and are desperately find for ways to cut development cost are,
软件项目经理担心昂贵的软件开发,并迫切希望找到降低开发成本的方法,
- A possible way to reduce development costs is to use parts again from previously developed software.
- In addition to decrease development cost and time, use again also leads to the higher quality of the developed products.
什么可以重复使用? (What can be reused?)
It is great to know about the kinds of artifacts associated with software development that can be used again. Almost all artifacts associated with software development, including project plan and test plan, can be used again. However, the important items that can be effectively used again are,
非常高兴知道与软件开发相关的工件可以再次使用。 与软件开发相关的几乎所有工件,包括项目计划和测试计划,都可以再次使用。 但是,可以再次有效使用的重要项目是,
Requirements specification
要求规范
Design
设计
Code
码
Test cases
测试用例
Knowledge
知识
任何重用程序中的基本问题 (Basic issues in any reuse program)
The following are some of the basic issues that must be for starting any reuse program,
以下是启动任何重用程序所必须具备的一些基本问题,
Component creation
组件创建
Component indexing and storing
组件索引和存储
Component search
元件搜寻
Component understanding
组件理解
Component adaptation
组件适应
Repository maintenance
仓库维护
组件创建 (Component creation)
The reusable components have to be first identified. The selection of the correct kind of components having the potential for reuse is best.
必须首先确定可重用组件。 最好选择具有重复使用潜力的正确类型的组件。
组件索引和存储 (Component indexing and storing)
Indexing requires classification of the again usable components so that they can be easily found when looking for a component for reuse. The components need to be stored in a Relational Database Management System (RDBMS) or an Object-Oriented Database System (ODBMS) for efficient access when the number of components becomes large.
索引要求对可再次使用的组件进行分类,以便在寻找要重用的组件时可以轻松找到它们。 组件需要存储在关系数据库管理系统(RDBMS)或面向对象的数据库系统(ODBMS)中,以便在组件数量变大时进行有效访问。
元件搜寻 (Component searching)
The programmers need to search for correct components matching their needs in a database of components. To be able to search components efficiently, the programmers require a perfect method to tells the components that they are looking for.
程序员需要在组件数据库中搜索符合其需求的正确组件。 为了能够有效地搜索组件,程序员需要一种完美的方法来告知他们正在寻找的组件。
组件理解 (Component understanding)
The programmers need a prefect and sufficiently complete understanding of what the component does to be able to decide whether they can reuse the component or not. To understand, the components should be well documented and should do something simple in the code.
程序员需要对组件的功能有完整的了解,才能决定他们是否可以重用该组件。 要理解,这些组件应该有充分的文档记录,并且应该在代码中做一些简单的事情。
组件适应 (Component adaptation)
Before they can be reused, the components may need adaptation, since a selected component may not exactly be mixed the problem at hand. However, tinkering with the code is also not the best solution because this is very likely to be a source of faults.
在组件被重新使用之前,可能需要对其进行调整,因为所选组件可能无法完全混合在一起,成为眼前的问题。 但是,修改代码也不是最好的解决方案,因为这很可能是错误的根源。
仓库维护 (Repository maintenance)
It once is created requires repeated maintenance. New components, as and when made have to be entered inside the repository. The faulty components have to be followed.
一旦创建,就需要反复维护。 必须在存储库中输入新组件的制造时间和制造时间。 必须遵循有故障的组件。
Further, when new applications mixed, the older applications become obsolete. In this case, the obsolete components might have to be deleted from the repository.
此外,当新的应用程序混合在一起时,旧的应用程序将变得过时。 在这种情况下,可能必须从存储库中删除过时的组件。
领域分析 (Domain analysis)
The aim is to find the reusable pieces for a problem domain.
目的是找到问题域的可重用部分。
wpf自定义组件重用