CN100451954C - Model driving software generating method of frame customization - Google Patents

Model driving software generating method of frame customization Download PDF

Info

Publication number
CN100451954C
CN100451954C CN 200510119128 CN200510119128A CN100451954C CN 100451954 C CN100451954 C CN 100451954C CN 200510119128 CN200510119128 CN 200510119128 CN 200510119128 A CN200510119128 A CN 200510119128A CN 100451954 C CN100451954 C CN 100451954C
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
model
frame
field
software
art
Prior art date
Application number
CN 200510119128
Other languages
Chinese (zh)
Other versions
CN1794169A (en )
Inventor
兰庆国
刘淑芬
吴姚睿
姚志林
张欣佳
兵 李
Original Assignee
吉林大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明为框架定制的模型驱动软件生成方法。 The present invention is a custom model-driven software frame generation method. 属于计算机系统软件和应用软件领域。 Belonging to the computer system software and application software. 该方法通过领域分析和领域设计可以得到特定领域的领域模型和领域框架,作为重用的核心资产。 This method can be obtained and the field of the art model specific area frame by analyzing the art and art design, reuse as a core asset. 领域模型通过对领域信息分析、抽象、对领域的实体及其关系采用类图的方式,通过模型工具建立。 By domain model in the field of information analysis, abstraction, and the field's entity relationship diagram by way of class, through the establishment of modeling tools. 然后进行模型到框架的定制,读取模型信息、框架信息和框架界面组件装配规则,将模型中实例填充到框架界面组件。 Then model customized to the frame, reads the model information, the frame information and frame assembly fitted interface rules, the filling model in Example interface components to the frame. 当软件框架被完全填充后,定制过程即完成。 When the software framework is completely filled, the customization process is complete. 本发明具有良好的适用性和重用性,即可以根据领域特性和应用特性的变化,通过修改框架、模型或重新定制,可以形成领域软件系列产品。 The present invention has good applicability and reusability, i.e., may vary according to the characteristics and application characteristics of the art, by modifying the frame, or re-customize the model, the field of software products may be formed.

Description

框架定制的模型駆动软件生成方法 Qu movable frame customized software model generating method

技术领域 FIELD

本发明属于计算机系统软件和应用软件领域,具体涉及一种框架定制的模型驱动软件生成方法。 The present invention pertains to computer systems and software applications, and in particular relates to a framework for customized driver software model generating method. 背豕技术 Back hog technology

计算机软件开发中,建模是开发优秀软件的所有活动中的核心部分,其目的是把所要设计的结构和系统的行为沟通起来,并对系统的体系结构进行可视化和控制。 Computer software development, modeling is a core part of all activities to develop good software, its purpose is to act to design structures and systems to communicate with, visualize and control architecture and system. 模型提供了系统的蓝图,提高人对复杂事物的理解能力。 Model provides a blueprint for the system, improve people's ability to understand complex things. 但是,目前的软件开发中,模型只不过是纸上的一些文档,无法直接作用开发,接下来还必须把模型翻译成代码。 However, the current software development model is only some documents on paper, not directly effect the development of the next model must also be translated into code. 这种方式存在的主要问题是: The main problem with this approach is:

1、 浪费了开发时间,也不容易保持模型和代码的一致性; 1, a waste of development time, and consistency is not easy to keep the model code;

2、 无法用模型直接约束开发; 2, can not be directly binding model development;

3、 模型重用困难。 3, model reuse difficult.

发明内容 SUMMARY

本发明克服了上述软件开发中无法用模型直接约束开发和模型重用困难的缺点,提供一种新的框架定制的模型驱动软件生成方法,使模型直接作用于软件产品开发。 The present invention overcomes the disadvantages of the above-described software development model can not be directly binding model reuse difficult to develop and provide a new framework customized driver software model generating method, the direct-acting software product development model.

本发明的目的还在于,将软件根据其业务领域特征分为软件框架和软件模型,拆分了软件中的不变部分和可变部分,提供了更高层次的软件重用。 Object of the present invention is the software is divided into software framework and software business model according to its characteristics, the constant resolution portion and the variable portion of software, a higher level of software reuse.

本发明的目的进一步在于,还可以根据领域业务逻辑的变化,修改模型而重新定制生成业务领域中新的软件,形成领域中软件系统族。 Further object of the present invention further customize the generated traffic may be re-art new software according to the change in the business logic field, modify the model, the field of software system formed group.

本发明的技术内容为软件开发新方法,通过对问题域的抽象,建立领域模型和领域框架,作为开发工作的驱动力量,并根据可配置的用户需求,将模型定制到框架生成领域系列应用软件,步骤包括- Teachings of the present invention is a novel method of software development, through abstraction of the problem domain, establish a domain model and domain framework as a driving force in development work, and according to user needs configurable model customized to frame generation field series of application software including the step of -

1、领域分析。 1, the field of analysis. 其主要目的是(1)根据领域信息定义要解决的领域。 Its main purpose is to (1) areas to be addressed according to the information defined fields. (2)收集相关的领域信息,把它整合成一个一致的领域模型。 (2) collecting information related art, it is integrated into a coherent domain model. 领域倌息的来源包括领域 Groom the information field comprises a source of art

内己有的系统、领域专家、系统使用手册、文本、原型,标准等。 Caprolactam some systems, domain experts, system manuals, text, prototype, standards. 领域模型是对领域的实体及实体间关系采用类图的方式通过模型工具建立领域模型,主要为类模型,即对特定领域进行抽象获取领域内的类和类之间的关系。 Inter-domain model of the domain and entity class diagram entity relationship is established by way of the field model by modeling tools, mainly based model, i.e., obtain domain-specific abstract relationship between classes and in the field. 类的关系类型包括:关联、聚合、继承、依赖和实现。 Relationship type classes include: association, aggregation, inheritance, and implementation dependent. 关联是类之间的词法连接,使一个类知道另一个类的公共属性和操作,分为单向和双向关联。 Is connected between the associated lexical classes, a class knows that the public properties and another class operation, is divided into unidirectional and bidirectional associations. 聚合是关联关系的一个特例, 是关联关系的一种,是强关联。 The polymerization is a special case of the relationship, a relationship is strong correlation. 它用来在一组对象中表示大范围的连接,是整体与个体间的关系。 It is used to represent a set of objects in a wide range of connection, the relationship between the overall and individual. 继承关系是一般类与特殊类的关系。 Inheritance relationship is a general category and special classes. 父类可以描述所有子类之间所有共同的厲性和操作。 Among all the parent class may describe common to all subclasses of Li and operation. 依赖关系显示一个类引用另一个类。 Displaying a dependency class reference another class. 依赖性总是单向的,显示一个类依赖于另一个类的定义,实现关系是表的类与接口,包与接口、 组件与接口和用例与用例之间的关系。 Always unidirectional dependency, a class display depends on the definition of another class, a table class relationships are implemented interface, packet interface, and interfaces with the components and the relationship between the use cases using the cases. 事件关系将公共接口与接口的详细实现相连接。 Event relationships to connect the detailed implementation of common interface and interfaces. 实现关系把接口与实现分开。 Realization relationship to separate interface and implementation.

2、 领域设计。 2, the field of design. 其目的是开发用于领域中软件系统族的一个框架。 Its purpose is to develop a framework for the software art system for family. 软件框架定义了用于生成软件产品系列成员的公共资产,并提供应用工程差异的包容能力。 Software defines a common framework for asset generation software product family members, and provide the ability to accommodate differences in engineering applications. 它关键是领域应用公共特征的提取和领域应用差异的自动适应。 It is the key to automatically adapt to differences in extraction and application of field applications common characteristics. 软件框架是一种软件半成品。 Software is a software framework for semi-finished products. 软件框架的具体内容包括领域业务组件、领域软件的用户呈现界面和界面组件的对象装配规则。 Specific contents of the software, including an object frame assembly rules user business component field, field presentation interface and the software interface components. 用户呈现界面包括菜单、工具条、列表型组件、 树型组件和图形元素组件。 User interface presented including menus, toolbars, list type component, the component tree components and graphic elements. 这些组件必须以"模型-视图-控制器"的形式存在。 These components must be present in the form of "Model - Controller - view." 领域业务组件是根据领域特征实现的一组领域业务处理相关组件。 Business component field is a set of related art service processing component implemented in accordance with features art. 领域业务组件可以用于处理界面组件数据模型中的数据。 Art may be used for business data processing component interface component data model. 界面组件的对象装配规则包括领域模型到界面组件的对象填充方式和事件处理方法的规格。 Specifications fill mode and event processing method of assembling rules subject object domain model interface assembly comprises an interface to the assembly. 界面组件的装配规则是根据用户需求和领域特征,实施于界面组件数据模型上的数据约束,即什么样的数据可以填充到界面组件的模型上。 Interface component fitting rule is based on user requirements and features of the art, constraints on the implementation of the data interface assembly data model, i.e., what data can be filled into the model interface assembly. 事件的处理方法是组件对用户信息输入的反应方式。 Event processing method is the reaction mode component of the input user information.

3、 领域实现。 3, field implementation. 其目的是用合适的技术和界面组件来实现框架。 Its purpose is to interface with the appropriate technology and components to achieve frame. 框架是软件半成品,是可以单独运行的程序。 Framework is semi-finished software, the program can be run separately.

4、 模型定制。 4, model customization. 就是根据用于需求,将模型中的信息定制到领域框架中界面 That is, according to the needs, customized information model framework interface to the field

组件。 Components. 模型定制完成三方面的工作: Model customization work done in three areas:

(】)模型中的类实例化为框架中可操作的对象,并根据框架对象定制规则 (]) Class instance model into the frame operable object in accordance with rules and customize frame object

和用户需求将部分对象绑定到界面组件上。 And the user needs to bind to the interface component part of the object. 所谓绑定,就是让界面组件代表对象的外都呈现,对象为组件提供内郁数据。 The so-called binding, is to let the outside interface components represent objects are presented, within the Yu object provides data for the component.

(2) 模型中类之间的关系的实例化,并用于约束框架中界面组件之间的关系。 Examples of the relationship between the class model (2), and a relationship between the interface assembly frame constraint. 模型的中聚合关系转换为框架中组件的包含关系,关联关系转换为连接关系。 Polymerized into a relational model comprising a relation of the frame assembly, the conversion relation for the connection association.

(3) 根据用户需求和对象装配规则完成装配操作。 (3) The user needs to complete the fitting operation and fitting rule objects.

综上:框架定制的模型驱动软件生成方法,步骤包括-(1 )通过领域分析和领域设计可以得到特定领域的领域模型和领域框架, 并作为核心可重用资源使用存入相关库中; In summary: a frame customized driver software model generating method, comprising the step of - (1) Field of the art design and analysis model can be obtained and the field of the art in the field of a particular frame, and used as a core into reusable resources related database;

(2) 领域模型由领域建模专家通过对领域信息分析,抽象,对领域的实体及实体间关系采用类图的方式通过模型工具建立领域模型,主要为类模型; (2) domain model made by modeling experts in the field of information analysis, abstraction, between entities in the field of relations by way of the establishment of the domain model class diagram by modeling tools, mainly class model;

(3) 领域框架的具体内容包括领域的业务流程、领域软件的用户呈现界面和界面组件的对象装配规则; Specific contents (3) comprises a field frame to the business process, the user interface and presentation software art interface component object rule assembly;

(4) 将模型中的类和关系实例化,根据用户需求和组件的对象装配规则进行类实例和关系实例到界面组件装配,填充到框架界面组件,当软件框架被完全填充后,定制过程即完成。 (4) the classes and relationships in the model is instantiated, according to the object mounting rules user requirements and component class instances and relationship instances to interface components are assembled, filled to the frame interface components, when the software framework is completely filled, the customization process i.e. carry out.

该框架定制方法,将模型作为框架中实例的元信息,提供框架所糖的实例和实例间的约束信息。 The method for customizing frame, the frame meta-information model as instances in providing constraint information between the frame instance, and sugar. 直接作用于软件开发,步骤为: Direct role in software development, the following steps:

(1) 模型中的类实例化为框架中可操作的对象,并根据框架规格将部分对象绑定到界面组件上。 Class Example (1) into the framework model operable objects, and in accordance with the specifications of the frame part of the object bound to the interface component. 所谓绑定,就是让界面组件代表对象的外部呈现,对象为组件提供内部数据; The so-called binding, is to let the external interface components represent the object rendering, object provides data for the internal components;

(2) 模型中类之间的关系的实例化,并用于约束框架中界面组件之间的关系。 Examples of the relationship between the class model (2), and a relationship between the interface assembly frame constraint. 模型的中聚合关系转换为框架中组件的包含关系,关联关系转换为连接关系; Polymerized into a relational model comprising a relation of the frame assembly, the conversion relation for the connection relationship;

(3) 根据用户需求和对象装配规则完成装配操作。 (3) The user needs to complete the fitting operation and fitting rule objects. 实施该方法生成软件具有以下效果: The method of generating a software embodiment has the following effects:

1. 本发明具有良好的伸縮性和适应性。 1. The present invention has good flexibility and adaptability. 可以根据领域的不同情况,通过修改模型或配置参数而重新定制生成,形成软件系列产品。 According to the different contexts of the configuration parameters or by modifying the model to generate re-customization, forming the software products.

2. 具有良好的重用性。 2. Has a good reusability. 领域框架和领域模型是低耦合的,都具有独立的完整逻辑,都可以实现不同程度和不同粒度的重用,还可以通过一定程度的修改迁移到相近的领域中。 FIELD frame and field models are loosely coupled, having a complete logically independent, and can achieve different levels of granularity different reuse can also migrate to areas close to a certain degree by the modification. 3. 可以实现大规模生产的利润。 3. You can achieve mass production profits.

4. 可以縮短投放市场的时间。 4. You can shorten the time to market.

5. 能够改善、提高产品质量。 5. to improve and improve product quality.

6. 大大提高客户满意度。 6. greatly improve customer satisfaction.

7. 可以使用批量定制。 7. You can use mass customization.

8. 可以弥补人力资源不足。 8. You can make up for the lack of human resources. 附图说明 BRIEF DESCRIPTION

图1是本发明框架定制的模型驱动软件生成方法的流程图。 1 is a flowchart driver software model framework of the invention a method of generating a customized.

具体实施方式 detailed description

实施例1 Example 1

简单"网络管理"软件的实现。 Simple "network management" software.

1. 框架设计。 1. Design Framework. 首先根据网管领域的业务逻辑和业务特点,抽象并设计完成 The first service logic and network service characteristics of the field, and is designed to complete abstraction

通信领域的软件框架。 Field of communications software framework. 框架有以下几部分组成: 拓扑图:用来显示整个网络的拓扑结构树:按照树形结构显示整个网络的结构表:即告鳘表。 The frame has the following components: Topology: to display the entire network topology tree: Table shows the structure of the entire network in a tree structure: pouts table will come.

主菜单:把一些常用的功能放到主菜单中,用户可以根据霈要自己定义主菜单形式,并且可以添加自定义的功能菜单。 Main menu: some common functionality into the main menu, the user can define the main menu Pei to their form, function and may add custom menus.

拓扑图上工具栏:拓扑图上一些常用的功能放到这里。 Toolbar topology: topology on some of the commonly used functions into here. 工具栏:放置系统中一些常用的功能,以图标的形式显示出来。 Toolbar: placing the system in a number of commonly used functions, displayed as icons.

2. 建模 2. Modeling

抽象出网管领域中的对象及对象间的关系,形成模型使。 Abstract relationships between network objects and objects in the field, so that the model is formed. 模型主要为类及其 The main model for the class and its

之间的关系。 The relationship between. 主要的类有Network、 Router、 Switch、 Port、 Host等Router和Port 之间是聚合关系,Switch和Port之间是聚合关系,Port和Host之间是关联关系。 The main class has Network, between Router, Switch, Port, and the Host Port Router other relations between polymerization, Switch Port and is an aggregation relationship is a relationship between Port and the Host. Router和Switch与Network之间的关系都是聚合。 The relationship between Router and Switch and Network are polymerized. Port包含羼性IPAddress。 Port of confusion includes IPAddress. Host 包含厲性IPAddress. Host contains Li of IPAddress.

3. 定制 3. Customize

使用模型定制工具定制配置知识,负责将领域业务模型定制到框架。 Use custom tools to customize the configuration model knowledge, is responsible for the areas of the business model to customize the frame. 包括: (1)定制树。 Including: (1) custom tree. 树中所有可以出现的节点都必须是模型中类的实例,而且父子节点之间遵从聚合关系约束。 All nodes in the tree must be occurring class instance model, and to comply with constraints between parent-child aggregation relationship.

根节点为Network的一个实例,其Name属性赋值为"网络"。 Network root node is an example of its Name property assigned to the "Network." 其下的字节点为2个Router的实例"路由器1"和"路由器2"、 1个Switch的实例"交换机1", 100个Host的实例"主机"。 "Router 1" and "Router 2" Example 1 byte Switch point at which the Router is 2 Examples of "switch 1", examples of Host 100 "host." 每个路由器和交换机下都有若干子节点为端CI。 It has a number of sub-switches and routers at each end node CI.

(2) 定制拓扑。 (2) custom topology. 确定拓扑图上显示的对象及其连接关系。 Determining an object displayed on the topology and connection relationship. 拓扑图以层次方 Hierarchical topology party

式显示,可以按层钻取。 Display, to drill by layer. 第一层拓扑包括"路由器r'、"路由器2"、"交换机r' The first layer comprises a topology "routers r '," Router 2 "," switch r'

以及100个"主机"。 And 100 "hosts." 主机和Port的实例"端口"相连。 Examples of host and Port "Port" is connected.

(3) 表定制。 (3) table customization. 表定制,是对端口信息进行检测,对超出安全值的情况进行吿警显示。 Custom table, port information is detected, the value of the security situation beyond the police were Gao display. 告警表中主要包含列为"端口/主机"、"所属设备","当前测量值"。 Alarm table contains mainly as "port / host", "owned equipment", "the current measured value."

定制完成后,框架被填充完成,成为完整的软件。 After customization is complete, the frame is filled with complete and become a complete software. 当网络情况发生变化时, 可以改变模型,重新定制生成新的软件。 When network conditions change, you can change the model, re-generate a new customized software.

Claims (1)

  1. 1、 一种框架定制的模型驱动软件生成方法,步骤包括:(1) 通过领域分析和领域设计得到特定领域的领域模型和领域框架,并作为核心可重用资源使用并存入相关库中;(2) 领域模型由领域建模专家通过对领域信息分析,抽象,对领域的实体及实体间关系采用类图的方式通过模型工具建立领域模型,为类模型;(3) 领域框架的具体内容包括领域的业务流程、领域软件的用户呈现界面和界面组件的对象装配规则;所述的界面组件的对象装配规则,包括领域模型到界面组件的对象填充方式和事件处理方法的规格;(4) 将模型中的类和关系实例化,根据用户需求和组件的对象装配规则进行类实例和关系实例到界面组件装配,填充到框架界面组件,当软件框架被完全填充后,定制过程即完成。 1, a framework customized driver software model generating method, comprising the steps: (1) Field of the art design and analysis model to give the art and specific areas of the field frame, and as a core into reusable resources and associated libraries; ( 2) a domain model modeled by experts in the field of information analysis, the abstract, between entities in the field of the relationship is established by way of the field class diagram model by modeling tools, class model; specific content (3) comprises a frame field business process areas, the field of user interface software and the presentation interface component object rule assembly; said interface objects assembled rule assembly, comprising a fill mode specification methods and event handlers to the domain model object interface component; (4) and the relational model class instantiation, for instance related to the class instances and interface components are assembled, filled interface components to the frame, when the frame is completely filled with the software, the customization process is completed according to user requirements and the rules of the object the assembly components.
CN 200510119128 2005-12-29 2005-12-29 Model driving software generating method of frame customization CN100451954C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510119128 CN100451954C (en) 2005-12-29 2005-12-29 Model driving software generating method of frame customization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510119128 CN100451954C (en) 2005-12-29 2005-12-29 Model driving software generating method of frame customization

Publications (2)

Publication Number Publication Date
CN1794169A true CN1794169A (en) 2006-06-28
CN100451954C true CN100451954C (en) 2009-01-14

Family

ID=36805649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510119128 CN100451954C (en) 2005-12-29 2005-12-29 Model driving software generating method of frame customization

Country Status (1)

Country Link
CN (1) CN100451954C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520972A (en) * 2011-12-31 2012-06-27 上海方寸信息科技有限公司 Video game development system and method thereof

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100485612C (en) 2006-09-08 2009-05-06 中国科学院软件研究所 Software requirement acquiring system
CN100517222C (en) 2006-10-25 2009-07-22 中兴通讯股份有限公司;北京邮电大学 Model conversion frame supporting separation of conversion engine and mapping rule and the method
CN105426175A (en) * 2015-11-03 2016-03-23 用友网络科技股份有限公司 Device and method for providing scene characteristic-based dynamic components

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6330526B1 (en) 1998-09-30 2001-12-11 Mitsubishi Denki Kabushiki Kaisha Characteristic variation evaluation method of semiconductor device
CN1648907A (en) 2004-08-24 2005-08-03 徐州润发房地产有限公司 Method of managing real estate enterprise item and managing information system
CN1664779A (en) 2003-06-26 2005-09-07 微软公司 Software development infrastructure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6330526B1 (en) 1998-09-30 2001-12-11 Mitsubishi Denki Kabushiki Kaisha Characteristic variation evaluation method of semiconductor device
CN1664779A (en) 2003-06-26 2005-09-07 微软公司 Software development infrastructure
CN1648907A (en) 2004-08-24 2005-08-03 徐州润发房地产有限公司 Method of managing real estate enterprise item and managing information system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520972A (en) * 2011-12-31 2012-06-27 上海方寸信息科技有限公司 Video game development system and method thereof
CN102520972B (en) * 2011-12-31 2015-09-09 上海方寸信息科技有限公司 Video game development system and method

Also Published As

Publication number Publication date Type
CN1794169A (en) 2006-06-28 application

Similar Documents

Publication Publication Date Title
Kent Model driven engineering
US7827527B1 (en) System and method of application development
Jonkers et al. Towards a language for coherent enterprise architecture descriptions
US7019740B2 (en) Resource creation method and tool
US5878431A (en) Method and apparatus for providing topology based enterprise management services
Kim et al. Developing software metrics applicable to UML models
Paternò et al. ConcurTaskTrees: A diagrammatic notation for specifying task models
Balasubramanian et al. A platform-independent component modeling language for distributed real-time and embedded systems
US20030131338A1 (en) Resource modelling
Tracz Domain-specific software architecture (DSSA) frequently asked questions (FAQ)
US7219328B2 (en) Model-based composable code generation
US6971001B1 (en) General and reusable components for defining net-centric application program architectures
US20110131547A1 (en) Method and system defining and interchanging diagrams of graphical modeling languages
US20050021756A1 (en) Method of developing, delivering and rendering network applications
US20110153505A1 (en) Deliver application services through business object views
Lankhorst Enterprise architecture modelling—the issue of integration
Kristensen et al. Application of coloured petri nets in system development
US20050125771A1 (en) System and method for dynamic generation and customization of web service client applications for terminals
US20040139095A1 (en) Method and system for integrating interaction protocols between two entities
US20070011650A1 (en) Computer method and apparatus for developing web pages and applications
US20030233631A1 (en) Web services development method
US6111579A (en) Data processor controlled display system with a tree hierarchy of elements view having virtual nodes
Letelier A framework for requirements traceability in UML-based projects
US20080162266A1 (en) Business object acting as a logically central source for agreements on objectives
US20050060684A1 (en) Object oriented based methodology for modeling business functionality for enabling implementation in a web based environment

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
C17 Cessation of patent right