CN1707433A - Constitution method for software execution environment operation external connection - Google Patents
Constitution method for software execution environment operation external connection Download PDFInfo
- Publication number
- CN1707433A CN1707433A CN 200410048716 CN200410048716A CN1707433A CN 1707433 A CN1707433 A CN 1707433A CN 200410048716 CN200410048716 CN 200410048716 CN 200410048716 A CN200410048716 A CN 200410048716A CN 1707433 A CN1707433 A CN 1707433A
- Authority
- CN
- China
- Prior art keywords
- function
- execution environment
- software execution
- member function
- software
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The external connection process to constitute software execution environment is one specific software constituting mode. The connection relation between targets is re-defined, so that the targets back up forced outputting, forced inputting, stimulation and other new functions. The present invention can avoid troubles to the software designer, lower software development cost and raise the flexibility of software maintenance.
Description
Technical field
The outside constructive method that links of the relevant a kind of software execution environment utilization of the present invention, especially refer to that a kind of software constitutes pattern, see through specific software execution environment, the quick result of generating routine, be specially adapted at special instruction program language, contain the operating system of special service and contain the chained library of specific function or other similarly constitutes.
Background technology
Along with the progress on the industry, people also day by day increase the weight of for the dependence of computing machine, demand for software also and then promotes certainly, the capacity and the function that are software now all have higher requirement, in other words, the designer of software development must design more complicated software, could satisfy consumer's needs.
The software in past, constituted mode roughly divide two kinds, and a kind of is the Original Design Manufacture mode, and another kind is the Object Oriented OO mode.The Original Design Manufacture mode is separated data and handling procedure, is that main body is come the processing data with the program, or data is exchanged in the mode of parameter or passback value between program.Present Object Oriented OO mode, it is the further improvement of Original Design Manufacture, data structure and disposal route are packaged into classification, produce the computing entity in run time with classification then and carry out computing, therefore allow some data and disposal route constitute and just interlink period, the puzzlement that can avoid data in processing procedure, must constantly transmit at software.
But it is in fact strict, these two kinds of methods all are identical software constituted modes, restriction based on central processing unit and program language, must adopt the method for function call, could be from the mode of a handling procedure with nido, activate another handling procedure, the function call constituted mode of this nido, can cause two puzzlements in the software maintenance:
1. writing is familiar with period: because handling procedure must constitute at software and just must make other handling procedure of usefulness be familiar with to some extent to it period (coding code period), for example must know function definitions such as letter formula title, Argument List, or class declaration, therefore after software development finishes, if make amendment, as long as move and arrive any one, will other refer to the program code correct of this software element (letter formula, classification or object) to all.This situation of pulling one hair and move the whole body causes the difficulty of software maintenance.
2. nido structure: the software of nido constitutes structure, is the constituted mode that certain macrostructure comprises all the other several minor structures fully basically.Because present software is all very huge, therefore can cause the very nido structure of multilayer.Therefore after software development finishes,, just must disassemble the nido structure from level to level, therefore cause excessive software configuration to destroy if make amendment.
In view of this, consider that therefore new software of design constitutes pattern, makes it can reduce the complexity of revising software, to promote the development of software industry.
Summary of the invention
The object of the present invention is to provide the outside constructive method that links of a kind of software execution environment utilization, define connection relationship between object by the user, the output of accelerated procedure, and fundamental purpose of the present invention is solving aforementioned two large problems:
One, writing period understanding: in writing period, the member function that each object all only needs understanding oneself just can reach the purpose of external communication;
Two, nido structure: it all is to produce because of the demand that links that there are many nido structures in the past, therefore this method can reduce the quantity of this type of nido structure, reaching the reduction cost of software development, and the elasticity that improves software maintenance, design the purpose of this framework.
For reaching above-mentioned purpose, method of the present invention comprises the following steps:
A, definition one software execution environment;
B, see through this software execution environment device at least one object;
C, see through the binding between this software execution environment operation at least one object member function;
D, by this object and link configuration program.
Description of drawings
Fig. 1 is the process flow diagram of the outside constructive method that links of software execution environment utilization of the present invention;
Fig. 2 a is the process flow diagram of installation function in the software execution environment that the present invention carried;
Fig. 2 b is the process flow diagram of removal function in the software execution environment that the present invention carried;
Fig. 2 c is for linking the process flow diagram of function in the software execution environment that the present invention carried;
Fig. 2 d is for cutting off the process flow diagram of function in the software execution environment that the present invention carried;
Fig. 3 a is for forcing the process flow diagram of output function in the object that the present invention carried;
Fig. 3 b is for forcing the process flow diagram of input function in the object that the present invention carried;
Fig. 3 c is the process flow diagram of the object moderate stimulation function that the present invention carried.
The figure number explanation
Step 200 is selected an object and is sent an installation order
Step 210 software execution environment is listened attentively to this installation order
Step 220 is set the storage address of this object
Step 230 sends an object code name to this object
This object of step 240 is obtained an object code name
Whether step 320 is differentiated this object and is existed
This object of step 330 deletion
Whether the input member function of this first object of step 420 inquiry and the output member function of this second object can link
This links record step 530 deletion
This output of step 620 inquiry member function has or not binding
Step 700 is sent one and is forced input command and require to carry secretly an input member function data
Step 710 software execution environment is listened attentively to this pressure input command
This output of step 720 inquiry member function has or not binding
Step 730 is carried out a corresponding output member function and is obtained data
Step 740 is carried out this input member function and input data
Step 800 sends one to stimulate order and requires to carry secretly an output member function data
Step 810 software execution environment is listened attentively to this stimulation order
This output of step 820 inquiry member function has or not binding
Step 830 informs that this object corresponds to an input member function data and change
Embodiment
See also shown in Figure 1ly, Fig. 1 is the process flow diagram of the outside constructive method that links of software execution environment utilization of the present invention, is described as follows:
At first define a software execution environment (step 100), after definition ends, see through this software execution environment device at least one object (step 110), then just see through the binding (step 120) between this software execution environment operation at least one object member function, at last by this object and binding configuration program (step 130), just process ends; Yet this software execution environment links function to reduce the complexity of revising software at device object functionality and operation member function.
And above-mentioned software execution environment is executive module basically with the object.A so-called object, it is the software configuration that is constituted by member variable and member function, identical in this employed definition with the employed definition of Object Oriented OO soft project, and the compute chip of software execution environment utilization special instruction, contain special instruction program language, contain the operating system of special service and contain the chained library institute constitutor of specific function, more comprise following function: installation function, removal function, binding function, cut-out function and operating function should cooperate the following icon to illustrate one by one.
Above-mentioned installation function is meant this object is mounted in this software execution environment so that carry out, and please refer to Fig. 2 a then, and Fig. 2 a is the process flow diagram of installation function in the software execution environment that the present invention carried.
At first select an object and send an installation order (step 200), then just see through a software execution environment and listen attentively to this installation order (step 210), and set the storage address (step 220) of this object, after finishing, setting just send an object code name to this object (step 230), and this object is obtained an object code name (step 240), and process ends.
Above-mentioned removal function is meant this object removal from this execution environment, stops its execution, please refer to Fig. 2 b then, and this figure is the process flow diagram of removal function in the software execution environment that the present invention carried.
At first select an object code name and assign a removal order (step 300), then a software execution environment is listened attentively to this removal order (step 310), differentiates this object then and whether has (step 320), if do not exist, then resumes step 310; If exist, just then directly delete this object (step 330), and process ends.
Above-mentioned binding function is meant to an input member function of two objects of major general and an output member function continuous, forms a binding, and please refer to Fig. 2 c, and this figure is the process flow diagram that links function in the software execution environment provided by the present invention.
At first selecting one of at least one first object to import one of member function and at least one second object exports the member function and assigns a connection commands (step 400), a software execution environment is listened attentively to this connection commands (step 410) then, then inquire about the input member function of this first object and the output member function of this second object again and whether can link (step 420), if can't link, then resumes step 410, if can link, then store this binding (step 430), send one at last and link record (step 440) and process ends.
Above-mentioned binding function can select one arbitrarily from the combination that binding one to one, one-to-many binding, multi-to-multi link; Can be and link function across between a plurality of these software execution environment, operating.
Above-mentioned cut-out function is meant is cut off a binding, and please refer to Fig. 2 d, and this figure is the process flow diagram that cuts off function in the software execution environment provided by the present invention.
At first, select one to link record and also send all disconnected orders (steps 500), then a software execution environment is listened attentively to this cut-outs order (step 510), and that inquires about then that this bindings notes down exists situation (step 520), and as if not existing, then resumes step 510; If exist, then delete this binding record (step 530), and process ends.
Above-mentioned operating function is meant the operation member function who calls out this object, and operates this object inside information.
Yet the above-mentioned member function who mentions has: export member function, input member function and operate three kinds of member functions.Exporting the member function in addition more includes:
The first output member function is meant without any need for parameter, merely the member function that the state transfer of this object is gone out; And
The second output member function accepts a special parameter, also is the member function the who merely state transfer of this object is gone out; And this special parameter is used by software execution environment, is used for informing the object that the second output member function links.
Input the member function more comprise:
The first input member function accepts a parameter, does not spread out of any data, and the data that this output member function of other this object is sent out is sent in the object own merely; And
The second input member function, accept two parameters, do not spread out of any data, the data merely this output member function of other object sent out of first system of parameters wherein, send in the object own, second parameter is to be used by this software execution environment, is used for informing the object that this this input member function links.
Operation member function major function is to allow this object accept the operation of direct command.
And object itself (comprising the member function that it has), except normal calculation function and function call, because therefore the support of execution environment has following three kinds of functions: force output function, force input function and stimulatory function.
Above-mentioned pressure output function is meant that this object proposes a requirement to this software execution environment, a specific output member function exports data from this object, if this output member function and another input member function form binding, software execution environment can be taken out data from output letter formula, and into the input letter formula of importing.If the member function who links is the aforesaid second output member function or the second input member function, then software execution environment also can be informed its object of connection at this moment; Then please refer to Fig. 3 a, this figure is a process flow diagram of forcing output function in the object proposed by the invention.
As shown in the figure, at first first object can send a pressure output command and require to carry secretly output member function's data (step 600), a software execution environment is listened attentively to this pressure output command (step 610) then, inquire about this output member function with that and have or not binding (step 620), if do not link, just resumes step 610; If binding is arranged, then first object is just carried out this output member function and obtained data (step 630), and is last, and second object is just carried out a corresponding input member function and imported data (step 640), and process ends.
Above-mentioned pressure input function is meant that this object is to this software execution environment requirement, a specific input member function is with data input from this object, if this input member function and another output member function form binding, software execution environment can be taken out data from output letter formula, and into the input letter formula of importing.If the member function who links is the aforesaid second output member function or the second input member function, then software execution environment also can be informed its object of connection at this moment; Then please refer to Fig. 3 b, this figure is a process flow diagram of forcing input function in the object proposed by the invention.
As shown in the figure, at first first object can send a pressure input command and require to carry secretly input member function's data (step 700), a software execution environment is listened attentively to this pressure input command (step 710) then, then inquire about this output member function and have or not binding (step 720), do not link if having, then resumes step 710; If binding is arranged, then second object just can begin to carry out a corresponding output member function and obtain data (step 730), and last first object just can be carried out this input member function and import data (step 740), and process ends.
Above-mentioned stimulatory function is meant that the contained data of this object itself changes, this object can be according to situation, to this software execution environment requirement, stimulate the specific formed binding of output member function, make object of connection find the change of these data, if the member function who links is the aforesaid second output member function or the second input member function, then execution environment also can be informed its object of connection at this moment; Then please refer to Fig. 3 c, this figure is the process flow diagram of the object moderate stimulation function that the present invention carried.
As shown in the figure, at first first object can send one stimulates order and requires to carry secretly output member function's data (step 800), then a software execution environment is listened attentively to this stimulation order (step 810), inquire about this output member function then and have or not binding (step 820), do not link if having, then resumes step 810; If binding is arranged, then second object can inform that just this object corresponds to an input member function data and change (step 830), and process ends.
The present invention discloses a kind of outside constructive method that links of software execution environment utilization of innovation in sum, it is in the shortcoming of improving prior art, as write period understanding: in writing period, the member function that each object all only needs understanding oneself just can reach the purpose of external communication; And nido structure: it all is to produce because of the demand that links that there are many nido structures in the past, so this method can reduce the quantity of this type of nido structure.
Enumerating an embodiment in order to effect of the present invention to be described at this, is that example is implemented it as this framework with a special main frame, and this main frame possesses network capabilities, is described below respectively:
1. this main frame is accepted user's operation, and this user can be the directory operator of this main frame, or the user who logins this main frame from the network other end.
2. this main frame possesses following four kinds of abilities:
A. install: use " main frame a installs (object) " order mounting object, allow the user directly in this main frame, to write object program, and install and carry out; Or from network remote upload object program, and install and carry out.
B. removal: use " main frame a removal (object) " order removal object, allow the user that from then on object is removed in the main frame, stop its execution.
C. link: the user can assign " main frame a links (the input end member function title of object A; the output member function title of object B) " order and give main frame, input member function with object A, connect together with the output member function of object B, and A and B can be in different main frames, and the network communication protocol of main frame is managed it thus.
D. cut off: the user can assign " main frame a cuts off (the input end member function title of object A, the output member function title of object B) " order and give main frame, will link cut-out.If this links across between two main frames, this cuts off order can manage it by the network communication protocol of main frame.
E. operation: the user can assign " main frame a operates (the operation member function title of object A, Argument List ...) ", and can fetch the passback value of this action.
3. be installed on the object of this main frame, can be with following three kinds of methods, requesting host starts following three kinds of abilities:
A. force output: with " main frame a request output (the output member function title of this object) " order, requesting host is obtained data from this title output member function of this object, and this data is passed to the input member function of another object that links opposite side.If this links across several main frames, then the data exchange is managed it by the communications protocol of main frame.
B. force input: with " main frame a request input (the input member function title of this object) " order, requesting host is from this title input opposite side that the member function linked of this object, the output member function of another object obtains data, and passes to this title member function of this object.If this links across several main frames, then the data exchange is managed it by the communications protocol of main frame.
C. stimulate: with " main frame a stimulates (the output member function title of this object) " order, the requesting host notice links owner's object of the input member function of opposite side, and this object is changing aspect this output member function's the output data.If this links across several main frames, then this notification action is managed it by the communications protocol of main frame.
4. in this give an example two contents of object and operating process.
A. button object:
// member data
Color C;
// operation member function
Void press (color cin)
C=cin;
Main frame a request output (output color);
}
// output member function
Color output color ()
return?C;
}
B. cresset object:
// member data
Color L;
// input member function
Void input color (color lin)
L=lin;
Cresset is shown;
}
C. we assign to issue orders, and just this two object can be installed in the main frame, press the green button then in button object, will allow the cresset object show green cresset:
A. main frame a installs (button object)
B. main frame a installs (cresset object)
C. main frame a binding (the cresset object. input color, button object. the output color)
D. main frame a operation (button object. press green)
E. it is green so can chainly to cause the cresset object to show.
Claims (10)
1, the outside constructive method that links of a kind of software execution environment utilization is characterized in that, uses a specific software to constitute pattern, is redefined at the connection relationship between object, and this method includes the following step:
Define a software execution environment;
See through this software execution environment device at least one object;
See through the binding between this software execution environment operation at least one object member function;
By this object and binding configuration program; And
Above-mentioned software execution environment links function to reduce the complexity of revising software at device object functionality and operation member function.
2, the outside constructive method that links of software execution environment utilization as claimed in claim 1, it is characterized in that, this software execution environment, the compute chip of utilization special instruction, the program language that contains special instruction, the chained library that contains the operating system of special service or contain specific function constitute, and more comprise following function: an installation function, a removal function, link function, a cut-out function and an operating function.
3, the outside constructive method that links of software execution environment as claimed in claim 2 utilization is characterized in that, this installation function refers to this object is mounted in this software execution environment so that carry out, and includes the following step:
Select this object and send an installation order;
This software execution environment is listened attentively to this installation order;
Set the storage address of this object;
Send an object code name to this object; And
This object is obtained an object code name.
4, the outside constructive method that links of software execution environment utilization as claimed in claim 2 is characterized in that this removal function refers to this object removal from this execution environment is stopped its execution, includes the following step:
Select an object code name and assign a removal order;
This software execution environment is listened attentively to this removal order;
Whether differentiate this object exists; And
Delete this object.
5, the outside constructive method that links of software execution environment utilization as claimed in claim 2, it is characterized in that, this binding function is meant at least one input member function of two objects of major general and at least one output member function continuous, forms a binding, includes the following step:
Select at least one output member function of at least one input member function of at least one first object and at least one second object and assign a connection commands;
This software execution environment is listened attentively to this connection commands;
Whether inquire about the input member function of this first object and the output member function of this second object can link;
Store this binding; And
Send one and link record.
6, the outside constructive method that links of software execution environment utilization as claimed in claim 5 is characterized in that this binding function can be across operating between a plurality of these software execution environment.
7, the outside constructive method that links of software execution environment utilization as claimed in claim 2 is characterized in that this cut-out function refers to a binding is cut off, and includes the following step:
Select one to link record and send all disconnected orders;
This software execution environment is listened attentively to this cut-out order;
Inquire about the situation that exists of this binding record; And
Delete this binding record.
8, the outside constructive method that links of software execution environment utilization as claimed in claim 2 is characterized in that this operating function is meant the operation member function who calls out this object, and operates this object inside information.
9, the outside constructive method that links of software execution environment utilization as claimed in claim 1, it is characterized in that this object the member function more comprise: an output member function refers to without any need for parameter, merely the member function that the state transfer of this object is gone out; One input member function, finger is subjected to a parameter, does not spread out of any data, and the data that this output member function of other this object is sent out is sent in the object own merely; Reach an operation member function, major function is to allow this object accept the operation of direct command.
10, the outside constructive method that links of software execution environment utilization as claimed in claim 1, it is characterized in that, this object more comprises one forces output function, wherein this pressure output function refers to that this object proposes a requirement to this software execution environment, a specific output member function exports data from this object, includes the following step:
Sending one forces output command and requires to carry secretly an output member function data;
This software execution environment is listened attentively to this pressure output command;
Inquire about this output member function and have or not binding;
Carry out this output member function and obtain data; And
Carry out a corresponding input member function and an input data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100487165A CN100342340C (en) | 2004-06-10 | 2004-06-10 | Constitution method for software execution environment operation external connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100487165A CN100342340C (en) | 2004-06-10 | 2004-06-10 | Constitution method for software execution environment operation external connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1707433A true CN1707433A (en) | 2005-12-14 |
CN100342340C CN100342340C (en) | 2007-10-10 |
Family
ID=35581371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100487165A Expired - Fee Related CN100342340C (en) | 2004-06-10 | 2004-06-10 | Constitution method for software execution environment operation external connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100342340C (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2242293A (en) * | 1990-01-05 | 1991-09-25 | Apple Computer | Apparatus and method for dynamic linking of computer software components |
GB2320111A (en) * | 1996-12-06 | 1998-06-10 | Jba Holdings Plc | Data processing system and method for software development/configuration |
WO2000067121A1 (en) * | 1999-04-29 | 2000-11-09 | Rutgers University | Distributed software development environment |
EP1224544A1 (en) * | 1999-08-16 | 2002-07-24 | Z-Force Corporation | System of reusable software parts for implementing concurrency and hardware access, and methods of use |
US7287252B2 (en) * | 2002-09-27 | 2007-10-23 | The United States Of America Represented By The Secretary Of The Navy | Universal client and consumer |
-
2004
- 2004-06-10 CN CNB2004100487165A patent/CN100342340C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN100342340C (en) | 2007-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1773456A (en) | Automatic mounting system and method for printer driving program | |
CN1852101A (en) | Parallel downloading method and terminal | |
CN101042649A (en) | Configuring information processing method and arrangement, and platform system | |
CN1517851A (en) | Printing control device, printing control system and printing control method | |
CN100341281C (en) | Method for realizing task management for network system | |
CN1737779A (en) | Method and system for expanding peripherals | |
CN1378173A (en) | Network equipment management device, program, information stove medium and network equipment management method | |
CN1828541A (en) | Implementation method for timing task in Java operating system | |
CN1728023A (en) | Energy efficient achievement of integrated circuit performance goals | |
CN1248453C (en) | Method for realtime synchronisation of net element and telecommunication system | |
CN1866283A (en) | System and method for implementing regular system triggering | |
CN1467620A (en) | Data processing device | |
CN100351809C (en) | Device and method for implementing intelligent agent in monitoring system | |
CN1549130A (en) | Method of document synchronization | |
CN101080015A (en) | System and method for uploading third party video and audio content in IPTV system | |
CN1637708A (en) | Compilation method, compiler apparatus and compiler program | |
CN100342340C (en) | Constitution method for software execution environment operation external connection | |
CN1863085A (en) | Method and system for ensuring network managment and element configuration data consistency | |
CN1811709A (en) | Infinite update method and apparatus for operating system in hand-held equipment | |
CN1858709A (en) | Method and device for co-ordinating executing sequence facing user function | |
CN1167230C (en) | Communication system, communication control apparatus and method | |
CN1202467C (en) | Method of creating plurality of partitions on removable device | |
CN1614933A (en) | Method for updating system apparatus | |
CN1190743C (en) | Data processing device, task processing method, information processing apparatus and method and programme | |
CN101067853A (en) | On-line modular system and method for assisting examination and approval of countryside homestead |
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: 20071010 Termination date: 20100610 |