[go: up one dir, main page]

CN1313920C - Member assembling method based on united member package structure - Google Patents

Member assembling method based on united member package structure Download PDF

Info

Publication number
CN1313920C
CN1313920C CNB2005101052396A CN200510105239A CN1313920C CN 1313920 C CN1313920 C CN 1313920C CN B2005101052396 A CNB2005101052396 A CN B2005101052396A CN 200510105239 A CN200510105239 A CN 200510105239A CN 1313920 C CN1313920 C CN 1313920C
Authority
CN
China
Prior art keywords
component
interface
script
computer
components
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
Application number
CNB2005101052396A
Other languages
Chinese (zh)
Other versions
CN1744038A (en
Inventor
张尧学
方存好
田鹏伟
钟鸣
徐广斌
韦理
徐鹏志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CNB2005101052396A priority Critical patent/CN1313920C/en
Publication of CN1744038A publication Critical patent/CN1744038A/en
Application granted granted Critical
Publication of CN1313920C publication Critical patent/CN1313920C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明涉及一种基于统一构件封装件结构的构件组装方法,属于软件工程技术领域。首先,在一台或多台计算机上设置构件库,构成构件库计算机,用户从中提取构件后进行封装,形成以统一形式描述的构件封装件,并将其存储在构件目录库上,构成构件目录库计算机;在一台计算机上设置构件组装软件,构成构件组装计算机;用户从构件目录库计算机中提取一组需要组装的构件封装件,将其下载到构件组装计算机中,并根据所要组装的构件封装件信息,在构件组装计算机上对构件进行组装。采用本发明的方法,可以帮助软件设计人员实现基于构件的可视化编程。结合领域构件库,可支持不同应用领域的业务流程集成,以及面向用户的个性化服务的定制和集成。

The invention relates to a component assembly method based on a unified component package structure, belonging to the technical field of software engineering. First, the component library is set up on one or more computers to form a component library computer, from which the user extracts the components and encapsulates them to form a component package described in a unified form, and stores it in the component catalog library to form a component catalog Library computer; install component assembly software on a computer to form a component assembly computer; the user extracts a group of component packages that need to be assembled from the component catalog computer, downloads them to the component assembly computer, and according to the components to be assembled Package information, components are assembled on the component assembly computer. The method of the invention can help software designers realize component-based visual programming. Combined with the domain component library, it can support business process integration in different application domains, as well as customization and integration of user-oriented personalized services.

Description

A kind of component assembly method based on the unified structure element package structure
Technical field
The present invention relates to a kind of component assembly method, belong to technical field of software engineering based on the unified structure element package structure.
Technical background
Member is meant to have relatively independent function and reusable software module.It makes the software developer can make full use of over knowledge, experience and the functional module that accumulates in the systems development process in new system development, and needn't all " start from scratch ", thereby has avoided the duplication of labour in the software development.Therefore, since the meeting of nineteen sixty-eight NATO soft project proposed this notion of member first, component technology was subjected to the favor of software circle as one of gordian technique that realizes software repeated usage always.At present, member is as a kind of important middleware system that is attached on computer hardware and the operating system, in applications such as finance, education, ecommerce, E-Government, health care, obtained extensive application, brought into play good effect for improving software repeated usage degree and efficiency of software.
Multiplexing for support software, some tissues and company release the component technology standard of oneself one after another.At present, Java component standard JavaBeans, EJB that influential component standard has SUN company to propose, the CCM standard in COM, DCOM standard and the CORBA3.0 of OMG (OMG) standard that Microsoft proposes.The special component base (as Alphaworks, ComponentPlanet, ComponentSource, Flashline etc.) of above-mentioned component technology standard has also appearred on the Internet much following, multiple ready-made available member is provided, these component bases have formed the component resource on the Internet, be software repeated usage, provide the foundation based on the program development of member.
But present various types of members all use own specific standard to develop, the mutual visit between the member and calling between the member that also is confined to same type.Consistance between dissimilar members visit is also lacked necessary support, cause the member search, obtain and analyze, the difficulty of member processing activity such as assembling, make that also a large amount of component resources on the existing Internet can't be widely used.
The applicant is in patent " method of a kind of encapsulation of member and consistance visit " (ZL200410030654.5), a kind of unified structure element package structure (hereinafter to be referred as UCDL) is proposed, this package structure at existing various component models (as ActiveX, JavaBeans, EJB etc.) on the basis, come the difference of shield member description and calling interface by encapsulation, thereby realize the consistance visit of member member.
Based on UCDL member package structure, above-mentioned patent proposes on one or more computing machine component base to be set, and the member that will obtain from the internet deposits the component base member of formation storehouse computing machine in; On a computing machine, component directory library is set, member of formation catalogue storehouse computing machine; The member user extracts member from the component base computing machine, member is encapsulated form the member packaging part, and its tissue is stored on the component directory library computing machine; The member user carries out the consistance visit according to the member packaging part information in the component directory library computing machine to component resource.
Above-mentioned patent provides a kind of feasible method for the visit of the component resource consistance between the polytype.But, using the final purpose of member is in order to make up new application system, this is except foregoing member encapsulation and consistance access method, and wait existing component resource is unified to describe and effectively outside the tissue by component base is set, also need from component base, retrieve required member according to application demand, and the member that retrieves assembled, thereby make up new application system, to support upper layer application better.
Summary of the invention
The objective of the invention is based on the unified structure element package structure, propose a kind of component assembly method based on the unified structure element package structure.Thereby can utilize a large amount of packaged, the member that can carry out the consistance visit that are stored in the component base,, select for use suitable member to assemble link, generate new application system fast, support the application integration of every field according to user's needs.
The component assembly method based on the unified structure element package structure that the present invention proposes comprises following each step:
1) on one or more computing machine, component base is set, the member that obtains from the internet is stored into component base, member of formation storehouse computing machine;
2) on a computing machine component directory library is set, the user encapsulates after above-mentioned component base computing machine extracts member, forms the member packaging part of describing with Unified Form, and it is stored on the component directory library member of formation catalogue storehouse computing machine;
3) on a computing machine, the member composite software is set, constitutes a member assembling computing machine;
4) user extracts the one group of member packaging part that need assemble from above-mentioned component directory library computing machine, and it is downloaded in the member assembling computing machine;
5) user assembles member on member assembling computing machine according to the member packaging part information that will assemble, and the method for assembling may further comprise the steps:
(1) the Run Script file structure of a responsible control member assembling process of structure, file structure comprises three parts: member statement, the definition of interface annexation and the definition of member assembling control flow;
(2) according to the member packaging part information that will assemble, the external interface of member is shown in patterned mode, the user selects, adjusts the annexation between the member external interface, the member assembling scheme that formation is represented with patterned way, the member that formation is represented with patterned way is assembled the method for scheme, may further comprise the steps:
(a) in member assembling computing machine, be written into the member packaging part that to assemble, reading element external interface descriptor from the member packaging part;
(b) according to the member external interface information that reads, member and the external interface thereof that assemble shown in patterned mode;
(c) relation of the funcall between the member assembled as required of user, the connection of between the member of needs assembling, setting up the member external interface in patterned mode;
(d) according to the descriptor of the above-mentioned member external interface that has connected, judge between the member external interface that has connected whether call interactive relation correct, and the result who judges to user feedback;
(e) user adjusts the annexation between the member external interface according to judged result, generates patterned member assembling scheme;
(3) according to the graphical member assembling scheme of above-mentioned formation, generate corresponding Run Script, the method for generating run script may further comprise the steps:
(a) Run Script of a sky of structure writes the header of Run Script file therein;
(b) the above-mentioned graphical member assembling scheme that has formed of traversal is therefrom extracted the member packaging part descriptor that will assemble;
(c) the member name and the interface message of extraction member packaging part from the descriptor of extracting, the member that is filled into the Run Script of above-mentioned steps (1) structure is stated in the part;
(d) according to the line of component interface in above-mentioned graphical member assembling scheme relation, establish a connection having between the component interface of line, be filled in the interface annexation definitional part of Run Script of above-mentioned steps (1) structure;
(e) degree of depth travels through above-mentioned whole graphical member assembling scheme, the order of calling according to each member, the perform statement that calling of each member is converted in the Run Script, the member that is filled into the Run Script of above-mentioned steps (1) structure is assembled in the control flow definitional part;
(f) in the Run Script of above-mentioned steps (1) structure, write end mark, finish the generative process of Run Script;
(4) explain the Run Script of carrying out above-mentioned generation, finish assembling process, the explanation implementation of Run Script may further comprise the steps:
(a) explain to carry out member statement part in the Run Script: according to the member name and the component interface of appointment in the member statement part of the Run Script of above-mentioned generation, start corresponding member agency, initialization member entity, in follow-up component groups process of assembling, the member agency is responsible for intercepting the recalls information from the outside, and calls corresponding member entity;
(b) explain to carry out component interface annexation definitional part in the Run Script: according to the annexation of interface between the member in the component interface annexation definition of the Run Script of above-mentioned generation, check whether the interface annexation mates, whether the message definition between the interface is consistent, pass through if check, then the Run Script interpretive routine is recorded as message channel with this interface annexation, and changes next step parsing over to, otherwise, the interpretation process of Run Script is interrupted, and returns error message;
(c) explain to carry out member assembling control flow definitional part: the member according to the member assembling control flow definition of the Run Script of above-mentioned generation is carried out flow process, produce the used input and output message of component interactive, and it is transferred to member agency, the member agency is after receiving input message, with the input message conversion is the call parameters form of the member entity acted on behalf of, and send call request to member entity corresponding interface, after calling the result and returning, the member agency is converted to rreturn value other member agency's output message, then this message is passed through corresponding output port, output to the Run Script interpretive routine, finish assembling between the member according to defined control stream.
The component assembly method that the present invention proposes based on the unified structure element package structure, its advantage and application are as follows:
1, adopts method of the present invention, can the helper applications designer realize visual programming based on member.Use the component assembly method among the present invention, software design personnel can be at first according to the programming needs, extract the member that needs assembling, and the external interface of member shown intuitively in patterned mode, adopt method for visualizing to select, adjust and the final assembled relation of determining between the member by the software design personnel, finish the component groups process of assembling.
2, the present invention can be applicable to applications such as finance, education, ecommerce, E-Government, health care, at in these applications from each class A of geometric unitA of different suppliers, different models, use the component assembly method among the present invention, based on the unified structure element packaging part, realization is to the assembling of different suppliers, different model components, thereby supports neatly and should and generate new application system fast with the formation of the operation flow in field.
3, by the exploitation corresponding user interfaces, user's demand is analyzed and understood, from component base, directly find needed member, using method of the present invention then assembles these members, dynamically generate the application program that the user needs, thereby support the customization of user oriented personalized application program and integrated.
Description of drawings
Fig. 1 is the component groups process of assembling process flow diagram that the present invention proposes.
Fig. 2 is the process flow diagram of according to member packaging part information member being assembled in the inventive method.
Fig. 3 is Run Script file structure figure.
Fig. 4 is the forming process process flow diagram of graphical member assembling scheme.
Fig. 5 is a pel exemplary plot in the graphical member assembling scheme.
Fig. 6 is the generative process synoptic diagram of Run Script.
Fig. 7 is that member is acted on behalf of synoptic diagram.
Fig. 8 is the explanation implementation synoptic diagram of Run Script.
Embodiment
The component assembly method that the present invention proposes based on the unified structure element package structure, its flow process at first is provided with component base as shown in Figure 1 on one or more computing machine, the member that obtains from the internet is stored into component base, member of formation storehouse computing machine; On a computing machine component directory library is set, the user encapsulates after above-mentioned component base computing machine extracts member, forms the member packaging part of describing with Unified Form, and it is stored on the component directory library member of formation catalogue storehouse computing machine; On a computing machine, the member composite software is set, constitutes a member assembling computing machine; The user extracts the one group of member packaging part that need assemble from above-mentioned component directory library computing machine, it is downloaded in the member assembling computing machine; The user assembles member on member assembling computing machine according to the member packaging part information that will assemble.
In the component assembly method that the present invention proposes, the patent No. is that unified structure element package structure disclosed among the ZL200410030654.5 is a basis.The unified structure element packaging part at existing various component models (as ActiveX, JavaBeans, EJB etc.) on the basis, the interface message of member is described with the interface specification that is independent of concrete programming language, shielded the dissimilar member calling interfaces and the difference of access mode, thereby provided the foundation in member assembling, realizing the visit of dissimilar members and calling.
The present invention in the component groups process of assembling, according to the descriptor in the member packaging part, with each member all abstract be member agency.Like this, in the component groups process of assembling, shield the difference on different component is described on the one hand, simplified the process of member assembling; On the other hand, in assembling process, realize mutual with dissimilar member entities, realized the assembling between the heterogeneous component by the member agency mechanism.
In concrete component assembly method, the present invention at first uses one section " master routine " of script (Script) definition, in order, control modes such as selection, circulation call and carry out the function of member, thereby finish the assembling between the member.Be referred to as Run Script (Running Script) among the present invention.
Simultaneously, for convenience of user's generating run script, the present invention proposes patterned component assembly method, member and external interface thereof are shown to the user intuitively in patterned mode, by user's mutual selection, definite interface annexation of wanting between the assembled component, the component interface information in the corresponding member packaging part of basis, judge the correctness of interface call connected relation between the member, and further adjust, generate graphical assembling scheme according to judged result by the user.
On this basis, the present invention proposes conversion method, further graphically assembling scheme is converted to Run Script from graphical assembling scheme to Run Script.
In the explanation of Run Script was carried out, the present invention had adopted the member agency mechanism.According to the member assembled relation that defines in the Run Script, extract the interface descriptor of member and call condition, start corresponding member agency, remove the component invoking entity.After the calling the result and return of member agency,, be assembled into a complete application program, submit to the user, finish the member assembly working according to the defined assembled relation of Run Script.
In the inventive method, the method according to member packaging part information is assembled member as shown in Figure 2, comprises following concrete steps:
The first step: the Run Script file structure of a responsible control member assembling process of structure, file structure comprises three parts: member statement, the definition of interface annexation and the definition of member assembling control flow;
Second step: according to the member packaging part information that will assemble, the external interface of member is shown in patterned mode, the user selects, adjusts the annexation between the member external interface, forms the member of representing with patterned way and assembles scheme;
The 3rd step: the graphical member assembling scheme according to above-mentioned formation generates corresponding Run Script;
The 4th step: explain the Run Script of carrying out above-mentioned generation, finish assembling process.
Run Script has vital role in the member assembling, it is responsible for the assembling process of control member, and carries out the member that will assemble in execution environment.The Run Script file structure of the structure in the first step is as follows as described above:
Run Script among the present invention is based on the XML syntactic structure, and its structure as shown in Figure 3.Describe regulation according to XML, the whole service script of describing with XML all is called as root element.In Run Script, root element is called as RunningScript, is divided into three parts again:
1, member statement part (<Components〉part)
Describe the member that to assemble, comprise description member name and member external interface.The interpretive routine of Run Script can be written into corresponding member according to the statement of this part, for the execution of script is prepared.
<Components〉label by one or more<Component label forms.Each<Component〉statement of a member of tag identifier, it comprises id and two attributes of name: the former is the unique identifier of member, the script interpretive routine can obtain member according to this identifier in local component base LCRW; The latter is the title of member, can use this title to quote this member in the whole service script.
<Component〉label comprises one or more<Interface〉label,<Interface〉label is used for identifying the interface statement that this member will use in assembling process.<Interface〉title of this interface of name attribute-bit of label.Its subtab<InputMessage〉and<OutputMessage〉then indicated the input and output message of this interface respectively.The concrete definition of message is with reference to the description of the UCDL of member.
2, interface annexation definitional part (<Links〉part)
This part is defined in the annexation between the different component interface in the assembling process, comprises source component interface and purpose component interface.The interpretive routine of Run Script can judge between the interface whether mate according to the definition of this part, and sets up message channel, and in the component groups process of assembling, message is according to transmitting in the corresponding message channel of being defined in of this part.
Interface annexation definitional part is by<Links〉identify<Links〉further comprise one or more<Link〉subtab.Each<Link label definition the annexation of interface between two members.<Link〉the name attribute of label is the unique identifier of in the assembling script this Link being quoted.Each<Link〉under the label, further comprise<From and<To〉two subtabs, represent the source interface and the purpose interface of this connection respectively, each interface is made up of interface name attribute and member name attribute.
3, member assembling control flow definitional part (<Process〉part)
The execution flow process of this part definition member is described the assembled relation between the member, comprises member is called definition that the message between order and the member transmits etc.
<Process〉label describes assembled relation between the member by the execution flow process of definition member.The execution flow process of member is similar to the process flow diagram that is used for expressing algorithm.Each step in the flow process is called an activity.<Process〉part mainly described following basic activity:
(1)<and Invoke 〉: be the perform statement in the Run Script, be used for calling the external interface of certain member.<Invoke〉two the attribute Component and the Interface of label, further indicate the member name that will call and the interface of this member.
(2)<and Terminate 〉: stop calling to certain member.
On this basis, Run Script is combined into more complicated flow process by the control stream mode of definition member execution with above-mentioned basic activity.The control stream mode that member is carried out has:
(1)<and Sequence 〉: define one group of order between the member and carry out relation.Sequence control stream comprises one or more activities of carrying out in order, and in assembling process, the script interpretive routine will be according to these activities at<Sequence〉precedence that is listed in the element, order is carried out these activities.
(2)<Switch: define one group of branch between the member and carry out relation, a Switch control stream comprises ordered list and the last optionally Otherwise branch that one or more Case elements are formed, each Case element definition a conditional branching.Its condition is tested in appearance with Case branch during execution in proper order, and first branch that is satisfied is performed.If the condition of all Case branches all is not satisfied, Otherwise branch will be performed so.After the activity in the selected branch was finished, this Switch control stream finished.
(3)<and While 〉: define one group of circulation between the member and carry out relation.While control stream is realized circulation, and it is carried out the activity that repeats and no longer is satisfied up to the While cycling condition that provides.
(4)<and Flow 〉: define the concurrent execution relation between one group of member.The one group of activity that is comprised in the Flow control stream is explained in the execution and will be carried out concomitantly at Run Script.When all activities among the Flow were finished, Flow control stream finished.
More than each label can be mutually nested, for example, just can comprise a Switch structure in the Flow structure, and the corresponding different Invoke structure of the different condition of this Switch structure.
In second step in the method for member being assembled according to member packaging part information as previously described, the forming process of promptly graphical member assembling scheme as shown in Figure 4, may further comprise the steps:
Step 1) is written into the member packaging part that will assemble, reading element external interface descriptor from the member packaging part in member assembling computing machine;
Step 2) according to the member external interface information that reads, member and the external interface thereof that assemble shown in patterned mode;
Funcall between the member that step 3) user assembles as required relation, the connection of between the member of needs assembling, setting up the member external interface in patterned mode;
Step 4) is according to the descriptor of the above-mentioned member external interface that has connected, judge between the member external interface that has connected whether call interactive relation correct, and the result who judges to user feedback;
Step 5) user adjusts the annexation between the member external interface according to judged result, generates patterned member assembling scheme.
Graphical member assembling scheme wherein is to overlap diagramming and the semantic annexation of understanding easily of describing between member and the member that collects of a cover with one, in the present invention, use a digraph model to define call relation and assembling flow path between the member, and corresponding to the file structure of Run Script, carry out corresponding pel design, as shown in Figure 5.
Corresponding with the file structure of Run Script, the pel in the patterned member assembling scheme is divided into two big classes:
1, the pel definition of member statement: in graphical member assembling scheme, member represents that with the big rectangle that a side has two small rectangles the circle that connects together with it is represented component interface.
2, the pel definition of member assembling control flow.According to defined in the Run Script, as call execution, order execution, executed in parallel, circulation execution etc., design corresponding pel and represent these member assembled relation the assembled relation between the member of member.
Next step is by graphical member assembling scheme generating run script for convenience, and the present invention has also provided the pairing Run Script example of this pel, as shown in Figure 5 in the pel definition.Like this, confirm to generate final graphical member assembling scheme by the user after, only need the graphical member assembling of traversal scheme, find the pairing Run Script example of each pel, insert concrete component information then therein, as the member title, component interface attribute etc. just can generate corresponding Run Script.
In addition, the interface annexation definitional part in the Run Script is mainly used to judge the matching relationship between the interface in assembling process, does not therefore have corresponding pel definition in graphical member assembling scheme.
In the 3rd step in the method for member being assembled according to member packaging part information as previously described, promptly the generating algorithm of Run Script is as described below: as shown in Figure 6, may further comprise the steps:
1) Run Script of a sky of structure writes the header of Run Script file therein;
2) the above-mentioned graphical member assembling scheme that has formed of traversal is therefrom extracted the member packaging part descriptor that will assemble;
3) from the descriptor of extracting, extract the member name and the interface message of member packaging part, be filled into above-mentioned steps 1) in the member statement part of the Run Script of structure;
4), establish a connection having between the component interface of line, be filled into above-mentioned steps 1 according to the line of component interface in above-mentioned graphical member assembling scheme relation) in the interface annexation definitional part of the Run Script of structure;
5) degree of depth travels through above-mentioned whole graphical member assembling scheme, the order of calling according to each member, the perform statement that calling of each member is converted in the Run Script, be filled into above-mentioned steps 1) in the member assembling control flow definitional part of the Run Script of structure, detailed process is as follows: the degree of depth travels through whole graphical member assembling scheme, independent each sequence pel, become one group of activity of carrying out in proper order, calling of each member all is converted into an invoke activity; Each switch pel in the graphical member assembling scheme is corresponded to a switch structure in the Run Script, wherein under every kind of condition corresponding to an activity; While pel in the graphical member assembling scheme is converted to while structure in the Run Script, and from figure, read While round-robin cycling condition, be filled into the appropriate section of while structure in the Run Script, be added to the flow structure of Run Script at sequence two that concurrent phenomenon appears in graphical member assembling scheme.
6) in above-mentioned steps 1) structure Run Script in write end mark, finish the generative process of Run Script.
After Run Script generates, need be by the explanation of Run Script being carried out the assembling of further finishing between the member.
In the explanation of Run Script is carried out, for based on unified member packaging part information, dissimilar members is assembled, the present invention has introduced the member agency mechanism.The member agency can be regarded as the specific implementation of the member function described in the member packaging part.By the member agency, can be with dissimilar members, as CORBA, COM, JavaBean etc. are used as a UCDL member uniformly and use, thereby realize the assembling to heterogeneous component.
The effect of member agency in Run Script explanation implementation as shown in Figure 7.In the explanation implementation of Run Script, at first create UCDL member agency's example, then according to the control flow between the defined member in the Run Script, produce the used input and output message of component interactive, send to relevant member agency, finish calling by member agency to member entity (as the CORBA member, COM member, JavaBean member etc.) acted on behalf of.And will call the result and be packaged into output message, output to Run Script by the member agency and carry out instrument, further finish assembling between the member again by the execution instrument according to defined control stream.
The 3rd step in the method for member being assembled according to member packaging part information as previously described, i.e. the explanation implementation of Run Script as shown in Figure 8, may further comprise the steps:
1, explains that carrying out member states part
Interpretive routine basis<the Component of Run Script〉the member id and the name attribute of appointment in the label, from local component resource storehouse LCRW, extract corresponding member entity and UCDL descriptor, start UCDL member agency, and according to<Interface〉the definition component interface is described in the label, generates corresponding IO interface in UCDL member agency.
UCDL member agency by calling initialization interface, generates the running example of the member of acting on behalf of, and begins to intercept input message after starting.In follow-up component groups process of assembling, will remove to call corresponding member entity by UCDL member agency.
2, explain execution component interface annexation part
<Link〉defined the annexation of interface between the member in the label.The Run Script interpretive routine is according to this definition, checks whether the interface annexation mates, and whether the message definition between the interface unanimity etc.If check and pass through that the Run Script interpretive routine is recorded as message channel with this interface annexation, and changes next step parsing work over to.Otherwise the interpretation process of Run Script is interrupted, and returns error message.
3, explain that carrying out member assembles the control flow part
<Process〉label defines assembled relation between the member by the execution flow process of definition member.In the explanation of this part was carried out, the interpretive routine of Run Script produced the used input and output message of component interactive according to the control flow between the defined member in the Run Script, and was transferred to UCDL member agency.UCDL member agency by analyzing, is the understandable call parameters form of being acted on behalf of of member entity with the input message conversion, and sends call request to member entity corresponding interface after receiving input message; Calling after the result returns, UCDL member agency is corresponding UCDL output message with rreturn value " coding " further again, then this message is passed through corresponding output port, output to the Run Script interpretive routine, further finish assembling between the member again according to defined control stream by the execution instrument.

Claims (1)

1、一种基于统一构件封装件结构的构件组装方法,其特征在于该方法包括以下各步骤:1. A component assembly method based on a unified component package structure, characterized in that the method comprises the following steps: 1)在一台或多台计算机上设置构件库,把从互联网上获得的构件存储进构件库,构成构件库计算机;1) Set up a component library on one or more computers, and store the components obtained from the Internet into the component library to form a component library computer; 2)在一台计算机上设置构件目录库,用户从上述构件库计算机上提取构件后进行封装,形成以统一形式描述的构件封装件,并将其存储在构件目录库上,构成构件目录库计算机;2) The component catalog library is set up on a computer, and the user extracts the components from the above-mentioned component library computer and encapsulates them to form a component package described in a unified form, and stores it on the component catalog library to form a component catalog computer ; 3)在一台计算机上设置构件组装软件,构成一个构件组装计算机;3) Install component assembly software on a computer to form a component assembly computer; 4)用户从上述构件目录库计算机中提取一组需要组装的构件封装件,将其下载到构件组装计算机中;4) The user extracts a group of component packages that need to be assembled from the above-mentioned component catalog computer, and downloads them to the component assembly computer; 5)用户根据所要组装的构件封装件信息,在构件组装计算机上对构件进行组装,进行组装的方法,包括以下步骤:5) The user assembles the components on the component assembly computer according to the package information of the components to be assembled, and the method for assembling includes the following steps: (1)构造一个负责控制构件组装过程的运行脚本文档结构,文档结构包括三部分:构件声明、接口连接关系定义以及构件组装控制流程定义;(1) Construct a running script document structure responsible for controlling the component assembly process. The document structure includes three parts: component declaration, interface connection relationship definition, and component assembly control flow definition; (2)根据所要组装的构件封装件信息,将构件的外部接口以图形化的方式显示出来,用户选择、调整构件外部接口之间的连接关系,形成以图形化方式表示的构件组装方案,形成以图形化方式表示的构件组装方案的方法,包括以下步骤:(2) According to the component package information to be assembled, the external interface of the component is displayed in a graphical manner, and the user selects and adjusts the connection relationship between the external interfaces of the component to form a graphical representation of the component assembly plan, forming A method for graphically representing a component assembly scheme, comprising the following steps: (a)在构件组装计算机中载入所要组装的构件封装件,从构件封装件中读取构件外部接口描述信息;(a) Load the component package to be assembled into the component assembly computer, and read component external interface description information from the component package; (b)根据读取的构件外部接口信息,将所要组装的构件及其外部接口以图形化的方式显示出来;(b) Graphically display the components to be assembled and their external interfaces according to the read component external interface information; (c)用户根据需要组装的构件之间的功能调用关系,以图形化的方式在需要组装的构件之间建立构件外部接口的连接;(c) The user establishes the connection of the external interface of the components between the components to be assembled in a graphical way according to the function call relationship between the components to be assembled; (d)根据上述已连接的构件外部接口的描述信息,判断已连接的构件外部接口之间的调用交互关系是否正确,并向用户反馈判断的结果;(d) According to the description information of the external interfaces of the connected components, judge whether the call interaction relationship between the external interfaces of the connected components is correct, and feed back the judgment results to the user; (e)用户根据判断结果,调整构件外部接口之间的连接关系,生成图形化的构件组装方案;(e) According to the judgment result, the user adjusts the connection relationship between the external interfaces of the components, and generates a graphical component assembly scheme; (3)根据上述形成的图形化构件组装方案,生成相应的运行脚本,生成运行脚本的方法,包括以下步骤:(3) According to the graphical component assembly scheme formed above, generate a corresponding running script, and generate a method for running the script, including the following steps: (a)构造一个空的运行脚本,在其中写入运行脚本文件的头信息;(a) Construct an empty running script, write the header information of running script file therein; (b)遍历上述已经形成的图形化构件组装方案,从中提取所要组装的构件封装件描述信息;(b) traverse the above-mentioned graphical component assembly schemes that have been formed, and extract the component package description information to be assembled therefrom; (c)从提取的描述信息中提取构件封装件的构件名和接口信息,填入到上述步骤(1)构造的运行脚本的构件声明部分中;(c) Extract the component name and interface information of the component package from the extracted description information, and fill in the component declaration part of the running script constructed in the above step (1); (d)根据上述图形化构件组装方案中构件接口的连线关系,在有连线的构件接口之间建立连接关系,填入到上述步骤(1)构造的运行脚本的接口连接关系定义部分中;(d) According to the connection relationship of the component interface in the above-mentioned graphical component assembly scheme, establish the connection relationship between the connected component interfaces, and fill in the interface connection relationship definition part of the running script constructed in the above step (1) ; (e)深度遍历上述整个图形化构件组装方案,根据各个构件的调用顺序,把对每个构件的调用转化为运行脚本中的执行语句,填入到上述步骤(1)构造的运行脚本的构件组装控制流程定义部分中;(e) In-depth traversal of the above-mentioned entire graphical component assembly scheme, according to the calling sequence of each component, convert the call to each component into the execution statement in the running script, and fill it into the component of the running script constructed in the above step (1) In the assembly control flow definition section; (f)在上述步骤(1)构造的运行脚本中写入结束标记,完成运行脚本的生成过程;(f) write end mark in the operation script that above-mentioned step (1) constructs, finish the generation process of operation script; (4)解释执行上述生成的运行脚本,完成组装过程,运行脚本的解释执行过程,包括以下步骤:(4) Interpret and execute the running script generated above, complete the assembly process, and run the interpreting and executing process of the script, including the following steps: (a)解释执行运行脚本中的构件声明部分:根据上述生成的运行脚本的构件声明部分中指定的构件名和构件接口,启动相应的构件代理,初始化构件实体,在后续的构件组装过程中,构件代理负责侦听来自外部的调用信息,并调用相应的构件实体;(a) Interpret and execute the component declaration part in the running script: according to the component name and component interface specified in the component declaration part of the running script generated above, start the corresponding component agent, initialize the component entity, and in the subsequent component assembly process, the component The agent is responsible for listening to the call information from the outside and calling the corresponding component entity; (b)解释执行运行脚本中的构件接口连接关系定义部分:根据上述生成的运行脚本的构件接口连接关系定义中构件之间接口的连接关系,检查接口连接关系是否匹配,接口之间的消息定义是否一致,若检查通过,则运行脚本解释程序将这一接口连接关系记录为消息通道,并转入下一步解析,否则,运行脚本的解释过程中断,返回出错信息;(b) Explain the component interface connection relationship definition part in the execution of the running script: according to the connection relationship between the components in the component interface connection relationship definition of the running script generated above, check whether the interface connection relationship matches, and the message definition between the interfaces Whether it is consistent, if the check is passed, then run the script interpreter to record this interface connection relationship as a message channel, and transfer to the next step of analysis, otherwise, the interpretation process of the running script is interrupted and an error message is returned; (c)解释执行构件组装控制流程定义部分:根据上述生成的运行脚本的构件组装控制流程定义的构件执行流程,产生构件交互所用的输入输出消息,并将其传输给构件代理,构件代理在收到输入消息后,将输入消息转换为所代理的构件实体的调用参数格式,并向构件实体相应的接口发出调用请求,在调用结果返回后,构件代理将返回值转换为其它构件代理的输出消息,然后将该消息通过相应的输出端口,输出到运行脚本解释程序,按照所定义的控制流完成构件之间的组装。(c) Explain the definition part of executing the component assembly control process: According to the component execution process defined by the component assembly control process of the generated running script above, generate the input and output messages used for component interaction, and transmit them to the component agent, and the component agent receives After receiving the input message, convert the input message into the call parameter format of the proxied component entity, and send a call request to the corresponding interface of the component entity. After the call result is returned, the component proxy converts the return value into the output message of other component proxies , and then output the message to the running script interpreter through the corresponding output port, and complete the assembly between components according to the defined control flow.
CNB2005101052396A 2005-09-28 2005-09-28 Member assembling method based on united member package structure Expired - Fee Related CN1313920C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101052396A CN1313920C (en) 2005-09-28 2005-09-28 Member assembling method based on united member package structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101052396A CN1313920C (en) 2005-09-28 2005-09-28 Member assembling method based on united member package structure

Publications (2)

Publication Number Publication Date
CN1744038A CN1744038A (en) 2006-03-08
CN1313920C true CN1313920C (en) 2007-05-02

Family

ID=36139428

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101052396A Expired - Fee Related CN1313920C (en) 2005-09-28 2005-09-28 Member assembling method based on united member package structure

Country Status (1)

Country Link
CN (1) CN1313920C (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100375957C (en) * 2006-05-19 2008-03-19 清华大学 Software service generation method according to user requirements in network environment
CN1333336C (en) * 2006-06-23 2007-08-22 清华大学 Method for unified management of component library supporting heterogeneous component
CN100419677C (en) * 2006-08-16 2008-09-17 中国航天科技集团公司第一研究院 Rapid engineering design method based on template
CN101056207A (en) * 2007-05-31 2007-10-17 华为技术有限公司 Software loading method for communication device and communication network system
CN102087599A (en) * 2011-02-24 2011-06-08 北京中电普华信息技术有限公司 J2EE-based Web application system development method and device
CN102073506A (en) * 2011-02-24 2011-05-25 北京中电普华信息技术有限公司 Java 2 enterprise edition (J2EE) based method and system for processing Web application request
CN102236556A (en) * 2011-08-01 2011-11-09 苏州万图明电子软件有限公司 Method for rapidly constructing software product
CN103136406B (en) * 2011-12-03 2015-12-16 南京南瑞继保电气有限公司 The method of visualization applications simulations function code
CN102722367B (en) * 2012-05-21 2015-11-25 深圳市茁壮网络股份有限公司 A kind of method of data processing, processor and terminal
CN104298513A (en) * 2014-10-11 2015-01-21 无锡天脉聚源传媒科技有限公司 Application product generation method and apparatus
CN104572091B (en) * 2014-12-25 2017-11-03 百度在线网络技术(北京)有限公司 Application software implementation method, device and computer equipment
CN105607902A (en) * 2015-12-16 2016-05-25 苏州同元软控信息技术有限公司 Component model based system visualization design and code generation system and method
CN107256308B (en) * 2017-06-09 2019-10-08 华东师范大学 A kind of component interactive relationship modeling system based on co-development system
CN107229477B (en) * 2017-06-09 2019-10-08 华东师范大学 A kind of component interactive relationship modeling method based on co-development system
CN107491478A (en) * 2017-07-03 2017-12-19 广东南方数码科技股份有限公司 Data processing method, electronic equipment and storage medium based on flow chart directly perceived
CN107809388B (en) * 2017-11-10 2020-09-01 中国电子科技集团公司第四十一研究所 Script configuration based autonomous path-finding switch matrix network control method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564129A (en) * 2004-04-02 2005-01-12 清华大学 Method of packing member and consistent visit
CN1584830A (en) * 2004-06-16 2005-02-23 北京大学 Non-functional characteristic assembling method in member software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564129A (en) * 2004-04-02 2005-01-12 清华大学 Method of packing member and consistent visit
CN1584830A (en) * 2004-06-16 2005-02-23 北京大学 Non-functional characteristic assembling method in member software

Also Published As

Publication number Publication date
CN1744038A (en) 2006-03-08

Similar Documents

Publication Publication Date Title
CN1313920C (en) Member assembling method based on united member package structure
CN1196995C (en) Application software development system andm ehtod, application software devlopment program and application software generating method
CN1223938C (en) Method of packing member and consistent visit
Shaw et al. Abstractions and implementations for architectural connections
US20050144226A1 (en) Systems and methods for modeling and generating reusable application component frameworks, and automated assembly of service-oriented applications from existing applications
JP2006526209A (en) Software development method and development system using metadata extended under component-based environment
US9141592B2 (en) Method and system for directly mapping web services interfaces and java interfaces
Wassermann et al. Sedna: A BPEL-based environment for visual scientific workflow modeling
CN111309291A (en) Modularized embedded software architecture, customization method and customization system thereof
JP2009238231A (en) Software development method using metadata expanded under component base environment and its development system
CN1537271A (en) Computer processing and programming method using autonomous data processor
CN1552029A (en) A Web Service Development Platform for Asynchronous Web Services
CN1669020A (en) Component Models for Real-time System Control
CN1320874A (en) Program mining method and system in network environment
CN1717655A (en) Software application program, software architecture and method especially for producing software application program for MES system
CN1848774A (en) System and method for long-distance calling communication assembly
CN1682186A (en) Technology independent information management
Schantz et al. Research advances in middleware for distributed systems: State of the art
Daniel et al. Distributed orchestration of user interfaces
US9454616B2 (en) Method and system for unifying configuration descriptors
Daniel et al. From people to services to ui: Distributed orchestration of user interfaces
CN1845069A (en) A method for generating software services according to user needs in a network environment
CN1744037A (en) A Method to Avoid Grid Computing Application's Dependency on Underlying Development Toolkit
US20040177112A1 (en) System and method for interprocess services client artifact download
KR20100089831A (en) Generation and management of managed javabean objects

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070502

Termination date: 20180928