CN106406906A - Model driven development method based on specific domain modeling - Google Patents
Model driven development method based on specific domain modeling Download PDFInfo
- Publication number
- CN106406906A CN106406906A CN201610883519.8A CN201610883519A CN106406906A CN 106406906 A CN106406906 A CN 106406906A CN 201610883519 A CN201610883519 A CN 201610883519A CN 106406906 A CN106406906 A CN 106406906A
- Authority
- CN
- China
- Prior art keywords
- model
- specific area
- domain
- modeling
- execution
- Prior art date
- Legal status (The legal status 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 status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a model driven development method based on specific domain modeling. The method comprises the steps of establishing an executable model meeting an MMLs5 level by taking behavior modeling as a core, replacing a code generator with a model analysis execution mechanism, combining a domain frame to become a specific domain model execution infrastructure, raising an abstraction level of code realization by a standardized, self-contained, self-description and modular WEB service, packaging details of the code realization, supplying a related software function entity in a specific domain to the specific domain model execution infrastructure in a WEB service cluster manner, and driving operation of a system by analysis execution of a behavior model. The method aims at achieving software generation and realizes an executable final system converted by a model, wherein an end user familiar with a demand constructs an application model; a domain expert performs domain analysis element modeling; a technical expert develops a specific domain support service; and executable software is formed by integrating in the model execution infrastructure.
Description
Technical field
The invention belongs to technical field of software development, more particularly, to a kind of Mode-driven architecture based on Domain-specific Modeling
Method.
Background technology
At present, high efficiency, high-quality software development have become computer circle focus of attention.The going through of computer software industry
History is exactly the history being layered abstraction hierarchy.From between 60 years that nineteen forty-six First computer is born till now, experienced machine
Language, assembler language, high-level language/3GL, develop into OO opening in the epoch of high-level language from structuring development approach
Forwarding method.Up-to-date Mode-driven architecture, the leap of abstraction hierarchy each time all can improve software development efficiency, improves soft
Part quality and maintainability.Meanwhile, software developer is enable more intuitively to face the problems domain, shielding exploitation complexity, lifting
Motility and the scalability of system.Model driving development method is by software development from having been brought up to model centered on code
Centered on.Make model not only become analysis design specification, also become a kind of can be by being automatically converted to the soft of executable system
Part product.The MDA (Model Driven Architecture) being proposed by OMG for 2002 is that most representational model drives
Dynamic exploitation Standardization System.In the blueprint of OMG, the series of standards such as UML, MOF, XMI, CWM solves the model of MDA respectively
Foundation, model extension, model exchange, the problem of these aspects of model conversion.OMG attempts, by standardized definition, to expand
The range of application of MDA.Pass through such a extendible modeling language environment, IT vendor can freely realize building of oneself simultaneously
Mould language, and language is to the mapping of executable code, finally realizing by model conversation is executable final system.
Frederick Brooks was made that in 1986 " in 10 years, does not have any single soft project progress that software can be made to give birth to
Yield has the raising of the order of magnitude " judgement, and by widely referred to as " silver bullet law ".Through application for many years and research, with MDA
Mode-driven architecture for representing does not obtain expected achievement so far, allows model become core and is automatically converted into final system.
Mode-driven architecture does not actually melt " silver bullet ".The use of model rests on analysis and design phase always, becomes soft
The design aids of part exploitation.More seriously, going deep into software development, code is realized progressively occupying predominantly
Position, model can only with analyze design specification in the form of become code realization instruct specification.From concrete development phase, software
All changes be accomplished by developing designer's synchronous updating system model and code, the abstractness of model and the angle of Aided Design
Color causes system model in most cases all cannot timely change, particularly during software maintenance.Model and code
Gradually deviate from, greatly reduce the effect of model, also allow Mode-driven architecture come to naught simultaneously.In recent years, or even occur in that
Ignore document and modeling and more carry out the Agile Software Development method of prototype practice.The model enforceability of MDA is embodied in
The PIM of UML description is transformed into PSM, then is transformed into executable code by PSM, thus model conversion is executable code.Model
Transformational rule and accurate PIM definition are that can to allow model conversation be the essential condition that system is realized to MDA, and the most basic be essence
True and complete PIM definition, because how exquisite model conversion method all cannot supply the defect of model itself.To define
Fuzzy or incomplete model is automatically converted to system and realizes.UML is that a kind of definition is good, be easy to expression, powerful and
Blanket modeling language, it is employed as the description language of PIM by MDA.PIM is that uncorrelated software features are retouched to platform
State and stipulations, software features mainly include architectural feature (static) and the behavior characteristicss (dynamic) of system.The quality to PIM for the MDA
There is higher requirement, PIM, it is essential to ensure that completeness, concordance and unambiguity, otherwise cannot produce PSM by model conversion,
The system that is converted into that can not be accurately complete is realized.UML can preferably be modeled to the architectural feature of software, is given birth to by PIM
The PSM becoming can the ratio structural information of more comprehensive carrying system, such as class figure, deployment diagram etc..But UML is to software action feature
Descriptive power is poor although UML provides the behavior as model views such as precedence diagram, state diagram, activity diagram, collaboration diagrams to software
Feature is modeled, but the semanteme of these model views and its model element is inaccurately it is impossible to provide necessary system action
Detailed information.Therefore rely on merely UML not high come the PIM mass to describe, the PSM after model conversion nor complete reflect flat
The related software information of platform, the software action feature of disappearance is also needed to be added in PSM with artificial method, so just can make
PSM is used for code building.In order to improve this defect, UML is allowed completely can accurately to describe PIM, behavior particularly therein
Feature is it is necessary to expand the descriptive power to software action feature for the UML.For this reason, OMG is improved to UML, issue
UML2.0.Meanwhile, two kinds of solutions are provided on this basis, one kind is UML to be combined with object constraint lanaguage OCL come
Description PIM, another kind is to describe PIM using Executable UML, and most representational is xUML and xtUML.The formulation of UML2.0,
The present invention is made to see again the dawn of Mode-driven architecture.But UML2.0 still could not change the model of MDA and be so far
System realizes detached reality.Main reason is that:First, UML does not fundamentally change its structure, is still taken out with structural
As grammer comes Definition Model and its element although behavior semanteme has been greatly enhanced, but it is difficult to dynamic with real system
Property associated and also defective in detailed description.Secondly, UML remains the unified modeling language for all spectra,
UML2.0 makes whole system become huger it is difficult to use it is difficult to understand it more difficult to realize in the system that is converted into.3rd,
The appearance of UML2.0, does not change the problem of the disappearance of model realization back-up environment.OCL enhances accurate mould in MDA system
Type descriptive power, now existing many instruments support OCL auxiliary modelings.By introducing OCL, not only increase accurately retouching of UML
State ability, also enhance the restriction ability of MDA tetra- layer model, simultaneously by the definition to transformation rules, make the model of MDA
It is converted into possibility.But if current OCL wants Definition Model to change in addition it is also necessary to be extended, secondly OCL does not have and changes
The essential disadvantages of UML, model is still difficult to be converted to system realization.Although xUML comprises the Action Semantic of explication, do not have
It is defined specific action language, to be completed by each software vendor, relatively more famous is that Kennedy Carter company issues
ASL action specification language, it is a behavior language unrelated with realizing language platform, can be retouched with sophisticated model behavior by it
State, set up eXecute UML.Other also have OAL, SMALL, TALL.Meanwhile, based on xUML and different Action Semantics,
XUML is had to prop up stake tool.As Kennedy Carter ' s Products-iUMLite supports xUML development process, support can be held
The foundation of row model and checking and code building.The BridgePoint of Project Technology company is used OAL as row
Support xUML Mode-driven architecture for language.XUML is mainly used in real-time system development at present, and range of application is narrow.
Mode-driven architecture thought has initiative, and model driving development method cannot be carried out key problem on earth
It is that model is difficult to be transformed into system realization, it main reason is that:
1st, the abstractness of model
Mode-driven architecture needs to software system modeling, and modeling activities include behavior modeling and structural modeling.Structure is
The material base of support programs behavior, it determines the behavior scope that software can have.Behavior is to realize software, soft
The purpose of part will be realized by behavior.Therefore, the behavior expression power of model and behavior are semantic real to system for model in itself
Decisive role is played in existing conversion.Behavior modeling has very strong abstractness in itself, eliminates a lot of behavior details definition,
Lead to the behavior of most of behavior model element semantic inaccurate, there is a lot of uncertainties and ambiguity, and with real
System realizes architecture a certain distance, and be only used for system realization instructs specification.
2nd, excessively widely model scope
Unitized modeling pattern is the main body of current modeling activities, and the exploitation of current information system becomes increasingly complex, institute
The field being related to is also more and more wider.For the target of general modeling, need modeling language constantly to be changed and adds, cause mould
Type becomes increasingly huge it is difficult to use it is difficult to understand it more difficult to realize in the system that is converted into.
3rd, modeling activities design mainly for analysis, and nonsystematic is realized
There are different software system model views in each stage of software development cycle, is actually directed to what system was realized
Model view is few, and more views are both in analysis design, for developer between exchange design with stipulations, this
The description leading to model itself obscures, and disappearance details is it is difficult to be understood by computer, let alone system is realized.
4th, the disappearance of model realization back-up environment
The realization of model must rely on specific model realization back-up environment, such as code generating system or model virtual machine
System, but the restriction due to model self reason, model realization back-up environment is difficult to complete, and is more using model generating unit
Divide other software product, such as code skeleton, document, configuration script etc..
Content of the invention
It is an object of the invention to provide a kind of model driving development method based on Domain-specific Modeling, for OMG
The MDA (executing model drive structure) proposing is the general modeling of representative and model conversion method has row it is intended to solve development approach
Semantic inaccurate for the behavior of model element;Realizing architecture with real system has gap;It is difficult to shape in model conversion
Become the problem of executable software.
The present invention is achieved in that a kind of model driving development method based on Domain-specific Modeling, described based on spy
The model driving development method determining field modeling sets up, for core, the eXecute UML meeting MMLs5 level with behavior modeling, with mould
Type parsing execution mechanism substitutes code generator, and is combined into specific area model execution infrastructure with Domain Framework,
The abstraction hierarchy that code is realized is lifted with standardization, self-contained, self-described, modular WEB service, encapsulation code is realized simultaneously
Details, by the related software functional entity of specific area be supplied in the way of WEB service cluster specific area model execution
Infrastructure, carry out the operation of drive system with the parsing execution of behavior model.
Further, the executable Domain-specific Modeling framework of described WEB service corresponds to three key elements:Specific area
EXecute UML, specific area model execution infrastructure, specific area WEB service atom group;
The parsing execution in specific area model execution infrastructure of specific area eXecute UML, specific area can perform
The execution of model depends on the corresponding interface that Domain Framework is provided, and Domain Framework passes through specific area WEB service atom group's
Field related service provides kernel software functional entity, and supports the execution of specific area eXecute UML upwards;Specific neck
Domain eXecute UML specific area eXecute UML, specific area model execution infrastructure specific area model execution basis sets
Apply and collectively constituted can perform based on WEB service with specific area WEB service atom group specific area WEB service atom group S
Domain-specific Modeling framework.
Further, described comprised the following steps that based on the model driving development method of Domain-specific Modeling:
(1) define specific area and can perform Meta Model language;Using having strict form and implication, can be by computer
Automatically explanation and understanding;
(2) specific area eXecute UML Meta Model:In the specific area eXecute UML Meta Model stage, by domain expert
Specific area is analyzed and sets up with specific area eXecute UML meta-model, domain expert, to Domain Modeling, captures
Specific area concept, constraint, rule and the form of expression, create domain object, relation and related constraint;
(3) specific area eXecute UML application modeling:Be can perform in specific area for application demand by end user
Using specific area concept, application entity modeling is carried out to Problem Areas on the basis of model meta-model;The specific area set up can be held
Row model application model executes in specific area model execution infrastructure and verifies user's application demand;
(4) application modeling structure behavior scene:Behavior scene comprises a series of actions realizing system action, to specific system
A system implementation procedure within the execution phase for the target, for illustrating the interaction between domain object and cooperation;Behavior scene is from neck
The visual angle modeling of domain action process, is presented as Action logic model view, describes Action logic in the way of visual modeling, and
And precise definition and constraint are carried out to the controlling stream data stream of behavior by AS&MC grammer;
(5) the compiling parsing of specific area eXecute UML:Specific area eXecute UML executes framework in Action logic
Middle through compiling resolving formed specific area eXecute UML behavior scene intermediate code, wherein comprise AS&MC parsing,
XDSMML parsing and specific area eXecute UML behavior scene compile three main process;BLEF passes through the core of each process
Algorithm, extracts and compiles specific area eXecute UML behavior scene and form generation in the middle of specific area eXecute UML behavior scene
Code, registration behavior scene information and abstract operation information in specific area model execution infrastructure simultaneously;
(6) specific area model execution infrastructure provide performing environment for specific area eXecute UML:With model solution
Analysis execution mechanism substitutes code generator, and is combined into the specific area model execution specific neck of infrastructure with Domain Framework
Domain model executes infrastructure, and the running software that specific area model execution infrastructure are positioned in networking operational environment is put down
Platform, simultaneously as the performing environment of specific area eXecute UML, with the accurately complete behavior of specific area eXecute UML
Logic is core, with specific area WEB service atom group for software function entity, specific area eXecute UML is converted into net
The form completion system of purchase software is realized.
The present invention provide the model driving development method based on Domain-specific Modeling it is intended to solve the problems, such as Software Create,
Realizing by model conversation is executable final system;The end user being wherein familiar with demand builds application model, domain expert
Carry out domain analysis Meta Model, technical specialist develops specific area supporting, be integrally formed in model execution infrastructure
Executable software.The behavior modeling of the model driving development method xDSM based on Domain-specific Modeling of the embodiment of the present invention is pin
Action logic is modeled, and is not simply to express calculating logic.Behavior and calculating are mutual blendings, and behavior is patrolled
Collect and calculating logic decoupling, make Action logic emphasis describe the conspiracy relation between field concept, and ignore the meter realizing details
Calculation process, the calculating logic of field business atomic operation is packaged in service, the Action logic being formed on this basis
It is accurate and specific.In order to reduce the gap between field concept and its realization further, DSM domain model represents " neck
Domain concept ", the information required for code building is included in domain model, thus code can automatically generate from domain model,
In the presence of Domain Framework, these codes become final products.The mode of DSM covered code, as programming mode today
The mode of hiding compiler is the same down.DSM mainly does two pieces thing.First, without by programming but by language-specific
In solution lifting abstraction level.This language directly uses concept and rule in a certain particular problem domain.Second, use
The programming language selecting or the other modes producing from high-level stipulations generate object code.Because model language, generation
Code generates and skeleton code is all required to be applied to the demand of a specific application area, and the automatization of application development becomes
May.In other words, application development is domain-oriented and completely under the control of the user.The target of DSM is
Model for realization, rather than analysis and the instrument designing.Can perform the accurately fixed of Meta Model language xDSMML in specific area
Under justice, xDSM application model is set up for domain specific application by xDSM meta-model, xDSM application model is accurately complete to retouch
State system action, meet the requirement of MMLs5.But, simple xDSM can not possibly execute, and it must rely on certain execution
Parsing execution, specific area model executes the performing environment that infrastructure DSMEI provide xDSM application model to environment.
The behavior that DSMEI parses xDSM application model is semantic, is converted into the sequence of operation with Precise Semantics, and execution operation simultaneously is with reality
Existing aims of systems.DSMEI incorporates Domain Framework and combines specific area WEB service atom group AGDSWS for pseudo operation offer
Software function entity.So that xDSM becomes executable software product in DSMEI.The present invention executes machine with model analyzing
System substitutes code generator, and is combined into specific area model execution infrastructure with Domain Framework, for specific area
As joint stock company financial software, public institution's resource management software, domain expert and technical specialist define software component and former
Model, user builds specific area model on this basis, and this model executes under the support of infrastructure in specific area model
Directly formed and only carry out software;Propose a kind of user and model the method forming software as playing with building blocks, thus improve software opening
Send out efficiency.
Brief description
Fig. 1 is the model driving development method flow chart based on Domain-specific Modeling provided in an embodiment of the present invention.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, with reference to embodiments, to the present invention
It is further elaborated.It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to
Limit the present invention.
It is contemplated that carrying out deeply to Domain-specific Modeling method and Mode-driven architecture, with models mature degree MMLs5
Level standard is to instruct, the modeling language of design specific area eXecute UML, gives the executable behavior of model semantic.Meanwhile,
Combine software reuse technology on this basis and distributed computing technology design executes infrastructure with instantiation model, build specific neck
Domain modeling process and implementation framework, finally realize the model driving development method centered on model.
Below in conjunction with the accompanying drawings the application principle of the present invention is explained in detail.
As shown in figure 1, the embodiment of the present invention following step is included based on the model driving development method of Domain-specific Modeling
Suddenly:
S101:Define specific area and can perform Meta Model language;
S102:XDSM Meta Model;
S103:XDSM application modeling;
S104:The business objective that the target modeling is for specific area is applied to build the behavior scene of some row;
S105:The compiling parsing of xDSM;
S106:DSMEI can provide performing environment for xDSM as model virtual machine in different platform.
With reference to specific embodiment, the application principle of the present invention is further described.
The present invention, with specific area model as target, is set up for core with accurately complete behavior modeling and meets MMLs5 level
EXecute UML, based on complete, consistent, detailed and accurate model description, with model analyzing execution mechanism substitute code life
Grow up to be a useful person, and with Domain Framework (Domain Framework) be combined into specific area model execution infrastructure, simultaneously with
Standardization, self-contained, self-described, modular WEB service lift the abstraction hierarchy that code is realized, and it is thin that encapsulation code is realized
Section, the related software functional entity of specific area is supplied to specific area model in the way of WEB service cluster and executes basis
Facility, carrys out the operation of drive system with the parsing execution of behavior model.This is to be built based on the executable specific area of WEB service
Mould bases structure (eXecutable Domain-Specific Modelling based on Web Services, xDSMOWS)
Core concept, it based on Domain-specific Modeling from model refine and implementation lifting two in terms of can hold to build
The model of row and its execution infrastructure.
XDSMOWS is divided into three levels, corresponds to three key elements respectively:
Specific area eXecute UML (Executable Domain-specific Model, xDSM), specific area mould
Type execution infrastructure (Domain-specific Model Execution Infrastructure, DSMEI), specific area
WEB service atom group (Atomic Group of Domain-specific WEB Services, AGDSWS).
XDSM parses execution in DSMEI, and the execution of xDSM depends on the corresponding interface that Domain Framework is provided, field frame
The field related service that frame passes through AGDSWS provides kernel software functional entity, and supports the execution of xDSM upwards.Specific neck
Domain eXecute UML xDSM, specific area model execution infrastructure DSMEI and specific area WEB service atom group AGDSWS are altogether
With the executable Domain-specific Modeling framework constituting based on WEB service.
Being comprised the following steps that based on the model driving development method of Domain-specific Modeling of the embodiment of the present invention:
1st, define specific area and can perform Meta Model language;Model is the function to system, structure, behavior and its environment
Description and stipulations.Model needs the language using having good definition to describe.The language with good definition refers to this language
There is strict form (grammer) and implication (semantic), can be by the automatic explanation and understanding of computer.Specific area can perform unit
Modeling language (eXecutable Domain-specific Meta-Modelling Language, xDSMML) is for specific
The Meta Model language of field modeling method design, for carrying to xDSM Meta Model and xDSM application modeling in general modeling environment
Support for description language, can support description and the construction of xDSM meta-model and xDSM application model simultaneously.
2nd, xDSM Meta Model:In the xDSM Meta Model stage, by domain expert, specific area is analyzed and sets up xDSM
Meta-model, domain expert (Domain Expert), to Domain Modeling, captures specific area concept, constraint, rule and performance
Form, creates domain object, relation and related constraint.It is simultaneous for xDSM meta-model, specific area is built by technical specialist and props up
Support service.
3rd, xDSM application modeling:Made on the basis of xDSM meta-model for application demand by end user (End User)
With specific area concept, Problem Areas are carried out with application entity modeling, and in modeling process strict in accordance with xDSM meta-model institute
The specification of definition and constraint.The xDSM application model that end user sets up is able to carry out in DSMEI and verifies that user's application needs
Ask and model the requirement meeting software system that can be complete it is ensured that applying.
4th, the business objective that the target modeling is for specific area is applied to build the behavior scene of some row:Behavior scene
(Behavior Scenario) contains a series of actions (Action) realizing system action, exists for particular system target
An implementation procedure in the execution phase, for illustrating the interaction between domain object and cooperation.In order to realize a business objective,
Some behavior scenes that different stage may be needed mutually support.Behavior scene models from the visual angle of territorial behavior process, embodies
For Action logic model view, describe Action logic in the way of visual modeling, and by AS&MC grammer to behavior
Controlling stream data stream carries out precise definition and constraint.
5th, the compiling parsing of xDSM:XDSM is parsed through a series of compiling in Action logic execution framework (BLEF)
Journey forms xDSM behavior scene intermediate code, wherein comprises AS&MC parsing, xDSMML parsing and xDSM behavior scene and compiles three
Main process.(present invention is with the pseudo table of algorithm flow chart and class Pascal by the core algorithm of each process for BLEF
Show), extract and compile xDSM behavior scene and form xDSM behavior scene intermediate code, register behavior scene simultaneously in DSMEI
Information and abstract operation information, are that the execution of xDSM lays the foundation.
6th, DSMEI can provide performing environment for xDSM as model virtual machine in different platform:With model solution
Analysis execution mechanism substitutes code generator, and is combined into specific area model with Domain Framework (Domain Framework)
Execution infrastructure DSMEI, DSMEI is positioned in the software running platform in networking operational environment, holding simultaneously as xDSM
Row environment, with the accurately complete Action logic of xDSM as core, with AGDSWS for software function entity, by xDSM model conversation
Form completion system for net purchase software is realized.
The behavior modeling of the model driving development method xDSM based on Domain-specific Modeling of the embodiment of the present invention is to be directed to
Action logic is modeled, and is not simply to express calculating logic.Behavior and calculating are mutual blendings, by Action logic
With calculating logic decoupling, make Action logic emphasis describe the conspiracy relation between field concept, and ignore the calculating realizing details
Process, the calculating logic of field business atomic operation is packaged in service, and the Action logic being formed on this basis is
Accurately and specific.In order to reduce the gap between field concept and its realization further, DSM domain model represents " field
Concept ", the information required for code building is included in domain model, thus code can automatically generate from domain model,
In the presence of Domain Framework, these codes become final products.The mode of DSM covered code, as under today programming mode
The mode of hiding compiler is the same.DSM mainly does two pieces thing.First, without by programming but by language-specific
Solution lifting abstraction level.This language directly uses concept and rule in a certain particular problem domain.Second, with choosing
The programming language selected or the other modes producing from high-level stipulations generate object code.Because model language, code
Generate and skeleton code is all required to be applied to the demand of a specific application area, the automatization of application development becomes can
Energy.In other words, application development is domain-oriented and completely under the control of the user.The target of DSM is pin
Realization is modeled, rather than analysis and the instrument designing.Can perform the explication of Meta Model language xDSMML in specific area
Under, xDSM application model, the accurately complete description of xDSM application model are set up for domain specific application by xDSM meta-model
System action, meets the requirement of MMLs5.But, simple xDSM can not possibly execute, and it must rely on certain execution ring
Parsing execution, specific area model executes the performing environment that infrastructure DSMEI provide xDSM application model in border.DSMEI
The behavior of parsing xDSM application model is semantic, is converted into the sequence of operation with Precise Semantics, and execution operation simultaneously is to realize being
System target.DSMEI incorporates Domain Framework and combines specific area WEB service atom group AGDSWS for pseudo operation offer software
Functional entity.So that xDSM becomes executable software product in DSMEI.
With reference to specific embodiment, the application principle of the present invention is made with further youngster's description.
The automatic conversion realized with system for implementation model, can be set about, one in terms of two:Refine model, reduce
The level of abstraction, enables the description software that model is accurately complete, progressively realizes near system.Models mature degree MMLs is exactly a degree
Amount model descriptive power and the standard of the level of abstraction, refining of model is also accurate from obscuring, from being abstracted into specific process, one
Step by step reduce the gap realized with system such that it is able to significantly more efficient generation software system.MMLs4 and MMLs5 level is ratio
Relatively it is suitable as the models mature degree rank of code building, the difficulty being converted into system realization more upwards is bigger, even can not
Can reach.The structure of the related eXecute UML based on UML unified modeling language is also to develop according to this thinking, from
UML2.0 starts to have carried out basic change to UML architecture, more focuses on behavior modeling, and introduces partial higher language
Speech element, is accurately constrained to model using OCL simultaneously, is directly come using action specification language in xUML and xtUML
Additional notes system, more accurate and complete presses close to realize, and is easy to realize conversion to system.Second:Improve code generator
Realize technology, make code building have very strong adaptability and motility, progressively near model describe.Mode-driven architecture is
Set up on prior art, the progress of computer technology also will promote the realization of Mode-driven architecture, Object-oriented Technique
Appearance facilitate the success of UML, the computer technology such as component technology, distributed computing technology, artificial intelligence, data mining is progressively
Development also will promote the reality of code generator or further model virtual machine (Model Virtual Machine, MVM)
Existing, complete is system realization by model conversation automatically, the software model even relatively obscuring.
The present invention with on-line shopping system as application case, by the executable Domain-specific Modeling based on WEB service
Framework builds specific area eXecute UML, and executes xDSM application mould in specific area model execution infrastructure DSMEI
Type is to realize case system.Domain-specific Modeling mistake is stressed for core connected applications case with specific area eXecute UML
Journey and implementation framework.Current the Internet not only provides an information platform for people, no matter more provides a transaction platform
It is the utilization interconnection that between enterprise, between (B2B), enterprise and client, between (B2C) or client and client, (C2C) can stay indoors
Net is traded, and realizes shopping online, thus transactions velocity is greatly improved, saves transaction cost.The present invention is purchased with online
Thing core domain carries out domain analysis, builds eXecute UML.
1 shopping online domain analysis
Shopping online carries out domain analysis using online shopping (Online Shopping) core domain as specific area.
Client's login system, classified browse merchandise news are passed through in online shopping, select multiple end article to form order, finally select to join
Send mode, and complete to conclude the business by bank's on-line payment.For most of on-line shopping system, this business procession
It is identical, demand is also common, the structure of B/S can be adopted to carry out this system of framework.But in each shopping online specific
On system is realized, its merchandise news, customer information and business rule are to be not quite similar.By analysis, the present invention can obtain
Several main field concepts:
Client (Customer):Client, as the main body of shopping online, contains all information of register user.Through overstocked
Code checking logs into system, and all of shopping online link is all relevant with client, including order, dispensing, on-line payment etc..
Goods browse (Browser Product):The merchandise news row that user is provided by different classified browse businessmans
Table, and inquire about its details.
The free choice of goods (Buy Product):By goods browse, user selects and orders the goods, and forms order.
Order (Order):Order is formed from client's free choice of goods, be client buy commodity set, be also dispensing with
The elementary cell paying.
Goods delivery (Freight Delivery):Collect commodity distribution information, and dispensing expense is calculated by sequence information
With.
Select dispensing (Select Delivery):Select dispensing supplier, and determine the detail of goods delivery.
Bank paying (Bank Payment):Dock the payment completing tranaction costs with bank.
Online transaction (Online Transaction):Select draw bank and concluded the business according to ordering on line.
2 shopping online modeling process
2.1 Meta Model stages
On the basis of the domain analysis of shopping on the web system, the present invention carries out xDSM using general modeling environment Archware
Meta Model.Initially set up the domain level constraints of " shopping online ", set up the meta-model in shopping online field thereon, set in meta-model
Visual Definition Model element in gauge.
According to the domain analysis of shopping online, obtain the field concept of correlation, thus defining shopping online domain level constraints
XDSM meta-model.Define the base attribute of model element, diagram and event in meta-model first.
General modeling environment Archware passes through define meta-model attribute of an element, diagram and event establishment basis
Shopping online domain level constraints xDSM meta-model, domain entities, behavior scene basis meta-model is quoted in the association of domain entities
Associated element, event is all mainly DesignTime Event, by general modeling environment application modeling when realize.Simultaneously right
Can additional model constrain on domain entities, it is all using AS&MC syntactic definition as event, can be perfect
The details of xDSM meta-model.For example:
The model constraint of " order " domain entities, it is an invariant:Price sum total of Products etc. in order
In TotalPrice.
The design period mouse click event of " client " domain entities:Initialization display properties configuration interface, by
Archware realizes.
In Archware, the present invention can define behavior operation by three kinds of modes.First, it is utilized with behavior scene
He operates in the construction behavior of xDSM meta-model;Secondly, operated by AS&MC syntactic definition behavior;3rd, behavior Operation Definition is
Abstract operation, realizes it with specific WEB service.The tool of model element defined in xDSM meta-model of shopping online domain level constraints
There are multiple behavior operations, realize the systemic-function that field concept is comprised.
Client (Customer)
Password authentification [abstract operation]
Operation PasswordValidation;Abstract;
InputPin UserID,Password:string;
OutputPin Result:Boolean;
Log-in interface [abstract operation]
Operation LoginInterface;Abstract;
InputPin Null;
OutputPin Result:string;
User logs in [behavior scene]
Operation Login;BS;
InputPin Null;
OutputPin Result:string;
Goods browse (BrowserProduct)
Goods browse [abstract operation]
Operation BrowserProduct;Abstract;
InputPin BrowserType:string;
OutputPin Result:string;
The free choice of goods (Buy Product)
The free choice of goods [behavior scene] [active operation]
Operation BuyProduct;BS;Active;
InputPin Null;
OutputPin Result:string;
Order (Order)
Acknowledgement of orders [abstract operation]
Operation OrderConfirm;Abstract;
InputPin OrderID:string;
OutputPin Result:Boolean;
Cancel an order [abstract operation]
Operation OrderCancel;Abstract;
InputPin OrderID:string;
OutputPin Result:Boolean;
Increase commodity [abstract operation]
Operation AddProduct;Abstract;
InputPin OrderID,ProductID:string;Num:int;
OutputPin Result:Boolean;
Delete commodity [abstract operation]
Operation DelProduct;Abstract;
InputPin OrderID,ProductID:string;Num:int;
OutputPin Result:Boolean;
Goods delivery (Freight Delivery)
Information [abstract operation]
Operation DeliveryInfo;Abstract;
InputPin OrderID,DeliveryProvider:string;
OutputPin Result:string;
Expense calculates [abstract operation]
Operation CostCalculate;Abstract;
InputPin OrderID,DeliveryProvider:string;
OutputPin Result:Real;
Select dispensing (Select Delivery)
Select dispensing [behavior scene] [active operation]
Operation SelectDelivery;BS;Active;
InputPin OrderID:string;
OutputPin Result:string;
Bank paying (Bank Payment)
Payment information collects [abstract operation]
Operation SelectBank;Abstract;
InputPin Null;
OutputPin Result:string;
Payment affirmation [abstract operation]
Operation PayConfirm;Abstract;
InputPin OrderID,BankName:string;
OutputPin Result:string;
Order pays [abstract operation]
Operation OrderPay;Abstract;
InputPin OrderID,BankName:string;Fee:Real;
OutputPin Result:Boolean;
Online transaction (Online Transaction)
Transaction [behavior scene] [active operation]
Operation Transaction;BS;Active;
InputPin OrderID:string;
OutputPin Result:string;
Shopping online domain level constraints just extract all abstract operations in the Meta Model stage, take with the WEB realizing this operation
Business is corresponding, forms the AGDSWS information on services of domain level constraints.Taking the password authentification abstract operation of " client " modeling element as a example:
Shopping online domain level constraints, using the extension based on meta-models mechanism of xDSM, using the existing meta-model of shopping online and row
Define the behavior operation of shopping online field meta-model model element for scene basis meta-model, be solidified on xDSM meta-model
In.In the xDSM meta-model of shopping online domain level constraints, multiple model elements are had to have the behavior operation of behavior scene description.
Client model element, the behavior scene of Login operation:
Select dispensing model element, the behavior scene of SelectDelivery active operation:
Free choice of goods model element, the behavior scene of BuyProduct active operation:
Online transaction model element, the behavior scene of Transaction active operation:
The behavior that behavior scene one side is capable of in the structure xDSM model of clear and definite operates, descriptive system behavior, separately
On the one hand with the behavior operation of behavior scene description meta-model, other field space meta-model can be quoted, domain knowledge is provided
With the multiplexing realized.In behavior scene, the relation (Relationship) using behavior scene basis meta-model can be fine
Set up controlling stream, the data flow of behavior scene then needs by Domain-specific Modeling element, on mainly Relationship
Additional action stipulations are associated.Action stipulations show as the active operation of an AS&MC syntactic description.Shopping on the web is led
In domain space, taking confirm the Relationship that login event and client password verification operation are associated as a example, had thereon
Active operation continued both data.
This ordering relation associated element can bind SR_ActiveOP1 active operation be cured as in meta-model having specific
The relationship modeling element of role, convenient application modeling, as space is limited, the present invention does not so define.
2.2 application modelling phases
Based on the meta-model of shopping online domain level constraints, the present invention carries out domain specification for self-built on-line shopping system and divides
Analysis.On the basis of system requirements stipulations, application shopping online field meta-model and behavior scene basis unit in Archware
Model construction xDSM application model.
For general modeling environment Archware, modeling user not only can build xDSM application model, Er Qieneng
The behavior scene of behavior operation enough described in modification meta-model, such as client logs in behavior scene, free choice of goods behavior scene etc.,
So as to the controllability of maximized raising xDSM model, simplify application model.
The enforcement of 3 on-line shopping systems
After the completion of on-line shopping system modeling, define the xDSM application of shopping online domain level constraints and on-line shopping system
Model, they are the bases that eXecute UML is implemented.Specific area model execution infrastructure (DSMEI) is that specific area is implemented
The key component of framework.DSMEI loads and compiles xDSM application model, forms xDSM behavior scene intermediate code, and it wraps
Action logic process and the interface message of behavior scene in xDSM are contained, Action logic performance element can be loaded directly into holding
OK.The execution of the xDSM application model of on-line shopping system needs the support of AGDSWS.AGDSWS information on services configuration tool energy
Enough load the AGDSWS information on services of shopping online domain level constraints, also operationally dynamic configuration can support WEB service simultaneously.
The xDSM application model of on-line shopping system is loaded into DSMEI by the present invention, and by shopping online domain level constraints
AGDSWS information on services be loaded into the configuration of AGDSWS information on services after, on-line shopping system is accessed by web browser
The guiding page, it calls the WEB service of DSMEI offer using AJAX technology, realizes WEB page DOM Dynamic Announce and interaction.
The present invention by the modeling of on-line shopping system and enforcement, comprehensively illustrate Domain-specific Modeling process with specific
Field implementation framework, is modeled with xDSM application including the xDSM Meta Model for shopping online field, and in DSMEI
Execution xDSM application model, realizes on-line shopping system.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.
Claims (4)
1. a kind of model driving development method based on Domain-specific Modeling it is characterised in that described based on Domain-specific Modeling
Model driving development method set up for core with behavior modeling and meet the eXecute UML of MMLs5 level, with model analyzing execution
Mechanism substitutes code generator;And it is combined into specific area model execution infrastructure with Domain Framework;Simultaneously with standard
Change, self-contained, self-described, modular WEB service lift the abstraction hierarchy that code is realized, the details that encapsulation code is realized;Will
The related software functional entity of specific area is supplied to specific area model execution infrastructure in the way of WEB service cluster,
The operation of drive system is come with the parsing execution of behavior model.
2. the model driving development method based on Domain-specific Modeling as claimed in claim 1 is it is characterised in that described WEB
The executable Domain-specific Modeling framework of service is divided into three levels, corresponds to three key elements respectively:Specific area can be held
Row model, specific area model execution infrastructure, specific area WEB service atom group;
The parsing execution in specific area model execution infrastructure of specific area eXecute UML, specific area eXecute UML
Execution depend on the corresponding interface that Domain Framework provided, Domain Framework passes through the field of specific area WEB service atom group
Related service provides kernel software functional entity, and supports the execution of specific area eXecute UML upwards;Specific area can
Execution model specific area eXecute UML, specific area model execution infrastructure specific area model execution infrastructure and
Specific area WEB service atom group specific area WEB service atom group S has collectively constituted the executable spy based on WEB service
Determine field modeling framework.
3. the model driving development method based on Domain-specific Modeling as claimed in claim 1 is it is characterised in that described be based on
The model driving development method of Domain-specific Modeling comprises the following steps that:
(1) define specific area and can perform Meta Model language;Using having strict form and implication, can be automatic by computer
Explanation and understanding;
(2) specific area eXecute UML Meta Model:In the specific area eXecute UML Meta Model stage, by domain expert to spy
Determine field to be analyzed and set up specific area eXecute UML meta-model, domain expert, to Domain Modeling, captures specific
Field concept, constraint, rule and the form of expression, create domain object, relation and related constraint;
(3) specific area eXecute UML application modeling:Application demand is directed in specific area eXecute UML by end user
Using specific area concept, application entity modeling is carried out to Problem Areas on the basis of meta-model;The specific area set up can perform mould
Type application model executes in specific area model execution infrastructure and verifies user's application demand;
(4) application modeling structure behavior scene:Behavior scene comprises a series of actions realizing system action, to particular system mesh
It is marked on an implementation procedure in the execution phase, for the interaction between domain object and cooperation are described;Behavior scene is from field row
For the visual angle modeling of process, it is presented as Action logic model view, in the way of visual modeling, describes Action logic, and lead to
Cross AS&MC grammer and precise definition and constraint are carried out to the controlling stream data stream of behavior;
(5) the compiling parsing of specific area eXecute UML:Specific area eXecute UML warp in Action logic execution framework
Cross compiling resolving and form specific area eXecute UML behavior scene intermediate code, wherein comprise AS&MC parsing, xDSMML
Parsing and specific area eXecute UML behavior scene compile three main process;BLEF passes through the core algorithm of each process,
Extract and compile specific area eXecute UML behavior scene and form specific area eXecute UML behavior scene intermediate code, with
When in specific area model execution infrastructure registration behavior scene information and abstract operation information;
(6) specific area model execution infrastructure provide performing environment for specific area eXecute UML:Held with model analyzing
Row mechanism substitutes code generator, and is combined into specific area model execution infrastructure specific area mould with Domain Framework
Type executes infrastructure, and specific area model executes the software running platform that infrastructure are positioned in networking operational environment,
Simultaneously as the performing environment of specific area eXecute UML, with the accurately complete Action logic of specific area eXecute UML
For core, with specific area WEB service atom group for software function entity, specific area eXecute UML is converted into net purchase soft
The form completion system of part is realized.
4. the net of the model driving development method based on Domain-specific Modeling described in a kind of utilization claim 1~3 any one
The design and development method of purchase software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610883519.8A CN106406906A (en) | 2016-10-10 | 2016-10-10 | Model driven development method based on specific domain modeling |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610883519.8A CN106406906A (en) | 2016-10-10 | 2016-10-10 | Model driven development method based on specific domain modeling |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106406906A true CN106406906A (en) | 2017-02-15 |
Family
ID=59229236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610883519.8A Withdrawn CN106406906A (en) | 2016-10-10 | 2016-10-10 | Model driven development method based on specific domain modeling |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106406906A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106874014A (en) * | 2017-03-06 | 2017-06-20 | 北京领航里程碑软件技术有限公司 | The three layer identification code generation methods based on model and framework |
CN107562421A (en) * | 2017-09-28 | 2018-01-09 | 北京神州泰岳软件股份有限公司 | A kind of natural language processing method and processing platform |
CN108733014A (en) * | 2017-04-21 | 2018-11-02 | 西门子股份公司 | It is proposed and/or establish method, equipment, automated system and the device of Ai Zhen bodies |
CN109523423A (en) * | 2018-11-28 | 2019-03-26 | 中国海洋石油集团有限公司 | A kind of application system generation method, device, equipment and storage medium |
CN109840081A (en) * | 2018-03-26 | 2019-06-04 | 上海聆播信息科技有限公司 | A kind of behavior drives the synergic editing method and its device of drama code in exploitation |
CN110378564A (en) * | 2019-06-18 | 2019-10-25 | 中国平安财产保险股份有限公司 | Monitoring model generation method, device, terminal device and storage medium |
CN110968294A (en) * | 2018-09-30 | 2020-04-07 | 上海羚驭信息技术有限公司 | Business domain model establishing system and method |
CN111324965A (en) * | 2020-03-04 | 2020-06-23 | 杭州群核信息技术有限公司 | Cloud-based universal parameterized model analysis method and design system |
CN111930360A (en) * | 2020-07-09 | 2020-11-13 | 西北工业大学 | Method and device for realizing dynamic interactive modeling tool |
CN112328239A (en) * | 2020-09-30 | 2021-02-05 | 合科软件(北京)有限责任公司 | CIM model definition method and device |
CN115857898A (en) * | 2023-02-25 | 2023-03-28 | 武汉万云网络科技有限公司 | Application system construction and operation method and device |
CN116414376A (en) * | 2023-03-01 | 2023-07-11 | 杭州华望系统科技有限公司 | Domain meta-model construction method based on general modeling language |
CN117311683A (en) * | 2023-11-24 | 2023-12-29 | 浙江口碑网络技术有限公司 | Code auxiliary system, code auxiliary processing method and device and electronic equipment |
CN117348863A (en) * | 2023-09-06 | 2024-01-05 | 苏州数设科技有限公司 | Low-code development method and device for industrial software, electronic equipment and storage medium |
-
2016
- 2016-10-10 CN CN201610883519.8A patent/CN106406906A/en not_active Withdrawn
Non-Patent Citations (2)
Title |
---|
刘俊晖: "《基于WEB服务的特定领域模型可执行性研究与实例化》", 31 December 2014, 中国国家图书馆馆藏 * |
崔妍妍: "特定领域动态元建模语言研究", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106874014B (en) * | 2017-03-06 | 2020-05-22 | 北京领航里程碑软件技术有限公司 | Three-layer code generation method based on model and framework |
CN106874014A (en) * | 2017-03-06 | 2017-06-20 | 北京领航里程碑软件技术有限公司 | The three layer identification code generation methods based on model and framework |
CN108733014A (en) * | 2017-04-21 | 2018-11-02 | 西门子股份公司 | It is proposed and/or establish method, equipment, automated system and the device of Ai Zhen bodies |
CN107562421A (en) * | 2017-09-28 | 2018-01-09 | 北京神州泰岳软件股份有限公司 | A kind of natural language processing method and processing platform |
CN109840081A (en) * | 2018-03-26 | 2019-06-04 | 上海聆播信息科技有限公司 | A kind of behavior drives the synergic editing method and its device of drama code in exploitation |
CN110968294B (en) * | 2018-09-30 | 2023-03-10 | 上海羚驭信息技术有限公司 | Business domain model establishing system and method |
CN110968294A (en) * | 2018-09-30 | 2020-04-07 | 上海羚驭信息技术有限公司 | Business domain model establishing system and method |
CN109523423A (en) * | 2018-11-28 | 2019-03-26 | 中国海洋石油集团有限公司 | A kind of application system generation method, device, equipment and storage medium |
CN109523423B (en) * | 2018-11-28 | 2022-04-19 | 中国海洋石油集团有限公司 | Application system generation method, device, equipment and storage medium |
CN110378564A (en) * | 2019-06-18 | 2019-10-25 | 中国平安财产保险股份有限公司 | Monitoring model generation method, device, terminal device and storage medium |
CN111324965A (en) * | 2020-03-04 | 2020-06-23 | 杭州群核信息技术有限公司 | Cloud-based universal parameterized model analysis method and design system |
CN111324965B (en) * | 2020-03-04 | 2023-04-21 | 杭州群核信息技术有限公司 | Cloud-based general parameterized model analysis method and design system |
CN111930360B (en) * | 2020-07-09 | 2023-05-23 | 西北工业大学 | Method and device for realizing dynamic interactive modeling tool |
CN111930360A (en) * | 2020-07-09 | 2020-11-13 | 西北工业大学 | Method and device for realizing dynamic interactive modeling tool |
CN112328239A (en) * | 2020-09-30 | 2021-02-05 | 合科软件(北京)有限责任公司 | CIM model definition method and device |
CN115857898A (en) * | 2023-02-25 | 2023-03-28 | 武汉万云网络科技有限公司 | Application system construction and operation method and device |
CN116414376A (en) * | 2023-03-01 | 2023-07-11 | 杭州华望系统科技有限公司 | Domain meta-model construction method based on general modeling language |
CN116414376B (en) * | 2023-03-01 | 2023-09-15 | 杭州华望系统科技有限公司 | Domain meta-model construction method based on general modeling language |
CN117348863A (en) * | 2023-09-06 | 2024-01-05 | 苏州数设科技有限公司 | Low-code development method and device for industrial software, electronic equipment and storage medium |
CN117311683A (en) * | 2023-11-24 | 2023-12-29 | 浙江口碑网络技术有限公司 | Code auxiliary system, code auxiliary processing method and device and electronic equipment |
CN117311683B (en) * | 2023-11-24 | 2024-03-19 | 浙江口碑网络技术有限公司 | Code auxiliary system, code auxiliary processing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106406906A (en) | Model driven development method based on specific domain modeling | |
Scheer et al. | Enterprise resource planning: making ERP a success | |
Xu et al. | Modelling and analysis techniques for cross‐organizational workflow systems | |
CN107451872A (en) | The management method and device of flight freight rate | |
Tran et al. | View-based and model-driven approach for reducing the development complexity in process-driven SOA | |
CN104156854A (en) | Method and system for realizing financial products based on product plant design concept | |
Brown et al. | A Rational approach to model-driven development | |
CN101989202A (en) | Competitive bidding simulation system and method based on multi-agent and multi-electricity market model | |
Krishna et al. | From contracts to e-contracts: Modeling and enactment | |
Zhu et al. | Model-driven business process integration and management: A case study with the Bank SinoPac regional service platform | |
Arsanjani | Empowering the business analyst for on demand computing | |
Kulkarni | Model driven development of business applications: a practitioner's perspective | |
Donegan et al. | Design issues in a component-based software product line | |
Kulkarni | Model driven software development: a practitioner takes stock and looks into future | |
Wang et al. | A hierarchical multi-view modeling for Networked Joint Manufacturing System | |
Plachy et al. | Enterprise solutions structure | |
Teodoru | Business process management integration solution in financial sector | |
Rahmouni et al. | Model-driven architecture: generating models from Symfony framework | |
Neumann et al. | Came-a tool set for configuring electronic markets | |
Hsu et al. | On the Product Development Model of Service Innovation in Manufacturing Industry | |
Mascardi et al. | DCaseLP: a prototyping environment for multi-language agent systems | |
Vahdati et al. | Modeling and Model Transformation as a Service: Towards an Agile Approach to Model-Driven Development | |
KR20100000886A (en) | A method of generating a work-process system using a technique which a general user can design and revise | |
Wu et al. | Professional design patterns in VB. NET: building adaptable applications | |
Feuerlicht | System development life-cycle support for service-oriented applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170215 |
|
WW01 | Invention patent application withdrawn after publication |