Summary of the invention
For achieving the above object, the invention provides and a kind ofly can dynamically be written into the method for a programmed logic in an application program, it comprises following steps:
(a) a client launch computer one application program, and a requirement is proposed;
(b) server receives this requirement, and require transmission one status file to this client computer according to this, this status file comprises a programmed logic file name, an and programmed logic file address, wherein this programmed logic file address is corresponding to a storage device, this storage device has been deposited the pairing programmed logic file of this programmed logic file name, and this programmed logic file comprises the required programmed logic of this application program of execution;
(c) this client computer receives this status file;
(d) this client computer claims pairing programmed logic file address according to program logical file name in this status file, is connected to this pairing storage device in programmed logic file address, to download the pairing programmed logic file of this programmed logic file name; And
(e) this client computer programmed logic of resolving this programmed logic file is carried out this application program according to the programmed logic in this programmed logic file.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this storage device is an external server.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this server comprises this storage device in addition.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer comprises a client storage device in addition, is used for storing this status file.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer comprises a client storage device in addition, is used for storing this programmed logic file.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer comprises a program interpreter in addition, and when this this application program of client launch computer, can carry out the original program logic in the original program logical file simultaneously, in step (e), this program interpreter can be carried out the following step:
Resolve the programmed logic of this programmed logic file;
Stop the original program logic of this original program logical file; And
Carry out the programmed logic of this programmed logic file, to finish the execution of this application program.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer can replace this original program logical file with the programmed logic file that is received.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer comprises a program interpreter in addition, and in step (e), this program interpreter can be carried out the following step:
Resolve the programmed logic of this programmed logic file; And
Carry out the programmed logic of this programmed logic file, to finish the execution of this application program.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this status file comprises a timer in addition, is used for regularly driving this client computer, with execution in step (a) and (e).
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this status file comprises a timer in addition, is used for regularly driving this client computer, with execution in step (a), (d) and (e).
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer comprises one in addition and drives module, is used for driving this client computer, with execution in step (a) and (e).
The present invention also provides a kind of can dynamically be written into the method for a programmed logic in an application program, and it comprises following steps:
(a) a client launch computer one application program, and a requirement is proposed, wherein when this this application program of client launch computer, can carry out one first programmed logic simultaneously, and this client computer comprises one first programmed logic file, and it comprises this first programmed logic, and one first status file, it comprises a first version identification code, corresponding to this first programmed logic file;
(b) server receives this requirement, and require transmission one second status file to this client computer according to this, this second status file comprises a programmed logic file name, one programmed logic file address, and one second version recognition code, wherein this programmed logic file address is corresponding to a storage device, this storage device has been deposited the pairing second programmed logic file of this programmed logic file name, and this second programmed logic file comprises the second required programmed logic of this application program of execution, and this second version recognition code is corresponding to this second programmed logic;
(c) this client computer receives this second status file;
(d) this client computer judges whether this second version recognition code is same as this first version identification code, if, then finish, and this client computer can be carried out this application program according to this first programmed logic, if not, execution in step (e) then;
(e) this client computer claims pairing programmed logic file address according to program logical file name in this second status file, be connected to this pairing storage device in programmed logic file address, to download the pairing second programmed logic file of this programmed logic file name; And
(f) this client computer is resolved second programmed logic of this programmed logic file and is carried out this application program according to second programmed logic in this second programmed logic file.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this storage device is an external server.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this server comprises this storage device in addition.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer can replace this second status file this first status file.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer comprises a program interpreter in addition, and in step (f), this program interpreter can be carried out the following step:
Resolve second programmed logic of this second programmed logic file;
Stop this first programmed logic; And
Carry out second programmed logic of this second programmed logic file, to finish the execution of this application program.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer replaces this first programmed logic file with this second programmed logic file.
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this status file comprises a timer in addition, is used for regularly driving this client computer, with execution in step (a) and (f).
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this status file comprises a timer in addition, is used for regularly driving this client computer, with execution in step (a), (e) and (f).
Describedly can dynamically be written into the method for a programmed logic in an application program, it is characterized in that: this client computer comprises one in addition and drives module, is used for driving this client computer, with execution in step (a) and (f).
The present invention also provides a kind of can dynamically be written into the system of a programmed logic in an application program, and it comprises:
One server comprises:
One server stores device, this server stores device is used for storing most status files, each status file comprises a programmed logic file name, an and programmed logic file address, wherein this programmed logic file address is corresponding to a storage device, this storage device has the pairing programmed logic file of this programmed logic file name, and this programmed logic file comprises the required programmed logic of execution one application program;
One client computer comprises:
One client storage device is used for depositing this application program;
One starts module, is used for starting this application program;
One communication module group is used for receiving the status file that transmits from this server;
One downloads module, be used for according to the pairing programmed logic of this programmed logic file name file address in this status file, be connected to this pairing storage device in programmed logic file address, to download the pairing programmed logic file of this programmed logic file name; And
One carries out module, is used for carrying out this application program according to the programmed logic in this programmed logic file;
One drives module, is used for driving this startup module, this communication module group, and this is downloaded module and should carry out module; And
One program interpreter is deposited in this client storage device, is used for resolving the programmed logic of the programmed logic file that is received, and carries out the programmed logic in this programmed logic file, to finish the execution of this application program.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this storage device is an external server.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: storage device is this server stores device.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this client computer is that the status file that is received is deposited in this client storage device.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this client computer is in this client storage device with this programmed logic document storage.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this client computer comprises an original program logical file in addition, deposit in this client storage device, this original program logical file comprises an original program logic, and when the startup module of this client computer starts this application program, can carry out the original program logic in this original program logical file simultaneously, and this program interpreter can be resolved the programmed logic of the programmed logic file that is received, stop this original program logic, to finish the execution of this application program.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this client computer is to replace this original program logical file with the programmed logic file that is received.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this status file comprises a timer in addition, is used for regularly driving the startup module of this client computer, and communication module group is downloaded module, and carries out module.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this status file comprises a timer in addition, is used for regularly driving the startup module of this client computer, downloads module, and carries out module.
The present invention also provides a kind of can dynamically be written into the system of a programmed logic in an application program, and it comprises:
One server comprises:
One server stores device, this server stores device is used for storing most second status files, each second status file comprises a programmed logic file name, one programmed logic file address, and one second version recognition code, wherein this programmed logic file address is corresponding to a storage device, this storage device has the pairing second programmed logic file of this programmed logic file name, and this second programmed logic file comprises the second required programmed logic of execution one application program, and this second version recognition code is corresponding to the second programmed logic file;
One client computer comprises:
One client storage device is used for depositing this application program, one first programmed logic file, and one first status file, wherein this first programmed logic file comprises one first programmed logic, and this first status file, comprise a first version identification code, corresponding to this first programmed logic file;
One starts module, is used for starting this application program, when this application program launching, is to carry out this first programmed logic simultaneously wherein;
One communication module group is used for receiving second status file that transmits from this server;
One downloads module, be used for according to the pairing programmed logic of this programmed logic file name file address in this second status file, be connected to this pairing storage device in programmed logic file address, to download the pairing second programmed logic file of this programmed logic file name;
One carries out module, is used for carrying out this application program according to this first or second programmed logic; And
One judges module, be used for judging whether this second version recognition code is same as this first version identification code, if, then drive this execution module and carry out this application program according to this first programmed logic, if not, then drive this download module, to download the pairing second programmed logic file of this programmed logic file name, and drive this execution module, carry out this application program with second programmed logic in the second programmed logic file of being downloaded according to this;
One drives module, is used for driving this startup module, this communication module group, and this downloads module, this is carried out module and should judge module; And
One program interpreter, deposit in this client storage device, be used for resolving second programmed logic of this second programmed logic file, stop this first programmed logic, and second programmed logic of carrying out this second programmed logic file, to finish the execution of this application program.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this storage device is an external server.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this storage device is this server stores device.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: when this first version identification code and this second version recognition code not simultaneously, this client computer can replace this first programmed logic file with the second programmed logic file of being downloaded.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: when this first version identification code and this second version recognition code not simultaneously, this client computer can replace this first status file with second status file that is received.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this second status file comprises a timer in addition, is used for regularly driving the startup module of this client computer, communication module group, download module, judge module, and carry out module.
Describedly can dynamically be written into the system of a programmed logic in an application program, it is characterized in that: this second status file comprises a timer in addition, is used for regularly driving the startup module of this client computer, downloads module, and carries out module.
Compared to known techniques, of the present inventionly a kind ofly can dynamically be written into the method and system of a programmed logic in an application program, the client computer of this system dynamically the loader logic in application program, that is to say and do not comprise programmed logic in the application program, but download required programmed logic from server or external server, by downloading different programmed logics, make application program produce different execution results.Therefore, the client computer need not to upgrade application program because of the expansion of programmed logic or change, also need not to deposit a plurality of application programs with distinct program logic to produce different execution results, has brought convenience for the user thus.
The invention embodiment
In the present invention, the programmed logic of application program is to deposit in the server.When client computer executive utility, the client computer can propose a requirement to server, and server can provide the client computer required programmed logic according to this requirement.
Referring to figs. 1 to Fig. 3.Fig. 1 is first embodiment of system 10 of the present invention.Fig. 2 is the synoptic diagram of the status file 18 of system 10.Fig. 3 is the synoptic diagram of the programmed logic file 48 of system 10.System 10 comprises a server 12, one client computers 14, and most external servers 16.
Each external server 16 comprises a storage device 22.Client computer 14 comprises a client storage device 24, have a program interpreter 26, in it and drive module 28, one application programs 30, one startup modules 32, one communication module group 34 download modules 36, and one carries out module 38.Server 12 comprises a server stores device 20, and this server stores device 20 is used for storing most status files 18, deposits in storage device 20.Each status file 18 comprises a programmed logic file name 40, one programmed logic file addresses 42, one first timers 44, and a second timer 46.
Programmed logic file address 42 is the precalculated positions corresponding to storage device 20 or 22, and storage device 20 or 22 computer program stored logical file titles, 40 pairing programmed logic files 48, and programmed logic file 48 comprises the required programmed logic 49 of executive utility 30.
With reference to figure 4.Fig. 4 is first embodiment of the inventive method 50.Method 50 comprises the following step:
Step 401: the startup module 32 of client computer 14 starts application program 30, and proposes a requirement;
Step 402: server 12 receives this requirement, and requires transmission one status file 18 to client computer 14 according to this;
Step 403: the communication module group 34 accepting state files 18 of client computer 14;
Step 404: the download module 36 of client computer 14 is according to the programmed logic file address 42 in the status file 13, be connected to programmed logic file address 42 pairing storage devices 20 or 22, to download programmed logic file name 40 pairing programmed logic files 48; And
Step 405: the programmed logic 49 in the execution module 38 amenable to process logical files 48 of client computer 14 comes executive utility 30.
With reference to figure 5.Fig. 5 is the decipher process flow diagram of program interpreter 26.When client computer 14 has an original program logical file (not shown) and when starting module 32 and starting application programs 30, client computer 14 can come executive utility 30 according to the original program logic in the original program logical file earlier, and in step 405,26 of program interpreters can be carried out the following step:
Step 501: the programmed logic 49 of analysis program logical file 48;
Step 502: the original program logic that stops the original program logical file; And
Step 503: the programmed logic 49 of executive routine logical file 48 makes the execution module 38 of client computer 14 amenable to process logic 49 to come executive utility 30.
In addition, client computer 14 can be stored in client storage device 24 with status file 18, and programmed logic file 48 is stored in client storage device 24 to replace the original program logical file.
Program interpreter 26 can be contained in the operating system of client computer 14, perhaps is contained in the application program 30.
In the present invention, program interpreter 26 is a browser engine (HTML engine).Browser engine can be used for showing the data of html format, also can be used as the interpreter of Script language and DHTML language.Therefore, the programmed logic of application program 30 is to use the Script language to design, and uses the DHTML language to do presenting of object and content effect.
Browser engine can be the seeker Microsoft Explore of Microsoft, and the operating system of client computer 14 can be Microsoft windows.
With reference to figure 6.Fig. 6 is another decipher process flow diagram of program interpreter 26.When client computer 14 does not have any original program logical file and when downloading module 36 and having downloaded logical file 48, in step 405, program interpreter 26 can be carried out the following steps:
Step 601: the programmed logic 49 of analysis program logical file 48; And
Step 602: the programmed logic 49 of executive routine logical file 48 makes the execution module 38 of client computer 14 amenable to process logic 49 to come executive utility 30.
In addition, client computer 14 can be stored in client storage device 24 with status file 18 and programmed logic file 48.When client computer 14 once more during manner of execution 50, stored programmed logic file 48 can be taken as the original program logical file.Therefore, when starting module 32 startup application programs 30, client computer 14 can come executive utility 30 according to the programmed logics 49 in the stored programmed logic file 48 earlier.
Status file 18 can be a unique file and deposits in the client computer 14, also can be present in the registration shelves of operating system.
Most status files 18 of server 12 are to correspond respectively to different programmed logics can allow application program 30 produce different execution results.And server 12 can select to be sent to the status file 18 of client computer 14 voluntarily, with the execution result of controlling application program 30.That is to say that when 14 propositions one of client computer required, server 12 can come the execution result of controlling application program 30 via the status file that is transmitted.
The first timer 44 of status file 18 can regularly drive client computer 14 with manner of execution 50 once more.Server 12 can transmission one new status file to client computer 14, make client computer 14 to download a new programmed logic file, so application program 30 can be finished execution according to new programmed logic to another storage devices.
Server 12 can be controlled client computer 14 by setting first timer 44, regularly to be written into different programmed logics, makes application program can carry out out different results.For example, client computer 14 is downloaded a kind of programmed logic in the morning the time and is come executive utility 30, to produce a kind of stock handset that can show the stock immediate market information, server 12 can utilize first timer 44 to control client computer 14 then, download another kind of programmed logic when making it in the afternoon and come executive utility 30, to produce a kind of stock analysis machine that can show that the deep bid index is resolved.That is to say, the programmed logic that produces stock handset is to leave different storage devices in the programmed logic that produces the stock analysis machine, therefore server 12 can utilize first timer 44 to control client computer 14 and download new programmed logic in a schedule time to another storage device, to produce different execution results.In this example, client computer 14 can show stock handsets in the time of in the morning, and stock handset can be changed into the stock analysis machine automatically in the afternoon the time.
The second timer 46 of status file 18 can regularly drive the startup module 32 of client computer 14, downloads module 36, and carries out module.Client computer 14 can be downloaded a new programmed logic file to same storage device, so application program 30 can be finished execution according to new programmed logic.
Server 12 can regularly carry out version updating to the programmed logic file in the same storage device, so server 12 can control client computer 14 by setting second timer 46, makes it regularly be written into the programmed logic of new edition.For example, client computer 14 is downloaded first kind of programmed logic in the morning the time and is come executive utility 30, to produce a kind of stock handset, and server 12 can be changed into first kind of programmed logic second kind of programmed logic in the afternoon, and utilize second timer 46 to control client computer 14, the client computer can come executive utility 30 to second kind of programmed logic of same storage device download when making in the afternoon, to produce the stock analysis machine.That is to say, the programmed logic that produces stock handset is to leave identical storage device in the programmed logic that produces the stock analysis machine, and the programmed logic that server 12 meetings will produce stock handset in a schedule time is changed into the programmed logic that produces the stock analysis machine, therefore server 12 can utilize second timer 46 to control client computer 14 and download new programmed logic in a schedule time to identical storage device, to produce different execution results.In this example, client computer 14 can show stock handsets in the time of in the morning, and stock handset can be changed into the stock analysis machine automatically in the afternoon the time.
The driving module 28 of client computer 14 is to be used for driving client computer 14 with manner of execution 50 once more.When the user starts driving module 28, for example by next figure button, client computer 14 can occur one earlier and select picture, the user can select the execution result of application program 30, for example little artist (having drawing function), little writer (having the document processing capacity), computing machine (having computing function), stock handset, stock analysis machine, communication machine (be used for transmission electronic information), and constellation forum (being used to provide the constellation relevent information) machine or the like.Client computer 14 can start application program 30 afterwards, and proposes a requirement to server 12.And in 12 requirements of 14 pairs of servers of client computer, comprise the relevent information of this selection.Therefore, server 12 can transmit a particular state file to client computer 14 according to user's selection (not shown), make client computer 14 to download specific programmed logic file, to produce the required execution result of user to specific storage device.
That is to say that most status files 18 of server 12 are to correspond respectively to different programmed logics can allow application program 30 produce different execution results.Therefore, server 12 can transmit specific status file 18 to client computer 14, to meet user's demand according to 14 requirements of client computer.
With reference to figure 7 and Fig. 8.Fig. 7 is second embodiment of system 60 of the present invention.Fig. 8 is the synoptic diagram of second status file 66 of system 60.System 60 is that with the main difference part of system 10 client computer 64 comprises one first programmed logic file 68 in addition, and one first status file 70.The first programmed logic file 68 comprises one first programmed logic (not shown).First status file 70 comprises a first version identification code (not shown), corresponding to the first programmed logic file 68.Second status file 66 of server 62 comprises one second version recognition code 72 in addition.In addition, client computer 64 comprises one in addition and judges module 74, is used for judging whether second version recognition code 72 of second status file 66 that transmits from server 62 is same as the first version identification code of first status file 70.
With reference to figure 9.Fig. 9 is second embodiment of the inventive method 80.Method 80 comprises the following step:
Step 801: the startup module 32 of client computer 64 starts application program 30 and proposes a requirement, and at this moment, 64 meetings of client computer come executive utility 30 according to first programmed logic of the first programmed logic file 68 earlier;
Step 802: server 62 receives this requirement, and requires transmission one second status file 66 to client computer 64 according to this;
Step 803: the communication module group 34 of client computer 64 receives second status file 66;
Step 804: the module 74 of judging of client computer 64 judges whether second version recognition code 72 of second status file 66 that is received is same as the first version identification code of first status file 70 that is stored in client computer 64, if, then ending method 80, and client computer 64 can continue to come executive utility 30 according to first programmed logic, if not, then execution in step 805;
Step 805: the download module 36 of client computer 64 is according to the programmed logic file address 42 of second status file 66, be connected to programmed logic file address 42 pairing storage devices 20 or 22, to download the programmed logic file name 40 pairing second programmed logic file (not shown)s;
Step 806: the program interpreter 26 of client computer 64 is resolved second programmed logic of the second programmed logic file;
Step 807: the program interpreter 26 of client computer 64 stops first programmed logic; And
Step 808: second programmed logic that the program interpreter 26 of client computer 64 is carried out after resolving makes the execution module 38 of client computer 64 to come executive utility 30 according to second programmed logic.
Second version recognition code 72 also can be the update time of file except can being illustrated in figure 8 as a version number.And update time is late more, and the version of file is new more.The first version identification code also is like this.
Method 80 is with the main difference of method 50, method 80 can utilize version recognition code to judge whether the second programmed logic file is a newer version, only during newly in the first programmed logic file 68, just can download new programmed logic file at the second programmed logic file.If, the version of the second programmed logic file is not newly in the first programmed logic file 68, client computer 64 can continue to come executive utility 30 according to first programmed logic of the first programmed logic file 68 so, and can not download the second programmed logic file.
In addition, when second version recognition code is different from the first version identification code and has downloaded the second programmed logic file, client computer 64 can be stored in second status file 66 that is received in the client storage device 24, replacing first status file 70, and the second programmed logic file of being downloaded replaced the first programmed logic file of originally depositing in the client storage device 24 68.
In system 10 of the present invention and 60, server 12,62 can utilize timer to come the execution result of controlling application program 30, for example, server 12,62 can be controlled client computer 14,64 and show a stock handset in the morning, in the afternoon stock handset is changed into the stock analysis machine automatically then.
In addition, server 12,62 also can be controlled the application program 30 of client computer 14,64, to produce a stock analytical engine, and then utilize timer to come controlling application program 30 to produce computing machine and communication machine respectively, therefore the user not only can browse the shown information of stock analysis machine, can also utilize computing machine to carry out some financings simultaneously and calculate, and utilize communication machine and relatives and friends to get in touch with simultaneously and link up relevant stock information.That is to say, server 12,62 can utilize timer to control client computer 14,64, make application program 30 can produce multiple execution result, so the user of client computer 14,64 can use stock analysis machine, computing machine and communication machine simultaneously.
The user of client computer 14,64 also can utilize driving module 28 to select required application program 30 execution results.For example, in the time of in the afternoon, server 12,62 can produce the stock analysis machine by control client computer 14,64, and the user can utilize driving module 28 to select execution result, to produce computing machine and communication machine respectively, therefore the user not only can browse the shown information of stock analysis machine, can also utilize computing machine to carry out some financings simultaneously and calculate and utilize communication machine and relatives and friends to get in touch with the relevant stock information of communication simultaneously.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to claim scope of the present invention change and modify, and all should belong to the covering scope of patent of the present invention.