CN100435093C - Data converting device and program for data conversion - Google Patents
Data converting device and program for data conversion Download PDFInfo
- Publication number
- CN100435093C CN100435093C CNB200510071780XA CN200510071780A CN100435093C CN 100435093 C CN100435093 C CN 100435093C CN B200510071780X A CNB200510071780X A CN B200510071780XA CN 200510071780 A CN200510071780 A CN 200510071780A CN 100435093 C CN100435093 C CN 100435093C
- Authority
- CN
- China
- Prior art keywords
- data
- conversion
- pim
- psm
- information
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
A PIM-PSM data conversion system is provided, which is provided with MBC data (21) for preliminarily preparing PIM data, a conversion rule set (24) for deciding a conversion rule and an MBC data (25) for conversion that defines rule items of the conversion rule. The system constructs PIM data (2) of design model data of an upstream CASE independent of a platform based on the MBC data (21) for preparing PIM data and utilizes the designed PIM data (2) as output. The system further comprises PIM-PSM conversion means (26, 27) which selects the necessary conversion rule set based on the conversion rule set name included in an operation instruction inputted from the outside, extracts the definition of MBC data (25) for conversion to decide the conversion rule items of the selected conversion rule set, and converts the PIM data into PSM data (3) according to the conversion rule set.
Description
Technical field
(Object Management Group: the MDA (Model Driven Architecture: based on OO style, the schematism that is used to carry out software development) of the regulation standardization body that disperses object) is used to carry out DTU (Data Transfer unit) and the program for data conversion that the bit other places pat PIM (platform independent model) data and PSM (the special transaction module of the platform) data of the detailed software design of platform by OMG to the present invention relates to utilization.
Background technology
Software development need extract the problem of object domain, correct assurance user's demand and modelling.In software development, according to the step of its exploitation etc., there are some software development type life cycle models, but we can say and common be, general will carry out the analysis of software development object, design, program generates, processes such as checking.
CASE (the Computer Aided SoftwareEngineering: computer-aided software engineering (CASE)) instrument that seeks for the work that alleviates program development is arranged, but the data style that the CASE instrument uses is intrinsic as the CASE instrument, be difficult between the CASE instrument and use data, and it is also very difficult to change the CASE instrument.
On the other hand, a method as software development, have and utilize UML (Unified Modeling Language: OO (Object Oriented) framework-modularity employed modeling language of object-oriented analysis/design) has become standardized size a kind of of OMG.
But, though more than such framework-modularity utilize the framework of UML editing machine generator program, but because in this case, be not the upstream CASE of analysis, design etc., also comprise downstream CASE such as program is made, tested, maintenance, need to generate the program code that to carry out, therefore, when the program of the different platform of design, have at each platform redesign program, comprise the reduction of engineering of software development in upstream and downstream and productive raising etc. and be the unusual situation of difficulty.
The present invention In view of the foregoing finishes, it is a kind of when the program of record of observing UML and design different platform that its purpose is to provide, to design program in order not remodifying at each platform respectively, can to obtain to comprise the reduction of engineering of software development in upstream and downstream and DTU (Data Transfer unit) and the program for data conversion that improves productivity etc.
Summary of the invention
(1) in order to solve above-mentioned problem, DTU (Data Transfer unit) of the present invention is the information that does not rely on platform, its structure is for to be provided with: from the information that is independent of platform promptly the information according to the system of the relation between objects performance of the processing of the function of system and aforementioned functional and aforementioned processing, extract the function identifying information of particular system function out, generate the device of realizing accepting from the user the design information of the functional programs of the processing requirements of the function of aforementioned extraction; Extract the process object identifying information of the object information of the processing and identification information of the specific processing that is used to realize aforementioned functional and identification aforementioned processing out from aforementioned system information, based on aforementioned processing identifying information and the aforementioned processing object identifying information extracted out, extract the identical processing of handling of object information out, generate the device of the design information of the program of handling for same process object information; Information extraction aforementioned processing object identifying information with from aforementioned system generates the device of realization to the design information of the program of the visit of the object information of aforementioned processing.(2) in addition,, narrate, but under the situation by this device of computer realization, also can realize a series of processing capacity of conversion of data by program with regard to the structure of DTU (Data Transfer unit) in aforementioned (1).
(3) in order to solve above-mentioned problem, data transfer device of the present invention is characterised in that: the platform independent model data that should import, the special transaction module data of the platform that should export, specify order as parameter in the place of conversion config data, the starting model compiler, the transform engine of starting conversion config data appointment, in aforementioned platform independent model data, the special transaction module data of platform, the transformation rule of appointment is provided with name and is appointed as transform engine in the conversion config data, corresponding aforementioned transformation rule is provided with name, the platform independent model data read has been specified the transformation rule setting of the conversion that should be suitable for based on the module data of model, read the module data of aforementioned conversion based on model, read aforementioned platform independent model data, conversion used based on the defined transformation rule of the assembly of model be applicable to the set of key element in the platform independent model data or key element in proper order and carry out conversion process, the special transaction module data of output stage.
Description of drawings
Become the figure of the scope of object of the present invention in the MDA style that Fig. 1 formulates according to OMG for explanation, the schematism.
Fig. 2 is the figure of explanation according to the model-driven development scheme of using in the MDA software development.
Fig. 3 is the figure of the relation of the present position of the explanation object range of MDA and object part of the present invention.
Fig. 4 is the figure of expression basic concept structure of the present invention.
Fig. 5 is the structural drawing of an embodiment of expression DTU (Data Transfer unit) of the present invention.
Fig. 6 is the figure of processing of the model compiling of key diagram 5.
Fig. 7 is the figure of explanation based on the data of a kind of PSER of the module data of handling.
Fig. 8 is the figure of the structure of the build.xml of an example of explanation conversion Config data.
Fig. 9 is the figure of explanation pim data/PSM data-switching with the structure of MBC data.
The figure of the pim data that Figure 10 handles for explanation and the correspondence of PSM data.
Figure 11 is the figure of the content example of expression processPackage.xsl.
Figure 12 is the figure of the data in the suitable place of the conversion process in the XML file of the pim data of explanation processing.
Figure 13 is the figure of the correspondence of the pim data of explanation service and PSM data.
Figure 14 is the figure of the content example of expression servicePackage.xsl.
Figure 15 is the figure of the data in the suitable place of the conversion process in the XML file of the pim data of explanation service.
Figure 16 is the figure of the correspondence of explanation pim data of entity and PSM data.
Figure 17 is the figure of the content example of expression entityPackage.xsl.
Figure 18 A, 18B are the figure of the data in the suitable place of the conversion process in the XML file of the pim data of explanation entity.
Figure 19 is the figure of the correspondence of regular pim data of explanation and PSM data.
Figure 20 is the figure of the content example of expression rulePackage.xsl.
Figure 21 is the figure of explanation in the data in the suitable place of the conversion process in the XML file of the pim data of rule.
Figure 22 is the figure of explanation towards the correspondence of the pim data of the processing of Struts+Web service and PSM data.
Figure 23 is the figure of presentation surface to the content example of the processPackage.xsl of Struts+Web service.
Figure 24 is the figure of explanation towards the correspondence of the service pim data of Struts+Web service and PSM data.
Figure 25 is the figure of presentation surface to the content example of the servicePackage.xsl of Struts+Web service.
Figure 26 is the figure of explanation towards the relation of each structure type of Struts.
Figure 27 is the figure of explanation towards the relation of each structure type of Struts+Web.
Embodiment
Below, with reference to accompanying drawing embodiments of the present invention are described.
Before an embodiment of explanation DTU (Data Transfer unit) of the present invention, at first, object range of the present invention and even present position are described referring to figs. 1 through Fig. 4.
Fig. 1 is for illustrating (the Object Management Group: the figure of the object range of MDA (Model DrivenArchitecture) style of formulating, the invention in the schematism standardization body of dispersion object) according to OMG, Fig. 2 for explanation in recent years according to the figure of the model-driven development scheme of using in the MDA software development, Fig. 3 is the graph of a relation of the present position of the explanation object range of MDA and object part of the present invention, and Fig. 4 is the figure of expression basic concept structure of the present invention.
As the MDA schematism, as shown in Figure 1, by computing independent model CIM (ComputationIndependent Model), platform independent model PIM (Platform Independent Model), special transaction module PSM of platform (Platform Specific Model) and real dress (implementation) are formed, and become to this to append the product group of portion of formation platform and the system that expression one cover provides the platform model of service.Though CIM, PIM, PSM pretends to be recorded and narrated for model in fact, in fact by CIM data 1 corresponding to each model, pim data 2, PSM data 3, real dress data 4 show (with reference to Fig. 3, Fig. 4).
So-called platform be say can executive routine condition, the condition project of OS etc. is arranged.
CIM data 1 are equivalent to the professional important document of modeling object, for being independent of the domain model data division that requires the pattern book and the computing of the analysis result of basic design sheets derivation software from customer requirements.This is showed with the vocabulary that the object domain practician knows.
The platform independent model data of pim data 2 about for the platform group's that can correspondence be different from homotype (for example refer to just transacter style, perhaps just supervision/control system style) platform.That is, the design of the upstream CASE by not selecting platform can become possible model data with the software development of the conversion of the requirement of sufficient respective user and technology.
Real dress data 4 are the style of all information of being provided for construction systems and shifting to utilization, respectively specific to platform with detailed program language defined.Fig. 2 is the figure of explanation according to the model-driven development scheme of MDA, is an example for the general software development of the MDA that generates the model that is independent of platform.
This model-driven development scheme is, the software developer utilizes model editor (UML editing machine), the information that input is necessary, generate and editor's class figure, sequence chart, state transition diagram etc., because the model editor in this stage and other companies does not have interchangeability, with a kind of label of the specification that is included in MDA with model editor (UML editing machine) the 11 class figure that make, the relation of sequence chart etc. convert to can additional textual information XMI (XMLMetadata Interchange) form, form by XML12 that data are represented with textual form is preserved, for example, and the mutual utilization between the model editor of other companies (UML editing machine) 13 becomes possible form, makes the model that is independent of platform.
UML is the ellipsis of Unifild Modeling Language (unified modeling language), the standard language that uses when recording and narrating model with figure.As the description method of figure, as previously mentioned, defined class figure, sequence chart, state transition diagram etc.So-called model is meant some thing of the action etc. of analysis, abstract structure as business and software, software.XML is the meaning of Extensible Markup Language (extend markup language).Model debugger 14 and the model compiler 15 of making the check of program can generate the program of corresponding platform with XML form handover procedure data by model compiler 15.
Fig. 3 represents the object range of MDA, and the longitudinal axis is represented modeling object, the stage of transverse axis representation model (flow process of processing).As modeling object, except that business, can also exemplify picture, controller, business logic layer (BusinessLogic Tier), the structure of the basic styles design of software, Computer Design environment etc. are determined in the application that database etc. are relevant.As the stage of model, comprise the CIM stage that obtains analysis result, become the PIM stage of the abstract design of common ground, the PSM stage and the installation phase that design in more detail, wherein, as thinking the frame of broken lines part, special according to the improvement part of the possible MDA of OMG style, normalization in the future, the present invention is with the modeling object that is applied as on the business logic layer, and the mesh-like area that strides across from the PIM stage to the PSM stage partly is object range.This business logic layer is based on the consideration that the structure of using is divided into four layers classification, is provided for the layer of processing unit's (business logic) of service operation.
Fig. 4 is the business logic layer represented in Fig. 3, particularly expression is carried out to be not converted to the figure that carries out further specific to the relation of the PSM3 of the optimized detailed design of platform by the PIM2 of the design of the upstream CASE about the difference of platform with this PIM2.
Promptly, according to system of the present invention, based on the explanation of earlier figures 1 to Fig. 4,, be to realize to comprise the DTU (Data Transfer unit) of MBC (based on the assembly of model) data in order to be converted to PSM data 3 from pim data 2 as the realization form of MDA.So-called MBC data, be to be the meaning of assembly (portion's product) data considered of center with the model, be equivalent to upstream (being equivalent to pim data) design with assembly (structure pim data MBC described later) data and conversion usefulness assembly (pim data described later/PSM data-switching MBC) data that are injected into the downstream from the upstream.Though at length do not record and narrate in the present embodiment, utilize downstream (being equivalent to the PSM data) design can carry out the modeling of PSM data yet with data package (making up PSM data MBC).[/] of pim data/PSM data has the meaning between pim data and PSM data, means mutual conversion.
Below, describe for relating to a kind of embodiment that is converted to the DTU (Data Transfer unit) of PSM data from pim data of the present invention with reference to Fig. 5.
Making up pim data is to have recorded and narrated the action of the inscape of pim data 2 and this each inscape or in conjunction with the data of situation with MBC data 21.
PIM modeling portion 22 has optionally to obtain and makes up pim data with MBC data 21, relate to the business logic layer not by the difference of platform and about the function in the design of upstream.The resulting data of result by these modeling portion 22 designs are pim data 2.Pim data 2 comprises class figure, sequence chart, state transition diagram etc., and they are made into XML (eXtensible Markup Language) file.
So-called structure type is meant the thing of the title of having added the characteristic of representing the next class to be the upper class with respect to this next class.Characteristic at this for example is meant [class is function (processing)] and [class is for handling (service)] and [class is process object (entity)] etc.
Pim data/PSM data conversion rule is provided with the thing of data 24 for using when pim data is converted to the PSM data, be the data that comprise to using the link information of MBC document to the conversion that pim data is suitable for.
Fig. 6 is the figure of the processing of representation model compiler 26 at length.In the example of Fig. 6, pim data/PSM data conversion rule is provided with data 24 and is " XSLT " TMBC4Struts and " XSLT " TMBCStrutsWS.In the example of Fig. 6, pim data/PSM data conversion rule is provided with pim data/PSM data-switching that the arrow of data 24 with dashed lines connects and is illustrated in pim data/PSM data conversion rule with MBC data 25 and is provided with in the data 24 designated.
That is to say, be the pim data of " XSLT " TMBC4Struts/when the PSM data conversion rule is provided with data 24, appointment is referred to as pim data/PSM data-switching MBC data 25 of " XSLT " default, " XSLT " association, " XSLT ", processPackage, " XSLT " servicePackage, " XSLT " entityPackage, " XSLT " rulePackage, promptly, record is read each pim data/PSM data-switching MBC data 25 to the link information of each pim data/PSM data-switching with MBC data 25.
At each transformation rule the XSLT that records and narrates in the data 24 being set is the ellipsis of XSL Transformations (XSL conversion).XSL is Extensible Stylesheet Language: the ellipsis of Extensible Stylesheet Language (XSL).This becomes the rule that is used to record and narrate for the document transformation rule record of the mark according to following XML.This XML is mainly used in that be converted to from XML document can be when the html document that Web browser is represented, but in system of the present invention, is used for for the record to the transformation rule of the uml model represented with XML document.
Struts is called structure type, by the Jakarta of Apache financial group (Jia Kalute of its financial group of Ah handkerchief) project exploitation [framework], moving on server, receive the request that comes from Web browser, is the software that can access the subsystem of suitable business logic in view of the above in order to make.
Pim data/PSM data-switching is data of using when pim data 2 is converted to PSM data 3 with MBC data 25, for example, specific label (key element) effect that comprises in the XML data to the class figure of the pim data 2 of expression input, based on the content of this label (key element) by in the XML data of the class figure of expression PSM data 3, appending the data that new label (key element) uses when changing.Fig. 9 is the example of pim data/PSM data-switching with MBC data 25, is the example that is called " XSLT " processPackage among Fig. 6, realizes by the XSLT style sheet.Specifically, pim data/PSM data-switching with the MBC data 25 for to represent<duplicate the class of self,<add Actiou in the back of Class name etc. the data of definition content of transformation rule.
Build instrumental function 29 serves as that the starting and the change of transform engine 27 are carried out in the basis with conversion Config data 28 (build.xml in the example of Fig. 6) for example.This result, transform engine 27 is as the thing of result for exporting of PSM data 3.Not expression among the figure, as the running environment of model compiler 26, Java (trade mark) is necessary (inscape).
That is to say, transform engine 27 is selected to read any one pim data/PSM data conversion rule based on the conversion Config data 28 that provide from build instrumental function 29 (being the build.xml file data this example) data 24 (in the example of Fig. 8, reading " XSLT " TMBC4Struts) is set.Then, the link information of recording and narrating in the data 24 is set based on pim data/PSM data conversion rule of selecting, transform engine 27 reads conversion and uses MBC data 25 (in the example of Fig. 6, pim data/PSM data-switching of " XSLT " default, " XSLT " association, " XSLT " processPackage etc. is read with MBC data 25).Then, transform engine 27 utilizes the conversion of reading with MBC data 25 pim data 2 that is input to model compiler 26 to be converted to PSM data 3, output PSM data 3.
The structure pim data of representing among Fig. 5 is provided with data 24, pim data/PSM data-switching with MBC data 21, pim data/PSM data conversion rule and is made into MBC data 25 etc., respectively by memory in the memory storage of hard disk etc.Promptly, making up pim data is provided with data 24 by memory in memory storage 21a, pim data/PSM data conversion rule with MBC data 21 and is remembered in memory storage 25a with MBC data 25 in memory storage 24a, pim data/PSM data-switching by memory.These memory storages can be that the space of a memory storage is separately remembered or also can be the structure of remembering in dividing other memory storage, also can be the structures according to the hardware of the storer beyond the hard disk etc.
Conversion process under above inscape is carried out with following method.That is to say, 1. starting model compiler 26,2. starting transform engine 27, afterwards, 3. read transformation rule be provided with 24,4. read conversion with the MBC data, then, 5. read pim data, 6. the check pim data appropriate property, 7. carry out conversion process, 8. write out PSM data after the conversion based on the data that read.
It is as follows in detail that each is handled.
(1) model compiler 26 is called model compiler by the user from keyboard, and input command waits and starts.When this starts, the place that the pim data that model compiler 26 should be imported as parameter appointment (input) for order, the PSM data that should export are changed the Config data in addition.
(2) starting of the transform engine 27 in the model compiler 26 is called by the transform engine 27 of conversion Config data appointment by model compiler and is carried out.In fact, use the build instrumental function 29 that has among Fig. 6, read in transform engine 27 with MBC data 25 and start by pim data/PSM data conversion rule being provided with data 24 and pim data/PSM data-switching.At this moment, in transform engine 27 (in fact with the build instrumental function 29 of Fig. 6 is collaborative carry out), specify 26 appointments of (transmission) model compiler pim data 2, PSM data 3, change with the Config28 data in the transformation rule of appointment data name is set, the pim data of transform engine 27 appointments/PSM data conversion rule is provided with data 24 and just can be read.
(3) reading of data 24 is set is that a pim data/PSM data conversion rule of specifying the transformation rule of (transmissions) to be provided with when reading corresponding conversion engine 27 starting by transform engine 27 is provided with data 24 and carries out to pim data/PSM data conversion rule.Be provided with in the data 24 in the pim data that reads/PSM data conversion rule, specified the pim data/PSM data-switching that should be suitable for set (comprising) to the link information of pim data/PSM data-switching with the MBC data with MBC data 25 to pim data 2.
(4) pim data/PSM data-switching is by reading pim data/when the PSM data conversion rule is provided with data 24 with reading of MBC data 25, and transform engine 27 reads pim data/PSM data conversion rule and is provided with that each conversion of appointments is carried out with MBC data 25 in the data 24.
(5) reading of pim data is to specify the pim data 2 of (transmission) to carry out when reading transform engine 27 startings by transform engine 27.
(6) check of pim data 2 is to carry out by the appropriate property of transform engine 27 check pim datas 2.
Under the situation of the pim data of imappropriate (not to), the wrong and end process in this expression.
(7) conversion process is following is performed like that.That is to say that transform engine 27 uses the conversion rule information of MBC data definition sequentially the key element of this application of rules in pim data or the set of key element based on the conversion of reading.The mode that is suitable for is, key element in the pim data is seen with the order from last beginning, simultaneously (for example according to the relative importance value that is suitable for of transformation rule, the conversion of preferential first appointment is with transformation rule of MBC data etc.) therefrom select some, be suitable for this rule, the PSM document that is suitable for result's generation is all replaced.
In this case, after certain pim data/PSM data-switching usefulness MBC data 25 conversions, next pim data/when the PSM data-switching exists with MBC data 25, this pim data/PSM data-switching are applied to the pim data 2 replaced with MBC data 25 by means of pim data/PSM data-switching with MBC data 25.Therefore, exist under the situation of a plurality of pim datas/PSM data-switching with MBC data 25, the pim data 2 after replacing with MBC data 25 by means of last pim data/PSM data-switching becomes PSM data 3.The applicable pattern of the transformation rule of pim data/PSM data-switching usefulness MBC data 25 definition is not limited to aforesaid way according to the style of transform engine.
(8) writing out of PSM data 3 is that PSM data 3 the result of above-mentioned conversion process generates are write out (output) so that the user can take out.
About from the conversion process of pim data 2 to PSM data 3, the example when below pim data 2 being based on the data of PSER describes.Especially above-mentioned pim data/PSM data conversion rule is provided with data 24 and is converted engine 27 and reads, the processing when pim data/PSM data-switching that the pim data that is read/PSM data conversion rule is provided with data 24 appointments is read with the MBC data describes.At first, PSER is meant the structure MBC data of any one pim data 2 that is used to make " process ", " service ", " entity ", " rule ".
Illustrate that with Fig. 7 the module data of processing is that control is around the order of a series of processing of a business function and the module data of state transition.For example, [commodity selection] and [acknowledgement of orders] and data such as [order are determined] are arranged in the Web shop.The module data of service is for providing the module data of business processing necessary logic when carrying out business processing.For example, [item retrieves] and [input of shopping cart commodity] and data such as [order distribution] are arranged in the Web shop.The module data of entity is the business datum that is kept in the database.For example, [order detail] and data such as [dispensing documents] are arranged in the Web shop.The module data of rule is for providing the module data of checking logic and calculating formula.The benchmark (inspection logic) of the condition that whether satisfies [shopping cart is for empty] and [Amount in Total<1,000,000 yen] and [commodity are in the storehouse] that could check as order etc. is arranged in the Web shop.
This PSER when system constructing corresponding to requiring style.That is to say,, extract out to being easy to information owing to require style to have following project information usually.As project, the business function (being equivalent to handle) seen from the user's of system angle is arranged, for the rule (being equivalent to rule) of the logic (being equivalent to service) of carrying out necessary expression of business function and input etc., the data (being equivalent to entity) that become process object such as input and output project, professional inspection logic and trigger etc.
At first, below the pim data 2 from P (processing) is described to the conversion of PSM data 3.The conversion process of P (processing) uses MBC data 25 by business processing (in the example of Fig. 6 with pim data/PSM data-switching, be " XSLT " processPackage, this is the meaning that is called the XSLT file of processPackage.xsl) be converted engine 27 and read and carry out.The figure of the pim data 2 that Figure 10 handles for expression and the correspondence of PSM data 3.
[for being independent of the information of platform, according to the information of the system of the processing of the function of system and this function and the relation between objects performance that should handle] in the technical scheme of the present invention is corresponding to pim data 2.
In the figure, the quadrilateral representation class, the centre is divided into three quadrilaterals, and " " expression structure type in the uppermost quadrilateral is expressed as class name, representation attribute in second quadrilateral, method for expressing name in the 3rd quadrilateral below it.Connect arrow and the dotted line of structure type (" " mark) and represent the related of the meaning that has according to structure type according to the sensing of arrow.For example, there is the dotted line of the band arrow of " trace " to represent to be included in corresponding relation between the inscape of inscape in the PSM data 3 and this pim data 2.That is to say that the inscape of the root PSM data 3 of arrow serves as that origin is generated in when conversion with the key element of sensing place of arrow.In the example of Figure 10, the data of " process " ProcessAcfion of PSM data 3 are based on the meaning that " process " Process of pim data 2 is generated." use " expression relation that two Service Component/object uses or is used.The structure type of using when being the call relation between the expression Service Component.With Figure 11 the example of the content of the processPackage.xsl that represents among Figure 10 is described.This document is made of the project of class, dependence, conversion module.The project of class represents class conversion process content, inherits the Action class of Struts in this example, appends the meaning that Action represents pim data 2 is converted to 3 processing of PSM data by the end at the class name of pim data 2.Below, the project of dependence represent from the class data of pim data 2 (class name this example: process) to the dependence conversion process of Service for from the class data of the PSM data 3 (class name this example after above-mentioned conversion: ProcessAcfion) to the meaning of the dependence of ServicePackage.Which part that the repertory of conversion module is shown in the XML file of pim data 2 is converting objects, and this information (label information) is to be used for extracting out below converting objects, carries out the data of conversion process.In the example of Figure 11, [=] following table that is called the project of [Match] is shown as the name into the label of the object XML data of conversion, in this example, extracts converting objects out based on the label information that is called [Class], [Dependency] in transform engine 27.In this example, be conceived to the information of the label extraction of being called among Figure 12 [UML:Class] based on the information that is called [Class] for the Main Flow Control range of definition of converting objects.Figure 12 has utilized business processing in the XML file of pim data 2 of converting objects with the application place partial data example of pim data/PSM data-switching with the conversion process of MBC data 25.This conversion process is corresponding to [extracting the function identifying information of the function of particular system out, generating the means to the design information of the program of the processing requirements of the function of aforementioned extraction that realize receiving from the user in the technical scheme of the present invention.
Below the pim data 2 from S (service) is described to the conversion of PSM data 3.The conversion process of S (service) uses MBC data 25 by business service (in the example of Fig. 6 with pim data/PSM data-switching, be " XSLT " servicePackage, this is the meaning that is called the XSLT file of servicePackage.xsl) be converted engine 27 and read and carry out.Figure 13 is the figure of the correspondence of the pim data 2 of expression service and PSM data 3.The sign of figure is identical with the situation of P (processing).There is the dotted line of the band arrow of " trace " to represent to be included in corresponding relation between the inscape of inscape in the PSM data 3 and this pim data 2.That is to say that the inscape of the PSM data 3 of the root of arrow serves as that origin is generated in when conversion with the key element of sensing place of arrow.
With Figure 14 the example of the content of the servicePackage.xsl of Figure 13 is described.This document also is to be made of class, dependence, conversion module project.The project of class is represented the bag with the structure type of " servicePackage " is converted to class in this example, extraction has the class for the structure type of its sub-key element " service ", extraction is to the processing of same entity, by being converted to method the meaning that pim data 2 is converted to 3 processing of PSM data is represented, read transform engine 27 execution conversion process by being converted engine 27.Below, the project of dependence represent from the class data of pim data 2 (class name this example: service) to the dependence conversion process of Entity for from the class data of the PSM data 3 (class name this example after above-mentioned conversion: ServicePackage) to the meaning of the dependence of IEntity and IEntityHome.The project of conversion module in the example of Figure 14 and above-mentioned [=] following table that is called the project of [Match] equally be shown as the name of label into the object XML data of conversion, in this example, for extracting converting objects out based on the label information that is called [Class], [Dependency] at transform engine 27.
This conversion process corresponding in the technical scheme of the present invention [from the information of aforementioned system extract out specific for the processing that realizes aforementioned functional processing and identification information and the process object identifying information of the object information of identification aforementioned processing, extract out with based on the aforementioned processing identifying information processing the same with the object information of processing of extracting out with aforementioned processing object identifying information, the means of the design information of the program that generation is handled same process object information].
Pim data 2 from E (entity) is described to the conversion of PSM data 3.Figure 15 is the figure of expression as the data in the suitable place of the conversion process in the XML file of the pim data of service.The conversion process of E (entity) uses MBC data 25 by Business Entity (in the example of Fig. 6 with pim data/PSM data-switching, be " XSLT " entityPackage, this means it is the XSLT file of entityPackage.xsl) be converted engine 27 and read and carry out.Figure 16 is the figure of the correspondence of the pim data 2 of presentation-entity and PSM data 3.There is the dotted line of the band arrow of " trace " to represent to be included in corresponding relation between the inscape of inscape in the PSM data 3 and this pim data 2.That is to say that the inscape of the root PSM data 3 of arrow serves as that origin is generated in when conversion with the key element of sensing place of arrow.With Figure 17 the example of the content of the entityPackage.xsl of Figure 16 is described.This document also is that the project by class, dependence, conversion module constitutes.The project of class represents to generate from the Entity class data of pim data 2 meaning of IEntity interface message (corresponding IEntity), IEntityHome interface message (corresponding IEntityHome), EntityHomelmple category information (corresponding " helper " EntityHomelmple) in this example, be converted engine 27 by this information and read, carry out by transform engine 27." helper " structure type is the class of the classification of not direct corresponding PSER association, is used in Service Component inside, and the non-productive operation of its action being given help is all." instantiate " structure type is that object in certain class is during other class instantiation, these two classes that classes relation is connected.
Below, the project of dependence represent to append from the IEntity class data that generate to the Abstraction of Entity class data, from IEntityHome class data to the Abstraction of EntityHomelmple, from EntityHomelmple to the dependence of the structure type " instantiate " of Entity and carry out the meaning of conversion process.Carry out the conversion process that above-mentioned class generates, dependence is appended by transform engine 27.
The name of label of the object XML data of conversion is represented and become below [=] of the above-mentioned project that is called [Match] equally to the project of conversion module in the example of Figure 17, in this example, and for extracting converting objects out based on the label information that is called [Class].
In this example, be conceived to the MemberInfo and the information of extracting the scope of setting among definition " entity " structure type/MemberInfo out of the label definition converting objects of being called among Figure 18 [UML:Class] based on the information that is called [Class].Figure 18 is the conversion process of MBC data 25 is used in utilization with pim data/PSM data-switching as the business processing in the XML file of the pim data 2 of converting objects a suitable local partial data example, be suitable for local information and be drawn out of, be performed conversion process at transform engine 27.
This conversion process is corresponding to [extract aforementioned processing object identifying information out from the information of aforementioned system, generate the means of realization to the design information of the program of the visit of the object information of aforementioned processing] in the technical scheme of the present invention.
With Figure 20 the example of the content of the rulePackage.xsl of Figure 19 is described.This document also is that the project by class, dependence, conversion module constitutes.The project of class represents to append beyond Rule class data from the Rule class data of pim data 2 meaning of interface data, AbstructRule abstract class data in this example.
Below, the project of dependence is represented to append from the meaning of Rule class data to the conversion process of the Generalization of AbstructRule class data.The meaning of the conversion process of inheritance between the class of appending and intensive relation has been appended in expression in above-mentioned.
The project of conversion module in the example of Figure 20 and above-mentioned [=] following table that is called the project of [Match] equally be shown as the name of label into the object XML data of conversion, in this example, for extracting converting objects out based on the label information that is called [Class], [Namespace.ownedElement].
In this example, be conceived to the Check_Authentification and the information of extracting the scope of setting among definition " rule " structure type/Check_Authentification out of the label definition converting objects of being called among Figure 21 [UML:Class] based on the information that is called [Class].Figure 18 and Figure 21 are the conversion process of MBC data 25 is used in utilization with pim data/PSM data-switching as the business processing in the XML file of the pim data 2 of converting objects suitable local partial data examples.
Do not record and narrate in detail in the drawings, default.xsl file corresponding to " XSLT " default of Fig. 6, though do not use MBC data 25 as converting objects by pim data/PSM data-switching, but expression the key element in the pim data 2 intactly as the meaning of the inscape generation of PSM data, transform engine 27 reads this pim data/PSM data-switching with MBC data 25, according to this contents processing.
In detail do not record and narrate in the drawings, in association.xsl file, representing the meaning according to the intensive incidence relation of following rule conversion expression corresponding to " XSLT " association of Fig. 6.(1) from Process intensive to Rule: the Process side does not change, and the Rule side is converted to intensive to IRule.(2) from Service intensive to Rule: the Service side is converted to ServicePackage, and the Rule side is converted to intensive to IRule.(3) the Entity side does not change, and the Rule side is converted to intensive to IRule.
More than the processing towards Struts of platform has been carried out narrating (in Fig. 6, corresponding TMBC4Struts.xsl (being " XSLT " TMBC4Struts among the figure)), platform towards the processing of Struts+Web service with towards the contrast of Struts, different piece is described.
Below the pim data 2 from P (processing) is described to the conversion of PSM data 3.The conversion process of P (processing) uses MBC data 25 by business processing (in the example of Fig. 6 with pim data/PSM data-switching, be " XSLT " processPackage_WS, this is the meaning that is called the XSLT file of processPackage_WS.xsl) be converted engine 27 and read and carry out.The figure of the pim data 2 that Figure 22 handles for expression and the correspondence of PSM data 3.Is different with the different part of representing among Figure 10 towards Struts for having appended this point of " servicePackage " ServicePackageStub.
With Figure 23 the example of the content of the processPackage_WS.xsl of Figure 22 is described.This document also is that the project by class, dependence, conversion module constitutes.The project of class represents to be equivalent to the conversion process content of class, inherits the Action of Strus in this example, appends the meaning that Action represents pim data 2 is converted to 3 processing of PSM data by the end at the class name of pim data 2.Below, the project of dependence represent from the class data of pim data 2 (class name this example: process) to the dependence conversion process of Service for from the class data of the PSM data 3 (class name this example after above-mentioned conversion: ProcessAction) to the meaning of the dependence of ServicePackageStub.The project of conversion module represents to be converting objects as which part in the XML file of pim data 2, this information (label information) is to be used for extracting out below converting objects, carries out the data of conversion process.In this example, it is following and towards the name of the label of the object XML data of Struts same expression becoming conversion to be called [=] of project of [Match], becomes the situation of extracting converting objects in transform engine 27 based on the label information that is called [Class], [Dependency] out.
Below the pim data 2 from S (service) is described to the conversion of PSM data 3.The conversion process of S (service) uses MBC data 25 by business service (in the example of Fig. 6 with pim data/PSM data-switching, be " XSLT " servicePackage, this is the meaning that is called the XSLT file of servicePackage.xsl) be converted engine 27 and read and carry out.Figure 24 is the figure of the correspondence of the pim data 2 of expression service and PSM data 3.The sign of figure is identical with the situation of P (processing)." use " expression relation that two Service Component/object uses or is used.The structure type of using when being the call relation between the expression Service Component.
With Figure 25 the example of the content of the servicePackage_WS.xsl of Figure 24 is described.This document also is that the project by class, dependence, conversion module constitutes.The project of class is represented the bag with the structure type of " servicePackage " is converted to class in this example, extraction has the class as the structure type of its sub-key element " service ", extraction is to the processing of same entity, by being converted to method is pim data 2 conversion process PSM data 3, and then represent to append Stub class of the same race to read transform engine 27 execution conversion process by being converted engine 27.Below, the project of dependence represent from the class data of pim data 2 (class name this example: service) to the dependence conversion process of Entity for from the class data of the PSM data 3 (class name this example after above-mentioned conversion: ServicePackage) appended the conversion process to the dependence of ServicePackage from ServicePackageStub to the meaning and the expression of the dependence of IEntity and IEntityHome.The project of conversion module in the example of Figure 14 and above-mentioned [=] following table that is called the project of [Match] equally be shown as the name of label into the object XML data of conversion, in this example shown in Figure 25, identical with situation towards Struts, become transform engine 27 is extracted converting objects out based on the label information that is called [Class], [Dependency] situation.
In Fig. 6, pim data/PSM data-switching that appointment in the data 24 is set in pim data/PSM data conversion rule is used in the MBC data 25, towards Struts (" XSLT " TMBC4Struts) with towards the difference of Struts+Web service (" XSLT " TMBC4StrutsWS) is process and service, other pim data/PSM data-switching is common with MBC data 25, carries out and towards the same conversion process of Struts.
Like this, pim data/PSM data conversion rule is provided with data 24 differences, and appointed pim data/PSM data-switching can generate different PSM data 3 from identical pim data 2 with MBC data 25 not simultaneously.Owing among each PSER when this conversion process (it is clear and definite needing the minimal information PSE of performance minimum) pim data/PSM data-switching MBC data 25 are arranged all, for the different platform of correspondence, being provided with by definition pim data/PSM data conversion rule that data 24 make it can be to should platform, just can utilize the pim data/PSM data-switching MBC data 25 that on other platform, are used, in this, can improve productivity during generator program.
This example towards the incidence relation of each structure type of Struts is represented in Figure 26.Example towards the incidence relation of each structure type of Struts+Web service is represented in Figure 27.Shown in these two figure, latter during two platforms is owing to need corresponding Web service to append ServicePackageStub with comparing towards Struts, can realize the difference of this conversion automatically by the present invention, can generate towards the Struts and the PSM data 3 of serving both sides towards Struts+Web.
Before pim data/PSM data conversion treatment, make and make up PIM as shown in Figure 5 and data 24, PIM/PSM conversion is set with MBC data 25 and conversion Config data 28 etc., remember respectively in the memory storage of hard disk etc. with MBC data 21, PIM/PSM transformation rule.Promptly, making up pim data is provided with data 24 by memory in memory storage 21a, pim data/PSM data conversion rule with MBC data 21 and is remembered in memory storage 28a in memory storage 25a, conversion Config data 28 by memory with MBC data 25 in memory storage 24a, pim data/PSM data-switching by memory.CIM data 1 and pim data 2 and PSM data 3 and real dress data 4 are also remembered in memory storage 1a.These memory storages 21a, 24a, 25a, 28a, 1a can be that the space of a memory storage is separately remembered or also can be the structure of remembering in dividing other memory storage, also can be the structure of utilizing the hardware of storer beyond the hard disk etc.
Thereby, according to above such embodiment, make and make up PIM with MBC data 21 and pim data/PSM data-switching usefulness MBC data 25 of flowing into downstream from the upstream, by in software development, utilizing, often apply flexibly structure PIM MBC data 21 and pim data/PSM data-switching MBC data 25 in the technology of evolving effectively, make the semi-automation of more detailed downstream design become possibility, therefore, can reduce operator's cultivation and allotment expense significantly, and then can bigger contribution be arranged the expense that reduces learning art.
Further, utilize and make up PIM MBC data 21, carry out not by the upstream design about platform with pim data, utilize pim data/PSM data conversion rule be provided with 24 and the pim data that flows into downstream from the upstream/PSM data-switching with MBC data 25, owing to be converted to specific to the carrying out of the platform PSM data 3 of detailed design more, can improve development efficiency, maintenance, extendability.
Further, utilize structure PIM to make the project organization medelling with MBC data 21, utilize pim data/PSM data-switching to make the design that becomes correct corresponding real dress with MBC data 25, therefore, the third party also is appreciated that design content, and can check.
In addition, the present invention is not limited to above-mentioned embodiment, can carry out various distortion and implement in the scope that does not break away from its spirit.
For example, in the above-described embodiment,, be illustrated, may be thought of as and certainly append the new the 5th key element from now on though be defined in the key element of handling P, service S, entity E, regular R as the inscape of pim data.For the style that requires of representing system needs P, S, E at least, the situation that might not need R is arranged.
In addition, the method of recording and narrating in the respective embodiments described above, as the program that can carry out by computing machine, can leave in the memory media of disk (floppy disk (registered trademark), hard disk etc.), CD (CD-ROM, DVD), photomagneto disk (MO), semiconductor memory etc. and issue.
As this memory media, if can memory program, and can be read possible memory media by computing machine, its memory form can be a form arbitrarily.
Based on being installed from memory media, also can carry out middlewares such as the operating system of the indication of program on computers in computer run, database management language, network software etc. in order to realize each part of handling of present embodiment.
Memory media among the present invention is not limited to and computing machine medium independently, comprises also that download is remembered by the program of transmission such as LAN and internet or the memory media of temporary memory.
Memory media is not limited to one, and the situation of carrying out the processing the present embodiments from a plurality of medium is also contained in the memory media among the present invention, and the structure of medium also can be a structure arbitrarily.
Computing machine among the present invention is handled for each that carry out in the present embodiment based on the program of memory in memory media, also can be to be connected structure arbitrarily such as system on the network by device, a plurality of devices that 1 personal computer etc. constitutes.
Computing machine among the present invention is not limited to personal computer, has also comprised the calculus treatment device that is included in the information processing apparatus, microcomputer etc., is can realize the machine of function of the present invention, the general name of device according to program.
Each embodiment can make up enforcement within the bounds of possibility, can obtain under this situation because effect of Combination.Further, comprise the invention in all upper, the next stages in the respective embodiments described above, can extract all inventions out according to disclosed a plurality of inscape is carried out suitable combination.For example, by from order to omit several constitutive requirements in whole constitutive requirements of recording and narrating the means of dealing with problems a little and to extract invention out, when implementing this invention that is drawn out of, clipped is suitable additional for carrying out with known conventional techniques.
Claims (3)
1. DTU (Data Transfer unit) is characterized in that having:
From the information that is independent of platform promptly the information according to the system of the relation between objects performance of the processing of the function of system and aforementioned functional and aforementioned processing, extract the function identifying information of particular system function out, generate the device of the design information that realizes accepting the functional programs more asked from user's processing the function of aforementioned extraction;
Extract the process object identifying information of the object information of the processing and identification information of the specific processing that is used to realize aforementioned functional and identification aforementioned processing out from aforementioned system information, based on aforementioned processing identifying information and the aforementioned processing object identifying information extracted out, extract the identical processing of handling of object information out, generate the device of the design information of the program of handling for same process object information; With
Extract aforementioned processing object identifying information out from the information of aforementioned system, generate the device of realization the design information of the program of the visit of the object information of aforementioned processing.
2. data transfer device is characterized in that:
The platform independent model data that should import, the special transaction module data of the platform that should export, specify order as parameter in the place of conversion config data, the starting model compiler, the transform engine of starting conversion config data appointment, in aforementioned platform independent model data, the special transaction module data of platform, the transformation rule of appointment is provided with name and is appointed as transform engine in the conversion config data, corresponding aforementioned transformation rule is provided with name, the platform independent model data read has been specified the transformation rule setting of the conversion that should be suitable for based on the module data of model, read the module data of aforementioned conversion based on model, read aforementioned platform independent model data, conversion used based on the defined transformation rule of the assembly of model be applicable to the set of key element in the platform independent model data or key element in proper order and carry out conversion process, the special transaction module data of output stage.
3. as method as described in the claim 2, it is characterized in that also comprising:
The step of the appropriate property of verifying bench independent model data,
Test according to following condition at this,
Whether platform independent model does not comprise a certain key element, and this a certain key element has structure type, and the UMLProfile based on the assembly appointment of model that the construction platform independent model that should follow is used does not specify this structure type; And
Whether the incidence relation between the key element that comprises in the platform independent model follows the incidence relation pattern based on the assembly appointment of model that platform independent model makes up usefulness; And
Whether the form of platform independent model data follows the DTD (Document Type Definition) of specifying the form of preserving uml model according to the DTD (Document Type Definition) of XMI and XMI.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004048527A JP2005242479A (en) | 2004-02-24 | 2004-02-24 | Data converting device and program for data conversion |
JP2004048527 | 2004-02-24 | ||
JP2004-048527 | 2004-02-24 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1737756A CN1737756A (en) | 2006-02-22 |
CN100435093C true CN100435093C (en) | 2008-11-19 |
Family
ID=35024187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB200510071780XA Expired - Fee Related CN100435093C (en) | 2004-02-24 | 2005-02-24 | Data converting device and program for data conversion |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2005242479A (en) |
CN (1) | CN100435093C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107148615A (en) * | 2014-11-27 | 2017-09-08 | 乐金信世股份有限公司 | Computer executable model reverse engineering approach and device |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4672754B2 (en) * | 2008-06-05 | 2011-04-20 | 株式会社東芝 | Program / design document generation apparatus and program / design document generation program |
CN106529302A (en) * | 2016-10-25 | 2017-03-22 | 合肥东上多媒体科技有限公司 | MDA and UML extension based software development method |
CN106528128A (en) * | 2016-10-26 | 2017-03-22 | 安徽扬远信息科技有限公司 | MDA-based software development method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1061441A2 (en) * | 1999-06-14 | 2000-12-20 | Sun Microsystems, Inc. | Common information model objects for an object-based java computing environment |
CN1357822A (en) * | 2000-10-27 | 2002-07-10 | 株式会社东芝 | Application software development system andm ehtod, application software devlopment program and application software generating method |
JP2003330712A (en) * | 2002-05-08 | 2003-11-21 | Docomo Communications Laboratories Usa Inc | Running state migration of platform specific graphical user interface widgets between heterogeneous device platforms |
JP2003330713A (en) * | 2002-05-08 | 2003-11-21 | Docomo Communications Laboratories Usa Inc | Transformation of platform specific graphical user interface widgets migrated between heterogeneous device platforms |
-
2004
- 2004-02-24 JP JP2004048527A patent/JP2005242479A/en active Pending
-
2005
- 2005-02-24 CN CNB200510071780XA patent/CN100435093C/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1061441A2 (en) * | 1999-06-14 | 2000-12-20 | Sun Microsystems, Inc. | Common information model objects for an object-based java computing environment |
CN1357822A (en) * | 2000-10-27 | 2002-07-10 | 株式会社东芝 | Application software development system andm ehtod, application software devlopment program and application software generating method |
JP2003330712A (en) * | 2002-05-08 | 2003-11-21 | Docomo Communications Laboratories Usa Inc | Running state migration of platform specific graphical user interface widgets between heterogeneous device platforms |
JP2003330713A (en) * | 2002-05-08 | 2003-11-21 | Docomo Communications Laboratories Usa Inc | Transformation of platform specific graphical user interface widgets migrated between heterogeneous device platforms |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107148615A (en) * | 2014-11-27 | 2017-09-08 | 乐金信世股份有限公司 | Computer executable model reverse engineering approach and device |
Also Published As
Publication number | Publication date |
---|---|
CN1737756A (en) | 2006-02-22 |
JP2005242479A (en) | 2005-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4495895B2 (en) | Method and system for reporting XML data from a legacy computer system | |
US9262384B2 (en) | Markup language system, method, and computer program product | |
US8489982B2 (en) | Reusable data markup language | |
JP4806148B2 (en) | Binding spreadsheet cells to data sources | |
Antkiewicz et al. | FeaturePlugin: Feature modeling plug-in for Eclipse | |
US7672957B2 (en) | User interface configured to display mechanical fabric and semantic model of a legacy computer application generated, graphical view navigating links between mechanical nodes and semantic nodes based on relevant business rules | |
US7050872B2 (en) | Innovation information management model | |
US7716254B2 (en) | System for modeling architecture for business systems and methods thereof | |
Wasserman et al. | The future of programming | |
Koch | Transformation techniques in the model-driven development process of UWE | |
US6993745B1 (en) | Method and system for modeling a legacy computer system | |
US20050060317A1 (en) | Method and system for the specification of interface definitions and business rules and automatic generation of message validation and transformation software | |
Hessellund et al. | Guided development with multiple domain-specific languages | |
JP2003532173A (en) | Method and system for applying an XML schema | |
US20050203865A1 (en) | Structured approach to software specification | |
CN100435093C (en) | Data converting device and program for data conversion | |
Fong et al. | Information Systems Reengineering, Integration, and Normalization | |
Bayer et al. | Towards integrated information models for data and documents | |
Silver et al. | Ontology based representations of simulation models following the process interaction world view | |
WO2013031075A1 (en) | Data editing device and data editing method | |
Tegeler et al. | Product line verification via modal meta model checking | |
Bochicchio et al. | WARP: Web application rapid prototyping | |
van den Heuvel et al. | A methodology to support web-services development using legacy systems | |
JPH10254691A (en) | Support method for developing program and storage medium having program for implementing the same | |
CN106257413A (en) | By method unitized to the information of multiple information sources and instrument and product and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081119 Termination date: 20130224 |