CN102541647A - Method for calling external function of executable component in software integration process - Google Patents

Method for calling external function of executable component in software integration process Download PDF

Info

Publication number
CN102541647A
CN102541647A CN201010608205XA CN201010608205A CN102541647A CN 102541647 A CN102541647 A CN 102541647A CN 201010608205X A CN201010608205X A CN 201010608205XA CN 201010608205 A CN201010608205 A CN 201010608205A CN 102541647 A CN102541647 A CN 102541647A
Authority
CN
China
Prior art keywords
application software
controlled application
function
software
instruction
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.)
Granted
Application number
CN201010608205XA
Other languages
Chinese (zh)
Other versions
CN102541647B (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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN 201010608205 priority Critical patent/CN102541647B/en
Publication of CN102541647A publication Critical patent/CN102541647A/en
Application granted granted Critical
Publication of CN102541647B publication Critical patent/CN102541647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for calling external function of an executable component in software integration process, comprising the following steps of: decomposing the function of a controlled application software, marking the operation step for realizing the function of the software and the interface control component resources, and keeping the corresponding logic sequence; determining a command sending sequence by using the operation step, the interface control component resources and the corresponding logic sequence of the interface control component resources; starting the controlled application software, acquiring the characteristics of the started controlled application software and sending corresponding commands to the controlled application software according to the command sending sequence in a way which can be identified by the controlled application software; receiving the commands by the controlled application software to analyze and process, and executing corresponding functions. Due to the adoption of the method, the function of the executable component can be called and packaged under the condition that the applied software program interface cannot be obtained, the system dependence can be reduced, and the integration efficiency of the system can be improved.

Description

But the executive module function external call method in a kind of software integrating process
Technical field
It is integrated technological with process communication to the present invention relates to a kind of software systems, but the executive module function external call method in a kind of specifically software integrating process.
Background technology
Huge day by day along with the increasingly extensive of computer utility and software systems scale, current application software becomes increasingly complex.In the process of program and system development, along with the field professional deepen constantly the continual renovation with software engineering, must need different times, the comprehensive integration of the application software of difference in functionality is so that the design of DLL just seems is very important.So-called interface is exactly the definition of a series of correlation techniques and community set.API is called for short API (ApplicationProgramming Interface), is exactly the agreement that the different ingredients of software systems are connected.Provide the software of the defined function of API to be called the realization of this API.API is a kind of interface, so be a kind of abstract.For example, the mode of draw icons function is called in one group of API definition in the shape library, with display icon on screen.Call in the program, compile time is connected to this group API, and the realization (storehouse) of just calling API during execution comes display icon.The API of operating system can be used to storage allocation or access file.Many systems and application program provide api interface and realization, such as graphics system, and database, network, Web service, some recreation even.API has many different designs, and the interface that is used for carrying out fast generally includes function, constant; Variable and data structure also have alternate manner, as pass through interpreter; Or provide level of abstraction to cover with the relevant information of API realization, guarantee to use the code of API to need not change and adapt to the realization variation.
Encapsulate if want to accomplish between the process of operating system and application software or between the process of two application software communicate by letter or carry out particular functionality, need follow the interface scheme of making an appointment.For example under Windows operating system; Appointed call standard such as dynamic link library (DLL, Dynamic Link Library), The Component Object Model (COM; Component Object Model) etc., all being that the function of program is integrated provides good application platform with using.
Under existing computer technology, operating system is the most directly unit of coming into contacts with the user, and all application programs all are to operate on the basis of operating system.In application program, will accomplish a certain function, all be that the form with function call realizes, same, and application program also is to come the notifying operation system to carry out function corresponding with the mode of function call.Operating system each specific function that can accomplish all have a function corresponding usually with it; Institute just; Operating system it the function that can accomplish offer application call with the form of function; Application program just is called system call to these function calls, and the set of these functions is exactly the interface that operating system offers application programming.In the practice of application programming, the design of DLL at first will make the responsibility of system rationally divided.The excellent interface design can reduce interdepending of system's each several part, improves the cohesion of component units, reduces the degree of coupling between component units, thereby improves the maintainability and the extendability of system.The fundamental purpose of DLL provides application program and developer visiting the ability of one group of routine, and need not to visit source code or understand the details of internal work mechanism.
Under some special situation, but executive module does not provide DLL or interface to learn, can't carry out function call through the interface specification that operating system provides again.Under this type situation, when thinking specific function that integration application has, just can't realize through the mode of interface interchange.
Summary of the invention
But the weak point that can't realize through the mode of interface interchange to the integrated existence of executive module in the prior art, but the technical matters that the present invention will solve provides the executive module function external call method in the software integrating process that a kind of concrete function of can docking port unknown application program calls.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is:
But the executive module function external call method in the software integrating process of the present invention may further comprise the steps: controlled application software is carried out Function Decomposition, the operation steps and the interface control resource that realize software function are carried out mark, and keep the respective logic order; Utilize aforesaid operations step and interface control resource and respective logic thereof to confirm the instruction sending order in proper order; Start controlled application software, obtain to start the characteristic of the controlled application software in back, but send command adapted thereto to controlled application software with controlled application software RM by above-mentioned instruction sending order; Controlled application software receives above-mentioned instruction and analyzes, handles, and carries out corresponding function.
Said acquisition starts the characteristic of the controlled application software in back, comprises following steps but send command adapted thereto by above-mentioned instruction sending order with controlled application software RM to controlled application software: the host process sign that obtains controlled application software with the mode of enumerating; Utilize the host process sign to obtain corresponding controlled application software resources control sign; Instruction is sent to controlled application software, and principal parameter item in the instruction transport function that upgrades in time according to predefined logical order; According to the performing step of the controlled application software function of being grasped, inquire about with the respective logic order, obtain resource control class name; The api function that the instruction that utilizes host process sign, controlled application software resources control sign and resource control class name to provide through operating system is transmitted; To controlled application software move instruction; Be inserted in the instruction queue of controlled application software, wait for controlled application software response.
The said host process that obtains controlled application software with the mode of enumerating is designated: according to the key assignments that controlled application software is registered in operating system, the api function that utilizes operating system to provide returns controlled application software sign.
Utilizing the host process sign to obtain corresponding controlled application software resources control is designated: according to the division of operating system to management resource and operating resource, the api function that utilizes operating system to provide returns controlled application software resources control sign.
Said instruction sending order be controlled application software realize certain function the order that will carry out.
The present invention has following beneficial effect and advantage:
1. adopt the inventive method that controlled application software is carried out when integrated, need not to know the routine interface of controlled application software, only need grasp the basic operational steps that realizes controlled application software function, have very high dirigibility and convenience.
2. main control software and controlled application software are present in the different address space respectively in the inventive method, only carry out crosslinkedly between two processes through the host process sign of controlled application software, and the degree of coupling is very low, is easy to maintenance and management.
Description of drawings
Fig. 1 is the inventive method process flow diagram;
Fig. 2 is a controlled application software instructions processing procedure synoptic diagram in the inventive method;
Fig. 3 is a main control software master surface chart in the embodiment of the invention;
Fig. 4 is controlled application software master's surface chart in the embodiment of the invention.
Embodiment
As shown in Figure 1, but the executive module function external call method in the software integrating process of the present invention may further comprise the steps:
1) controlled application software is carried out Function Decomposition, the operation steps and the interface control resource that realize software function are carried out mark, and keep the respective logic order;
2) utilize aforesaid operations step and interface control resource and respective logic thereof to confirm the instruction sending order in proper order;
3) start controlled application software, obtain to start the characteristic of the controlled application software in back, but send command adapted thereto to controlled application software with controlled application software RM by above-mentioned instruction sending order;
4) controlled application software receives above-mentioned instruction and analyzes, handles, and carries out corresponding function.
Present embodiment in step 1), main control software controlled application software is carried out integrated before, need do the preliminary work of some secondary development, that is familiar with exactly and grasps controlled application software operation of specified functions step and process.For example: click " input parameter is set " and can send data designated to main dialog box; Clicking " carrying out model calculation " button can the execution model evaluation work etc.The interface of above-mentioned controlled application software is as shown in Figure 4.
Step 2) in, to the transaction module based on incident or instruction, the execution sequence of software depends on the order that incident takes place, execution sequence be by order produce event driven, and the generation of instruction incident is often and do not require the branch of orderliness.The instruction transmission is had a cover strict definition, and when it produces, send it to all relevant application programs, these instructions are used for the driver application operation to realize certain function.The structure of application software is based on the instruction driving model, and any one action of program all takes place after receiving an instruction, and every instruction can have parameter.
In the step 3), start controlled application software, the main control software meeting call operation api function CreateProcess of system creates an instance of controlled application software process.The function declaration that provides is following:
CreateProcess(
LPCWSTR?lpszImageName,
LPCWSTR?lpszCmdLine,
LPSECURITY_ATTRIBUTES?lpsaProcess,
LPSECURITY_ATTRIBUTES?lpsaThread,
BOOL?fInheritHandles,
DWORD?fdwCreate,
LPVOID?lpvEnvironment,
LPWSTR?lpszCurDir,
LPSTARTUPINFOW?lpsiStartInfo,
LPPROCESS_INFORMATION?lppiProcInfo);
Parameter l pszImageName and lpszCmdLine be for pointing to an empty character string pointer that stops of application program module name journey, and when parameter l pszCmdLine was NULL, function will be with the value of parameter l pszImageName as command line parameter.Like Fig. 3, shown in 4, in interface shown in Figure 3 (" model calculation A "), click " startup calculation procedure " button in the present embodiment, can start application software " model calculation B ", the interface is as shown in Figure 4.
In the step 3), obtain to start the characteristic of the controlled application software in back, comprise following steps to controlled application software but send command adapted thereto with controlled application software RM by above-mentioned instruction sending order:
Obtain the host process sign of controlled application software with the mode of enumerating;
Utilize the host process sign to obtain corresponding controlled application software resources control sign;
Instruction is sent to controlled application software, and principal parameter item in the instruction transport function that upgrades in time according to predefined logical order;
According to the performing step of the controlled application software function of being grasped, inquire about with the respective logic order, obtain resource control class name;
The api function that the instruction that utilizes host process sign, controlled application software resources control sign and resource control class name to provide through operating system is transmitted; To controlled application software move instruction; Be inserted in the instruction queue of controlled application software, wait for controlled application software response.
The said host process that obtains controlled application software with the mode of enumerating is designated: according to the key assignments that controlled application software is registered in operating system, the api function that utilizes operating system to provide returns controlled application software sign.
Utilizing the host process sign to obtain corresponding controlled application software resources control is designated: according to the division of operating system to management resource and operating resource, the api function that utilizes operating system to provide returns controlled application software resources control sign.
This operation can be obtained the host process sign of controlled application software, lays the foundation for so the instruction transmission between two processes.In the visualization display scheme of application software, but the many embodied with control of various operating resource are in the main interface of program.Visual resource will managed and operate to operating system, all is to find corresponding resource through the identifier of resource in operating system.According to the type of resource, can resource identification be subdivided into the icon sign, cursor sign, interface identification, the various types of resource identifications of Application Instance sign or the like.Operating system is given a unique identification number of each control resource appointment, and identifier is the numerical value of one 4 byte long normally, is used for different instance in the different object of identification application and the homogeneous object.
The visual main viewing area of controlled application software is a rectangular area that is used to receive user's input and shows output of being created by application program, is the base unit of system management applications, is made up of nonclient-area and client area.Controlledly can create one or more viewing areas after application software initiated, subsequently the operational process of application program promptly be that host process is inner, between process and the process, carry out the process of data processing and exchanges data between process and the system.
The instruction of most incident all is associated with certain control resource, and each process or thread all have an instruction process process (function), belong to certain thread instruction all will handle by the corresponding instruction processing procedure.Each application program all has an instruction respective queue; System can put into instruction queue separately to the instruction that belongs to each application program, and controlled application software is constantly obtained instruction and sent to corresponding control thread process process to them from the instruction queue of oneself.This circulation (instruction fetch-processing instruction) until the user stop with certain mode process of application program (as close) termination routine.In the operational process of embodiment; After software among Fig. 3 " model calculation A " starts " the model calculation B " among Fig. 4; Can enumerate the host process sign that obtains controlled application software " model calculation B " to the desktop process, be convenient to instruct and send and encapsulation control.
In host applications software, corresponding controlled program resource control sign being obtained, is the step that realizes specific function according to the controlled application program of being grasped, and inquires about with respective logic, uses api function.Parameter 1 is the identifier of parent process in api function; Parameter 2 is the next space identification of identical control resource; Parameter 3 is pointed to the character string of the sky termination that contains resource control class name, and parameter 4 contains the empty character string that stops of resource control title for pointing to, in application process, to be set to NULL.In the present embodiment, software " model calculation A " will acquire the sign of effective controls all in " model calculation B " software process address space, and make things convenient for next step to carry out parameter input and event-driven response.
Under the environment of operating system, instruction is between the operating system appointed in advance and the application software or the data unit that transmits between application software and the application software, and instruction can be very simple, for example only comprises text-string; Also can be very complicated; Possibly comprise embedded object; Instruction generally is sent in the instruction queue, and instruction queue can be held instruction in the transmission course of instruction, is the container of instruction storage; The instruction queue manager is acted as an intermediary in the time will instructing the target that is relayed to it from its source, and the fundamental purpose of formation provides route and guarantees the transmission of instruction; Whole formation meeting reserve statement is up to can successfully transmitting it.The operating mechanism of the incident that the is based on commanded response that controlled application software adopts; Main control software can be referring to shown in Figure 2 to the whole process of controlled application software transmission instruction; Main control software will be from the command source sequence selection instruction be dispatched into the process address space of controlled application software, controlled application software is instructed and is caught, and according to command content instruction is handled then; If after receiving exit instruction, controlled application software withdraws from after carrying out.
Though controlled application software is present in different virtual address spaces with main control software, the instruction pass through mechanism that operating system provides can be via the transfer of system between any two application software or communicate between operating system and the application software.Operating system has defined the api function that instruction is transmitted; Main control software need used the function that system provides in the process of controlled application software transmission instruction; Under the help of operating system; Be equivalent in the instruction queue of controlled application software, insert the control corresponding instruction, just accomplished main control software integrated to controlled application software when controlled application software response instruction and when carrying out the process of concrete function.
Through the enforcement of above-mentioned steps, can be in the process of software development and application, flexible other software basic functions to the needs encapsulation are carried out integrated, reach comparatively desirable effect.

Claims (5)

1. but the executive module function external call method in the software integrating process is characterized in that may further comprise the steps:
Controlled application software is carried out Function Decomposition, the operation steps and the interface control resource that realize software function are carried out mark, and keep the respective logic order;
Utilize aforesaid operations step and interface control resource and respective logic thereof to confirm the instruction sending order in proper order;
Start controlled application software, obtain to start the characteristic of the controlled application software in back, but send command adapted thereto to controlled application software with controlled application software RM by above-mentioned instruction sending order;
Controlled application software receives above-mentioned instruction and analyzes, handles, and carries out corresponding function.
2. but by the executive module function external call method in the described software integrating process of claim 1; It is characterized in that: said acquisition starts the characteristic of the controlled application software in back, comprises following steps but send command adapted thereto by above-mentioned instruction sending order with controlled application software RM to controlled application software:
Obtain the host process sign of controlled application software with the mode of enumerating;
Utilize the host process sign to obtain corresponding controlled application software resources control sign;
Instruction is sent to controlled application software, and principal parameter item in the instruction transport function that upgrades in time according to predefined logical order;
According to the performing step of the controlled application software function of being grasped, inquire about with the respective logic order, obtain resource control class name;
The api function that the instruction that utilizes host process sign, controlled application software resources control sign and resource control class name to provide through operating system is transmitted; To controlled application software move instruction; Be inserted in the instruction queue of controlled application software, wait for controlled application software response.
3. but by the executive module function external call method in the described software integrating process of claim 2, it is characterized in that: the said host process that obtains controlled application software with the mode of enumerating is designated:
According to the key assignments that controlled application software is registered in operating system, the api function that utilizes operating system to provide returns controlled application software sign.
4. but by the executive module function external call method in the described software integrating process of claim 2, it is characterized in that: utilize the host process sign to obtain corresponding controlled application software resources control and be designated:
According to the division of operating system to management resource and operating resource, the api function that utilizes operating system to provide returns controlled application software resources control sign.
5. but by the executive module function external call method in the described software integrating process of claim 1, it is characterized in that: said instruction sending order be controlled application software realize certain function the order that will carry out.
CN 201010608205 2010-12-24 2010-12-24 Method for calling external function of executable component in software integration process Active CN102541647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010608205 CN102541647B (en) 2010-12-24 2010-12-24 Method for calling external function of executable component in software integration process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010608205 CN102541647B (en) 2010-12-24 2010-12-24 Method for calling external function of executable component in software integration process

Publications (2)

Publication Number Publication Date
CN102541647A true CN102541647A (en) 2012-07-04
CN102541647B CN102541647B (en) 2013-06-26

Family

ID=46348603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010608205 Active CN102541647B (en) 2010-12-24 2010-12-24 Method for calling external function of executable component in software integration process

Country Status (1)

Country Link
CN (1) CN102541647B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242915A (en) * 2015-09-07 2016-01-13 无锡天脉聚源传媒科技有限公司 Data operation processing method and apparatus
CN107273226A (en) * 2017-06-30 2017-10-20 百度在线网络技术(北京)有限公司 Integrated package and the method and apparatus for being integrated component are called in Android system
WO2021143305A1 (en) * 2020-01-14 2021-07-22 清华大学 Software module integration system for numerical application and operation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101907991A (en) * 2010-06-30 2010-12-08 天津大学 Plug-in technique-based method for realizing power system analysis software interface
CN101908014A (en) * 2010-09-01 2010-12-08 上海普元信息技术股份有限公司 System structure and method for realizing security audit and track in computer software system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101907991A (en) * 2010-06-30 2010-12-08 天津大学 Plug-in technique-based method for realizing power system analysis software interface
CN101908014A (en) * 2010-09-01 2010-12-08 上海普元信息技术股份有限公司 System structure and method for realizing security audit and track in computer software system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242915A (en) * 2015-09-07 2016-01-13 无锡天脉聚源传媒科技有限公司 Data operation processing method and apparatus
CN105242915B (en) * 2015-09-07 2018-11-20 无锡天脉聚源传媒科技有限公司 A kind of processing method and processing device of data manipulation
CN107273226A (en) * 2017-06-30 2017-10-20 百度在线网络技术(北京)有限公司 Integrated package and the method and apparatus for being integrated component are called in Android system
CN107273226B (en) * 2017-06-30 2021-01-08 百度在线网络技术(北京)有限公司 Method and device for integrating components in android system and calling integrated components
WO2021143305A1 (en) * 2020-01-14 2021-07-22 清华大学 Software module integration system for numerical application and operation method

Also Published As

Publication number Publication date
CN102541647B (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN105447643B (en) Scientific workflow system and method for cloud computing platform
CN111507020B (en) Graphical display method for distributed simulation results of electromechanical systems of multi-electric aircraft
US9696972B2 (en) Method and apparatus for updating a web-based user interface
Leymann et al. Business process management with flowmark
JP5026415B2 (en) Data centric workflow
Jacobs et al. D-SOL; a distributed Java based discrete event simulation architecture
EP2587372B1 (en) Sharing of first class objects across multiple interpreted programming languages
US20040017392A1 (en) Web service control for use in a graphical programming environment
US7024669B1 (en) Managing workload within workflow-management-systems
CN103176804B (en) A kind of user interface implementation method
US20180173503A1 (en) System and method for graphical programming
CN110096278B (en) Extensible embedded man-machine interface tool implementation method
US20120054716A1 (en) Deployment method and device and assistance in deploying components forming an embedded real time system
EP2328301A1 (en) Method and apparatus for managing the authority in workflow component based on authority component
CN102541647B (en) Method for calling external function of executable component in software integration process
Topçu et al. Layered simulation architecture: A practical approach
EP1192532B1 (en) Extending the attributes of an application generated using a fourth generation programming tool
CN104978170A (en) Multi-agent system generating method based on graphical expression
US10114622B2 (en) Method and system for customizing a graphic user interface of a manufacturing execution system screen
CN110413285A (en) Method for deploying cloud service and method for developing cloud service
CN111596962A (en) Real-time microkernel system based on high-speed protocol channel and initialization method thereof
Eastman Information exchange architectures for building models
Manduchi et al. The Java interface of MDSplus: towards a unified approach for local and remote data access
US20090044203A1 (en) Apparatus and Method for Generating Programming Interactions for a Computer Program from an Incoming Data Structure
Di Trapani et al. NTGsim: A graphical user interface and a 3D simulator for nonlinear trajectory generation methodology

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