初识Q-Patterns - 2

来源:互联网 发布:海文网络计划教程 编辑:程序博客网 时间:2024/04/29 20:29
 
<q-patterns的纪录格式>

我也一直对上一篇里所Q-patterns所带给我们的benifit充满了期待。

下面让我我尝试把它的例子简单的做一个剖析。

之前可以来简单的介绍一下推荐用来记录Q-Patterns的格式:

<! This is a template for writing Q-Patterns. All statements withing <> are for information only and should be removed when the template us used for writing Q-Patterns.>

Name of the pattern <A short name for the Q-Pattern>

名称,这是所有的都需要的,有了名称我们才可以通过名称快速的找到自己想要得q-patterns

Classification <What type of Q-Pattern is this>

分类,很所时候,数据之所以对我们有意义,就是因为有了分类统计这种东西,分类也是我们对问题分析的一个最基本的技能

Metadata
        Author <Name of the author>
       
        Author Contact information <contact information>

        Pattern Version <xx.yy/xx.yy(draft)>
       
        Template Version <Version of the template. 00.01(draft)>
       
        Keywords <>

这些元数据用来描述q-pattern的比如作者,版本,关键字等信息,里面的内容不是必须,属于配置管理的信息

Intent/Explanation/definition <Short description of this Q-Pattern>

目的,这个q-patterns要解决的问题,一些说明,好像test case的测试目的或者目标

Questions
        Administration
        Usage
        User Interface
        Internationalization
        Localization
        Security
        Performance
        Response Time (Launch, Fetch, insert/delete/update, Display)
        Concurrency
        Max and Min parameters (Data size etc.)
        Memory requirement
        Disk Space requirements
?

这是q-patterns的核心了,在这里记录所有的questions,这里的questions是分成了很多个category分别摆放的,这些分类可以根据自己的需要而自行调整,找到适合自己的分类

Examples

示例,q-patterns的例子

Associated patterns <Name(s) of Q-patterns that are related to this pattern>

相关的patterns,可以在这里把相关的其他patterns罗列出来,但是并没有深入的探讨可以建立什么样的关联

Specialization <List of Q-Patterns that are specilization of this Q-Pattern>

继承自己的特殊的子patterns,q-patterns可以继承和具体化,反之可以抽象成为通用的patterns,这样可以实现重用的目的,而抽象化也有助于经验的传播

specialization of <The parent Q-Pattern that this Q-Pattern is a specilization of>

父类q-pattern,不知道q-patterns里是不是支持多继承?呵呵,能继承已经是很好的一个idea了
原创粉丝点击