Summary of the invention
In view of this, the object of the invention is to provide a kind of intelligent algorithm disposal system, to solve conventional algorithm functions of modules curing in the prior art, the problem that can not revise.
For realizing above-mentioned purpose, the invention provides a kind of intelligent algorithm disposal system, comprise the developing engine and the execution machine that are connected;
Said developing engine comprises the algoritic module storehouse of control module, collector, human-computer interaction interface, storage intelligent algorithm module; And the configuration module library of storage sets morphotype piece; Said human-computer interaction interface comprises with the user and carries out the mutual editing interface of edit file; Carry out the mutual configuration interface of configuration info with the user; And the command input interface of reception user operational order; Intelligent algorithm module id and conventional algorithm executable code that said configuration interface comprises in the said algoritic module storehouse identify accordingly, and said configuration info comprises the relation between the relation between the said intelligent algorithm module id, said sign and the said intelligent algorithm module id, and at least a in the relation between the said sign; Said operational order comprises that algorithm selection instruction, algorithm edit instruction, algorithm are held instruction, algorithm compiler directive, configuration selection instruction, and the configuration compiler directive;
After said control module receives the said algorithm selection instruction of user input in said command input interface,, and offer editing interface and appear from the corresponding intelligent algorithm module of said algoritic module library call;
Receive the algorithm edit instruction of user's input in said command input interface after, corresponding intelligent algorithm module is edited;
After the said algorithm that said command input interface receives user input is held instruction, with the intelligent algorithm module stores behind the editor to said algoritic module storehouse;
Receive the said algorithm compiler directive of user's input in said command input interface after; Obtain corresponding intelligent algorithm module from said algoritic module storehouse, control said collector and become the intelligent algorithm executable code to be handed down to said execution machine so that said execution machine is stored and/or called the intelligent algorithm module compiles that gets access to;
Receive the said configuration selection instruction of user's input in said command input interface after, call corresponding configuration module, and indication configuration interface presents the algoritic module configuration mode that said configuration module is stored from said configuration module library;
Receive the said configuration compiler directive of user's input in said command input interface after; Obtain configuration info from said configuration interface; Controlling said collector is compiled into file destination with said configuration info and is handed down to said execution machine; So that said execution machine is stored said file destination, and/or call corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to said file destination.
Preferably, said execution facility have controller, and said controller comprises:
The executable code storage unit is used to store said intelligent algorithm executable code and conventional algorithm executable code;
The file destination storage unit is used to store said file destination;
Processor; Link to each other with said file destination storage unit with said executable code storage unit respectively; Be used to call said intelligent algorithm executable code, perhaps call corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to said file destination.
Preferably, said execution machine also has serial port board, slave controller, and from serial port board;
Said controller links to each other with said serial port board;
Said slave controller links to each other from serial port board with said.
Preferably, said execution machine also comprises the I/O passage, and it reaches with said serial port board and links to each other from serial port board.
Preferably, said I/O passage comprises analog quantity IO channel and digital input and output channel.
Preferably, said I/O passage is connected with field apparatus through hardwire.
Preferably, said developing engine is joined the Ethernet network interface and is connected said execution machine.
Preferably, said controller, serial port board, slave controller, and all adopt blade type fastener structure from serial port board.
For realizing above-mentioned purpose; The present invention also provides a kind of intelligent algorithm disposal route; Based on the intelligent algorithm disposal system, said intelligent algorithm disposal system comprises developing engine and the execution machine that is connected, and said developing engine comprises the algoritic module storehouse of control module, collector, storage intelligent algorithm module; And the configuration module library of storage sets morphotype piece, said method comprises:
After receiving the algorithm selection instruction of user input, said control module is from the corresponding intelligent algorithm module of algoritic module library call, and offers said human-computer interaction interface and appear;
Behind the algorithm edit instruction that receives user's input, corresponding intelligent algorithm module is edited;
After the algorithm that receives user's input is held instruction, the intelligent algorithm module stores after said control module will be edited to said algoritic module storehouse;
Behind the said algorithm compiler directive that receives user's input; Obtain corresponding intelligent algorithm module from said algoritic module storehouse, control said collector and become the intelligent algorithm executable code to be handed down to said execution machine so that said execution machine is stored and/or called the intelligent algorithm module compiles that gets access to;
Receive the configuration selection instruction of user input in said command input interface after, call corresponding configuration module from the configuration module library, and offer said human-computer interaction interface and appear;
Receive the configuration compiler directive of user's input in said command input interface after; Obtain configuration info from said configuration interface; Controlling said collector compiles said configuration info; And will compile the file destination that generates and be handed down to said execution machine through said; Said configuration info comprises the relation between the relation between the said intelligent algorithm module id, said sign and the said intelligent algorithm module id, and at least a in the relation between the said sign, so that said execution machine calls corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to said file destination.
For realizing above-mentioned purpose, the present invention also provides a kind of intelligent algorithm disposal route, and based on the intelligent algorithm disposal system, said intelligent algorithm disposal system comprises developing engine and the execution machine that is connected;
Said execution machine comprises and stores the conventional algorithm executable code and from the intelligent algorithm executable code of said developing engine, storage is from the file destination storage unit of the file destination of said developing engine, and processor;
Said intelligent algorithm executable code is formed the intelligent algorithm module compiles after editing by the algorithm compiler directive of said developing engine according to user's input, and the intelligent algorithm module behind the said editor is formed intelligent algorithm module editor by the algorithm edit instruction of said developing engine according to user's input;
Compiling forms said file destination according to configuration info by said developing engine; Said configuration info comprises the relation between the said intelligent algorithm module id, the said conventional algorithm executable code relation between corresponding sign and the said intelligent algorithm module id in said developing engine, and at least a in the relation between the said sign;
Said method comprises:
Call said intelligent algorithm executable code, perhaps call corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to said file destination.
Intelligent algorithm disposal system of the present invention adopts double-deck hardware configuration; Developing engine and execution machine are provided; The editor and the translation and compiling environment of the intelligent algorithm code that developing engine is provided convenience for the user; The user can write intelligent algorithm by the application demand of industry spot, and each intelligent object can reuse and revise after writing preservation, has avoided the drawback of a large amount of code rewritings simultaneously.
Further; The user can carry out configuration with the conventional algorithm module that intelligent algorithm module and system provide at the configuration interface; Make conventional algorithm module that intelligent algorithm module and system provide in the industry spot application that cooperatively interacts, thereby more effectively improve the advanced application power of intelligent algorithm in reality.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The object of the invention is to provide a kind of intelligent algorithm disposal system, to solve conventional algorithm functions of modules curing in the prior art, the problem that can not revise.
Fig. 1 shows a kind of structure of said system; Comprise the developing engine 100 and execution machine 200 that are connected; Developing engine 100 comprises algoritic module storehouse 110, the configuration module library 120 of storage sets morphotype piece, human-computer interaction interface 130, the collector 140 of storage intelligent algorithm module; And control module 150; Human-computer interaction interface 130 comprises with the user and carries out the mutual editing interface of edit file 131; Carry out the mutual configuration interface 132 of configuration info with the user, and receive the command input interface 133 of user's operational order, intelligent algorithm module id and conventional algorithm executable code that configuration interface 132 comprises in the said algoritic module storehouse identify accordingly; Above-mentioned configuration info comprises the relation between the relation between the above-mentioned intelligent algorithm module id, above-mentioned sign and the above-mentioned intelligent algorithm module id; And at least a in the relation between the above-mentioned sign, the aforesaid operations instruction comprises that algorithm selection instruction, algorithm edit instruction, algorithm are held instruction, algorithm compiler directive, configuration selection instruction, and the configuration compiler directive;
Control module 150 is called corresponding intelligent algorithm module after receiving the above-mentioned algorithm selection instruction of user input in command input interface 133 from algoritic module storehouse 110, and offers editing interface 131 and appear;
Receive the above-mentioned algorithm edit instruction of user's input in command input interface 133 after, corresponding intelligent algorithm module is edited;
After the above-mentioned algorithm that command input interface 133 receives user input is held instruction, with the intelligent algorithm module stores behind the editor to algoritic module storehouse 110;
Receive the above-mentioned algorithm compiler directive of user's input in command input interface 133 after; Obtain corresponding intelligent algorithm module from algoritic module storehouse 110, control collector 140 becomes the intelligent algorithm executable code to be handed down to execution machine 200 so that execution machine 200 is stored and/or called the intelligent algorithm module compiles that gets access to;
Receive the above-mentioned configuration selection instruction of user's input in command input interface 133 after, call corresponding configuration module from configuration module library 120, and indication configuration interface 132 presents the algoritic module configuration mode that above-mentioned configuration module is stored;
Receive the above-mentioned configuration compiler directive of user's input in command input interface 133 after; Obtain configuration info from configuration interface 132; Control collector 140 is compiled into file destination with above-mentioned configuration info and is handed down to execution machine 200; So that execution machine 200 is stored above-mentioned file destination, and/or calls corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to above-mentioned file destination.
Wherein, the intelligent algorithm module that the algoritic module storehouse 110 that is used to store the intelligent algorithm module comprises sky intelligent algorithm module and editor after preserving.Therefore, the user can call an empty intelligent algorithm module by the application demand of industry spot, and oneself writes intelligent algorithm, and the intelligent algorithm module after editor's preservation can be reused; In addition, the user can also call the intelligent algorithm module after editor preserves, and the intelligent algorithm module is made amendment to be suitable for the variation of industry spot.
Comprise the sign of intelligent algorithm module in the algoritic module storehouse and the conventional algorithm module id that system provides on the configuration interface 132; The user can carry out configuration with intelligent algorithm module and conventional algorithm module according to the application demand algorithm configuration mode that 132 use configuration modules provide at the configuration interface of industry spot.
Collector 140 will compile the intelligent algorithm executable code and the file destination that generate and be handed down to execution machine 200 through network system; But the download user program after the conventional algorithm configuration that the intelligent algorithm that above-mentioned file destination is write according to the application demand of industry spot for the user and system provide, but the execution of execution machine 200 basis download user programmed control intelligent algorithms.
Need to prove that in practical application, the intelligent algorithm that the user edits can directly be handed down to the execution machine after compiling, the execution machine is carried out the intelligent algorithm executable code immediately; The intelligent algorithm that the user edits can directly be handed down to the execution machine after compiling, the execution machine calls corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to above-mentioned file destination, carries out intelligent algorithm immediately; The intelligent algorithm that the user edits is handed down to the execution machine after compiling; The execution machine is stored the intelligent algorithm executable code; Do not carry out the intelligent algorithm executable code immediately, when the user needed execution algorithm, the execution machine was directly carried out the intelligent algorithm executable code of storage; The intelligent algorithm that the user edits is handed down to the execution machine after compiling; The execution machine is stored the intelligent algorithm executable code; Do not carry out the intelligent algorithm executable code immediately; When the user needs execution algorithm, call corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to above-mentioned file destination, those skilled in the art can select said method according to actual conditions flexibly.
Can find out by technique scheme; Intelligent algorithm disposal system of the present invention adopts double-deck hardware configuration; Developing engine and execution machine are provided, the editor and the translation and compiling environment of the intelligent algorithm code that developing engine is provided convenience for the user, the user can write intelligent algorithm by the application demand of industry spot; And each intelligent object can be reused and revised after writing preservation, has avoided the drawback of a large amount of code rewritings.
Further; The user can carry out configuration with the conventional algorithm module that intelligent algorithm module and system provide at the configuration interface; Make conventional algorithm module that intelligent algorithm module and system provide in the industry spot application that cooperatively interacts, thereby more effectively improve the advanced application power of intelligent algorithm in reality.
Fig. 3 shows the another kind of structure of developing engine 100 in the system, and developing engine 100 similar with in the said system comprise algoritic module storehouse 110, configuration module library 120, human-computer interaction interface 130, collector 140, and control module 150; Wherein human-computer interaction interface 130 comprises editing interface 131, configuration interface 132 and command input interface 133, and each component function of developing engine in above-mentioned each functions of components and the said system is similar.
For further optimisation technique scheme, editing interface 131 is linked to each other with algoritic module storehouse 110, collector 140 respectively, configuration interface 132 links to each other with configuration module library 120, collector 140 respectively;
After control module 150 received the above-mentioned algorithm selection instruction of user's input in command input interface 133, control editing interface 131 obtained corresponding intelligent algorithm module from algoritic module storehouse 110, appeared by editing interface 131;
Control module 150 is edited corresponding intelligent algorithm module after receiving the above-mentioned algorithm edit instruction of user's input in command input interface 133;
Control module 150 after the above-mentioned algorithm that command input interface 133 receives user input is held instruction, with the intelligent algorithm module stores behind the editor to algoritic module storehouse 110;
After control module 150 receives the above-mentioned algorithm compiler directive of user's input in command input interface 133; Obtain the intelligent algorithm module behind the editor from editing interface 131, control collector 140 becomes the intelligent algorithm executable code to be handed down to execution machine 200 so that execution machine 200 is stored and/or called the intelligent algorithm module compiles that gets access to;
Control module 150 is called corresponding configuration module after receiving the above-mentioned configuration selection instruction of user's input in command input interface 133 from configuration module library 120, and indication configuration interface 132 presents the algoritic module configuration mode that above-mentioned configuration module is stored;
After control module 150 received the configuration selection instruction of user's input in command input interface 133, corresponding configuration module was called at control configuration interface 132 from configuration module library 120, appeared by configuration interface 132;
After control module 150 receives the above-mentioned configuration compiler directive of user's input in command input interface 133; Obtain configuration info from configuration interface 132; Control collector 140 is compiled into file destination with above-mentioned configuration info and is handed down to execution machine 200; So that execution machine 200 is stored above-mentioned file destination, and/or calls corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to above-mentioned file destination.
Fig. 4 shows the third structure of developing engine 100 in the system, and developing engine 100 similar with in the said system comprise algoritic module storehouse 110, configuration module library 120, human-computer interaction interface 130, collector 140, and control module 150; Wherein human-computer interaction interface 130 comprises editing interface 131, configuration interface 132 and command input interface 133, and each component function of developing engine in above-mentioned each functions of components and the said system is similar.
For further optimisation technique scheme, collector 140 is linked to each other with algoritic module storehouse 110;
After control module 150 receives the above-mentioned algorithm compiler directive of user's input in command input interface 133; Control collector 140 is obtained the intelligent algorithm module from algoritic module storehouse 110, and control collector 140 becomes the intelligent algorithm executable code to be handed down to execution machine 200 so that execution machine 200 is stored and/or called the intelligent algorithm module compiles that gets access to.
Fig. 5 shows a kind of structure of execution machine 200 in the said system, and execution machine 200 has controller 210, and controller 210 comprises:
Executable code storage unit 211 is used to store above-mentioned intelligent algorithm executable code and conventional algorithm executable code;
File destination storage unit 212 is used to store said file destination;
Processor 213; Link to each other with file destination storage unit 212 with executable code storage unit 211 respectively; Be used to call above-mentioned intelligent algorithm executable code, perhaps call corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to above-mentioned file destination.
With reference to figure 6, execution machine 200 also has serial port board 220, slave controller 230, and from serial port board 240; Controller 210 links to each other with said serial port board 220; Slave controller 230 with link to each other from serial port board 240.The execution machine adopts slave controller to reach from serial port board in order to guarantee the reliability of system.
With reference to figure 7-9, execution machine 200 also comprises I/O passage 400, and the I/O passage is used for the collection of field data, be connected with field apparatus 500 through hardwire, its with serial port board 200, and link to each other from serial port board 240.
I/O passage 400 comprises analog quantity IO channel 410 and digital input and output channel 420.
In order further to optimize technique scheme; Developing engine 100 is joined the Ethernet network interface and is connected execution machine 200; Controller 210, serial port board 220, slave controller 230, and all adopt blade type fastener structure, to make things convenient for the renewal and the upgrading of execution machine and I/O passage from serial port board 240.
Another object of the present invention is to provide a kind of intelligent algorithm disposal route; This method is based on the intelligent algorithm disposal system; Above-mentioned intelligent algorithm disposal system comprises developing engine and the execution machine that is connected; Developing engine comprises the algoritic module storehouse of control module, collector storage intelligent algorithm module, and the configuration module library of storage sets morphotype piece, and said method comprises:
After receiving the algorithm selection instruction of user input, above-mentioned control module is from the corresponding intelligent algorithm module of algoritic module library call, and offers said human-computer interaction interface and appear;
Behind the algorithm edit instruction that receives user's input, corresponding intelligent algorithm module is edited;
After the algorithm that receives user's input is held instruction, the intelligent algorithm module stores after above-mentioned control module will be edited to above-mentioned algoritic module storehouse;
Behind the above-mentioned algorithm compiler directive that receives user's input; Obtain corresponding intelligent algorithm module from above-mentioned algoritic module storehouse, control above-mentioned collector and become the intelligent algorithm executable code to be handed down to above-mentioned execution machine so that above-mentioned execution machine is stored and/or called the intelligent algorithm module compiles that gets access to;
Receive the configuration selection instruction of user input at the mentioned order input interface after, call corresponding configuration module from the configuration module library, and offer said human-computer interaction interface and appear;
Receive the configuration compiler directive of user's input at the mentioned order input interface after; Obtain configuration info from above-mentioned configuration interface; Controlling above-mentioned collector compiles above-mentioned configuration info; And will compile the file destination that generates and be handed down to above-mentioned execution machine through above-mentioned; Above-mentioned configuration info comprises the relation between the relation between the above-mentioned intelligent algorithm module id, above-mentioned sign and the above-mentioned intelligent algorithm module id, and at least a in the relation between the above-mentioned sign, so that above-mentioned execution machine calls corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to above-mentioned file destination.
Of the present invention a kind of intelligent algorithm disposal route is provided also, this method is based on the intelligent algorithm disposal system, and above-mentioned intelligent algorithm disposal system comprises developing engine and the execution machine that is connected;
Above-mentioned execution machine comprises and stores the conventional algorithm executable code and from the intelligent algorithm executable code of above-mentioned developing engine, storage is from the file destination storage unit of the file destination of above-mentioned developing engine, and processor;
Above-mentioned intelligent algorithm executable code is formed the intelligent algorithm module compiles after editing by the algorithm compiler directive of above-mentioned developing engine according to user's input, and the intelligent algorithm module behind the above-mentioned editor is formed intelligent algorithm module editor by the algorithm edit instruction of above-mentioned developing engine according to user's input;
Compiling forms above-mentioned file destination according to configuration info by above-mentioned developing engine; Above-mentioned configuration info comprises the relation between the above-mentioned intelligent algorithm module id, the above-mentioned conventional algorithm executable code relation between corresponding sign and the above-mentioned intelligent algorithm module id in above-mentioned developing engine, and at least a in the relation between the above-mentioned sign;
Said method comprises:
Call above-mentioned intelligent algorithm executable code, perhaps call corresponding intelligent algorithm executable code and/or conventional algorithm executable code according to above-mentioned file destination.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.