CN103955368A - Software fuzzy adaptive support system and development method - Google Patents

Software fuzzy adaptive support system and development method Download PDF

Info

Publication number
CN103955368A
CN103955368A CN201410175451.9A CN201410175451A CN103955368A CN 103955368 A CN103955368 A CN 103955368A CN 201410175451 A CN201410175451 A CN 201410175451A CN 103955368 A CN103955368 A CN 103955368A
Authority
CN
China
Prior art keywords
adaption
fuzzy
fuzzy self
self
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
Application number
CN201410175451.9A
Other languages
Chinese (zh)
Other versions
CN103955368B (en
Inventor
杨启亮
陶先平
邢建春
谢宏伟
王平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PLA University of Science and Technology
Original Assignee
PLA University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PLA University of Science and Technology filed Critical PLA University of Science and Technology
Priority to CN201410175451.9A priority Critical patent/CN103955368B/en
Publication of CN103955368A publication Critical patent/CN103955368A/en
Application granted granted Critical
Publication of CN103955368B publication Critical patent/CN103955368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a software fuzzy adaptive support system and a development method. The system comprises a software fuzzy adaptive visualized editing and simulation testing module, a software fuzzy adaptive logic persistence storage module, a fuzzy adaptive Aspect facility automatic generating module, a fuzzy logic basic operation module and a fuzzy logic execution engine module. The method is based on the system, supplies a domain specific language to realize the editing of software fuzzy adaptive strategies, performs syntax check to the fuzzy adaptive strategies, then performs visualized emulation and testing to fuzzy adaptive logics, finally automatically converts the fuzzy adaptive logics based on the domain specific language into executable programming language Aspect codes, and can knit automatically generated Aspect into object software through a universal Aspect knitting system. The system and the method shield complex fuzzy control technical details, and provide visualized and automatic support means for software fuzzy adaptive development.

Description

A kind of software fuzzy self-adaption support system and development approach
Technical field
The invention belongs to software adaptive technique field, particularly a kind of software fuzzy self-adaption support system and the software fuzzy self-adaption development approach based on this system.
Background technology
Current software systems are faced with changing day by day frequently of external environment condition and demand, and these change the form of meeting to disturb, operation continuity and service availability etc. to complicated software system (as Military Information System) cause negative effect, cause interruption, serve the problems such as unavailable.Software self-adaptation is considered to the method for software reply variation issue, its core concept is used the thought of feedback closed loop (closed-loop) exactly, using software as dynamic adjustable object, in operational process, adjust to adapt to new environment and demand according to the online oneself of the variation of perception.Software adaptive process is a kind of environment and user to be carried out to frequent mutual process in itself.
But, inevitably have uncertainty with environment and user's the software self-adaptation ring that makes closely alternately, and this uncertainty usually shows as ambiguity, as rugged surroundings are disturbed the data inexactness, the ambiquity that user's request is expressed etc. that cause.How to tackle and process ambiguity in self-adaptation ring, realize the CMIS self-adaptation under hazy condition, become a problem demanding prompt solution.And the method for software fuzzy self-adaption is considered to a kind of a kind of effective ways that can directly and naturally process adaptive fuzzy, its basic thought is that fuzzy control theory is incorporated in software Research on adaptive, make software present so a kind of form: opening, dynamically, in the computing environment (as battlefield surroundings) of difficult control, the complete of environment and demand information with accurately obtain impossible, part to external change or out of true perception have become under the constraint of certainty, software can be taking the ambiguity information such as uncertain and incomplete changes in demand and environmental element variation that perceives as basis, by fuzzy logic and evolution of feedback controlling theory, automatically carry out fuzzy reasoning and decision-making, adjust the parameter of self, structure and behavior.
Than conventional software performance history, the exploitation of software fuzzy self-adaption needs certain fuzzy control theory knowledge, have certain complicacy, this remains a comparatively thing for difficulty for software developer, has caused to have a knowledge wide gap between soft project and control engineering.Thereby need to have corresponding software support system to carry out the exploitation of support software fuzzy self-adaption, alleviate software developer's burden.But, existing software self-adaptation support system, comparatively famous in Rainbow RAIDE, the StarMX of Canadian University of Waterloo (CA) Waterloo, Ontario, N2L3GI Canada etc. of the ACT of American I BM, Carnegie Mellon Univ USA, all still do not support the processing to adaptive fuzzy, cannot meet the requirement that software fuzzy self-adaption through engineering approaches realizes.
Summary of the invention
The object of the present invention is to provide a kind of software fuzzy self-adaption support system and development approach, this system and method can be realized the function of visual edit, test, emulation, storage and the robotization conversion generation executable program of software fuzzy self-adaption logic.
The technical solution that realizes the object of the invention is:
A kind of software fuzzy self-adaption support system, this support system support software fuzzy self-adaption logic visual edit and robotization generate, specifically comprise: software fuzzy self-adaption visual edit and emulation testing module, software fuzzy self-adaption logic persistent storage module, fuzzy self-adaption Aspect facility automatically-generating module, fuzzy logic BAM, fuzzy logic is carried out engine modules, wherein fuzzy logic BAM access software fuzzy self-adaption visual edit and emulation testing module respectively, fuzzy logic is carried out engine modules, fuzzy self-adaption Aspect facility automatically-generating module, fuzzy logic carry out engine modules respectively with software fuzzy self-adaption visual edit and emulation testing module, fuzzy self-adaption Aspect facility automatically-generating module is connected, software fuzzy self-adaption logic persistent storage module is connected with emulation testing module with software fuzzy self-adaption visual edit, software fuzzy self-adaption visual edit and emulation testing module access fuzzy self-adaption Aspect facility automatically-generating module, each module effect is as follows:
Software fuzzy self-adaption visual edit and emulation testing module provide software fuzzy self-adaption strategy visual edit and the test environment based on field language-specific, and wherein fuzzy self-adaption strategy adopts the form of " if-then " fuzzy rule to express;
Software fuzzy self-adaption logic persistent storage module realizes carries out persistent storage to the fuzzy self-adaption strategy editting and relevant configuration;
The fuzzy self-adaption logic based on field language-specific is automatically converted into Aspect facility and the data blackboard object based on Native language by fuzzy self-adaption Aspect facility automatically-generating module;
Basic operation and algorithm that fuzzy logic BAM is realized fuzzy logic manage;
Fuzzy logic is carried out the total activation of engine modules support system, is responsible for, to the execution that makes an explanation of fuzzy self-adaption strategy, completing fuzzy self-adaption reasoning computing.
A software fuzzy self-adaption development approach based on described software fuzzy self-adaption support system, the method realizes software fuzzy self-adaption logic visual edit and robotization generates, and step is as follows:
Step 1, utilize software fuzzy self-adaption visual edit and emulation testing module editor and emulation testing fuzzy self-adaption strategy: first determine fuzzy self-adaption input, output variable according to fuzzy self-adaption demand and fuzzy self-adaption target, then fuzzy self-adaption variable is carried out to Fuzzy processing; Secondly the fuzzy self-adaption strategy of editor based on fuzzy rule, then carries out grammar mistake inspection to the fuzzy self-adaption strategy editting; Finally fuzzy self-adaption strategy is carried out to emulation testing;
Step 2, storage fuzzy self-adaption strategy: first utilize fuzzy logic BAM to be configured fuzzy operation, then utilize fuzzy self-adaption logic persistent storage module that store path is set, store fuzzy self-adaption input described in above-mentioned configuration information and step 1, output variable, fuzzy self-adaption rule, realize the recycling of fuzzy self-adaption logic and share;
Step 3, generates fuzzy self-adaption Aspect: utilize fuzzy self-adaption Aspect facility automatically-generating module automatically to generate the fuzzy self-adaption Aspect file based on can effective language code;
Step 4, braiding fuzzy self-adaption Aspect: by general Aspect braiding instrument, the Aspect file that step 3 is generated inweaves in target software, thereby at the inner software fuzzy self-adaption ring that forms of target software;
Compared with prior art, its remarkable advantage is in the present invention: (1) provides patterned fuzzy self-adaption logical edit, emulation, test environment based on field language-specific for developer; (2) automatically generate the fuzzy self-adaption code based on Native language, make developer without the deep development that also can carry out comparatively easily software fuzzy self-adaption understand fuzzy control theory in the situation that; (3) provide preservation and the import feature of fuzzy self-adaption logic, and set up the standard of fuzzy logic storage format, facilitated sharing between different groups, thereby can reduce the development difficulty of software fuzzy self-adaption, improved software development efficiency.
Brief description of the drawings
Fig. 1 is the general structure of software fuzzy self-adaption support system of the present invention and the theory diagram of development approach.
Fig. 2 is the editor of fuzzy self-adaption logic in system of the present invention and the structural drawing of emulation testing module.
Fig. 3 is the persistent storage modular structure figure of software fuzzy self-adaption logic in system of the present invention.
Fig. 4 is the principle schematic of fuzzy self-adaption Aspect facility automatically-generating module in system of the present invention.
Fig. 5 is data communication realization mechanism figure between fuzzy self-adaption Aspect facility in system of the present invention.
Fig. 6 is that in system of the present invention, fuzzy self-adaption Aspect facility automatic batch generates schematic diagram.
Fig. 7 is visual edit and the automatic generating method schematic diagram of software fuzzy self-adaption logic of the present invention.
Fig. 8 is the schematic diagram of software fuzzy self-adaption rule editing and emulation in the embodiment of the present invention.
Embodiment
The invention provides a kind of can support programs fuzzy self-adaption logic visual edit, test, emulation and automatically generate the system of executable program code and software fuzzy self-adaption development approach based on this system, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
In conjunction with Fig. 1, software fuzzy self-adaption support system of the present invention, this support system support software fuzzy self-adaption logic visual edit and robotization generate, specifically comprise: software fuzzy self-adaption visual edit and emulation testing module, software fuzzy self-adaption logic persistent storage module, fuzzy self-adaption Aspect facility automatically-generating module, fuzzy logic BAM, fuzzy logic is carried out engine modules, wherein fuzzy logic BAM access software fuzzy self-adaption visual edit and emulation testing module respectively, fuzzy logic is carried out engine modules, fuzzy self-adaption Aspect facility automatically-generating module, fuzzy logic carry out engine modules respectively with software fuzzy self-adaption visual edit and emulation testing module, fuzzy self-adaption Aspect facility automatically-generating module is connected, software fuzzy self-adaption logic persistent storage module is connected with emulation testing module with software fuzzy self-adaption visual edit, software fuzzy self-adaption visual edit and emulation testing module access fuzzy self-adaption Aspect facility automatically-generating module, each module effect is as follows:
1, software fuzzy self-adaption visual edit and emulation testing module provide software fuzzy self-adaption strategy visual edit and the test environment based on field language-specific, and wherein fuzzy self-adaption strategy adopts the form of " if-then " fuzzy rule to express;
2, software fuzzy self-adaption logic persistent storage module realizes the fuzzy self-adaption strategy editting and relevant configuration is carried out to persistent storage; Be specially:
(1) adopt XML form to store the software fuzzy self-adaption rule editting;
(2) adopt XML form to store configuration information, described configuration information comprises: the input/output variable of fuzzy reasoning parameter configuration, definition and the fuzzy partition of this input/output variable;
3, the fuzzy self-adaption logic based on field language-specific is automatically converted into Aspect facility and the data blackboard object based on Native language by fuzzy self-adaption Aspect facility automatically-generating module, is specially:
(1) module object-oriented, is provided with special Aspect code and generates class, obtains fuzzy self-adaption logic relevant information from editing environment;
(2) according to user to the disposable generation Fuzzy Perceptron Model of the predetermined configuration of self-adaptation facility class name, store path, fuzzy self-adaption device, three Aspect facilities of fuzzy actuator and a data blackboard object, this data blackboard object is mutual in target software for Fuzzy Perceptron Model Aspect, fuzzy self-adaption device Aspect and fuzzy actuator Aspect;
4, fuzzy logic BAM is realized fuzzy logic basic operation and algorithm manage;
5, fuzzy logic is carried out the total activation of engine modules support system, is responsible for, to the execution that makes an explanation of fuzzy self-adaption strategy, completing fuzzy self-adaption reasoning computing.
The present invention is based on the software fuzzy self-adaption development approach of described software fuzzy self-adaption support system, the method realizes software fuzzy self-adaption logic visual edit and robotization generates, and step is as follows:
Step 1, utilize software fuzzy self-adaption visual edit and emulation testing module editor and emulation testing fuzzy self-adaption strategy: first determine fuzzy self-adaption input, output variable according to fuzzy self-adaption demand and fuzzy self-adaption target, then fuzzy self-adaption variable is carried out to Fuzzy processing; Secondly the fuzzy self-adaption strategy of editor based on fuzzy rule, then carries out grammar mistake inspection to the fuzzy self-adaption strategy editting; Finally fuzzy self-adaption strategy is carried out to emulation testing; Be specially:
(1) determine self-adaptation variable: determine fuzzy self-adaption input, output variable according to the fuzzy self-adaption target of fuzzy self-adaption demand and target software, add one by one required fuzzy self-adaption input, output variable at software fuzzy self-adaption visual edit and emulation testing module;
(2) obfuscation self-adaptation variable: fuzzy self-adaption input, the output variable of step (1) being added in software fuzzy self-adaption visual edit and emulation testing module are carried out fuzzy partition, generate multiple fuzzy language values, and be each fuzzy language value definition membership function;
(3) editor's fuzzy self-adaption strategy: the fuzzy self-adaption strategy based on fuzzy rule at software fuzzy self-adaption visual edit and emulation testing module editor, then carries out grammar mistake inspection to the fuzzy self-adaption strategy editting;
(4) test fuzzy self-adaption strategy: the fuzzy self-adaption strategy editting is carried out to graphical simulation and test at software fuzzy self-adaption visual edit and emulation testing module, to find implicit logic error in fuzzy self-adaption reasoning, test process needs fuzzy logic BAM, fuzzy logic to carry out the support of engine modules;
Step 2, storage fuzzy self-adaption strategy: first utilize fuzzy logic BAM to be configured fuzzy operation, then utilize fuzzy self-adaption logic persistent storage module that store path is set, store fuzzy self-adaption input described in above-mentioned configuration information and step 1, output variable, fuzzy self-adaption rule, realize the recycling of fuzzy self-adaption logic and share;
Step 3, generates fuzzy self-adaption Aspect: utilize fuzzy self-adaption Aspect facility automatically-generating module automatically to generate the fuzzy self-adaption Aspect file based on can effective language code;
Step 4, braiding fuzzy self-adaption Aspect: by general Aspect braiding instrument, the Aspect file that step 3 is generated inweaves in target software, thereby at the inner software fuzzy self-adaption ring that forms of target software;
The support of engine modules is all carried out in the realization of above-mentioned steps 1~4 based on fuzzy logic.
Below in conjunction with specific embodiment, the present invention is described in further detail.
Embodiment 1
Software fuzzy self-adaption support system provided by the invention can be by expanding realization to FuzzyLite fuzzy logic Software tool.
Fig. 1 is the general structure of software fuzzy self-adaption support system, this system comprises that software fuzzy self-adaption visual edit and Simulation Test Environment, software fuzzy self-adaption logic persistent storage module, fuzzy self-adaption Aspect facility automatically-generating module, fuzzy logic BAM, fuzzy logic carry out 5 parts such as engine modules, in core is that fuzzy logic is carried out engine, between these modules, interact, formed a back-up environment that preliminary support software fuzzy self-adaption is developed comparatively efficiently.The major function of these modules and contact are each other as follows respectively:
(1) software fuzzy self-adaption visual edit and emulation testing module
This module mainly provides software fuzzy self-adaption strategy visual edit and the test environment based on field language-specific.In this module, adopt " if-then " fuzzy rule definition statement in fuzzy control field (to claim again fuzzy control language Fuzzy Control Language, FCL) as the definitional language of software fuzzy self-adaption strategy, use simple, easy-to-use understanding, and approach ordinary people's the mode of thinking; Meanwhile, also provide the perception of fuzzy self-adaption ring, the fuzzy partition of carrying out the input and output linguistic variable of link, the function such as shape setting, inference rule selection of membership function; This module can be carried out syntax check to the adaptive strategy editting, the adaptation rule that does not meet grammer is carried out to miscue, can also carry out emulation testing to fuzzy self-adaption strategy, intuitively watch the result of decision of analyzing fuzzy self-adaption, thus can be according to the further principle of optimality of simulation result.
(2) software fuzzy self-adaption logic persistent storage module
This module realizes carries out persistent storage to the fuzzy self-adaption rule editting and relevant configuration.The information of fuzzy self-adaption logic has the feature of tree data structure, so adopt the XML document of standard as the carrier of persistent storage here.In order to realize format and the persistent storage to fuzzy self-adaption logic, this module also provides corresponding derivation (writing), has been written into (reading) operation.Derive operation and first the data such as the fuzzy self-adaption rule in editing environment, linguistic variable fuzzy partition, membership function are carried out to the tree-shapedization processing of standard, then this tree structure information is written in XML file.Being written into operation is the inverse process of deriving operation, from XML file, parses the corresponding information of fuzzy self-adaption logic, and these information are shown in patterned adaptive logic editing environment.
(3) software fuzzy self-adaption logic Aspect facility automatically-generating module
This module is responsible for the fuzzy self-adaption logic based on field language-specific to be automatically converted into the Aspect facility based on Native language (the present embodiment adopt be C++), comprise Fuzzy Perceptron Model Aspect, fuzzy self-adaption device Aspect and fuzzy actuator Aspect so that directly fuzzy self-adaption logic is woven directly into based on Native language can executive software system in.Particularly, first this module is collected essential information by user session frame and is comprised Aspect title, file preservation position etc., then according to the fuzzy self-adaption logic defining in visual edit environment, generates corresponding class and Aspect.This module has also generated a software data bus based on overall array simultaneously, for carrying out mutual data exchange channel in target software inside between perceptron Aspect, self-adaptation device Aspect and fuzzy self-adaption Aspect.Inweaving target software Aspect facility afterwards need to carry out with fuzzy logic engine modules alternately in the time carrying out the operations such as obfuscation computing, fuzzy reasoning computing, sharpening computing.
(4) fuzzy logic engine modules
This module is the total activation of support system, is responsible for fuzzy self-adaption strategy make an explanation execution, fuzzy self-adaption reasoning computing etc.Due to the fuzzy logic operation that this module mainly completes, therefore, this part is directly inherited from FuzzyLite.
(5) fuzzy logic BAM
This module is responsible for basic operation and algorithm to fuzzy logic and is managed, comprise to fuzzy set ask friendship, cup, membership function storehouse etc. manages.This module is also directly from inheriting from FuzzyLite.
Fig. 2 is the overall implementation structure of fuzzy self-adaption logical edit and emulation testing module, after the conceptual framework of the clear and definite software fuzzy self-adaption of developer ring, just can utilize this module to carry out editor and the test job of software fuzzy self-adaption logic, is specially:
(1) obfuscation of self-adaptation ring input/output variable.Realize the Fuzzy processing to link variablees such as perception in self-adaptation ring, execution, comprise membership function definition, fuzzy partition number is definite etc.
(2) editor of fuzzy self-adaption strategy and syntax check.Based on FCL fuzzy rule, fuzzy self-adaption strategy is edited, the strategy after editor is carried out to syntax check simultaneously.
(3) fuzzy self-adaption logical simulation test.Fuzzy self-adaption logic after having edited is carried out to graphical simulation test, and the result of decision of performance analysis adaptive logic, can utilize the feedback optimized fuzzy self-adaption strategy of analysis result simultaneously.
Fig. 3 is the general structure of support system persistent storage module.The information of fuzzy self-adaption logic has the feature of tree data structure, so adopt the XML document of standard as the carrier of persistent storage here.In realization, still adopt object-oriented thought, defined respectively the software entitys such as tree constructor class, XML read-write operation class, storage class and be responsible for the persistent storage function based on XML.The defined XML file memory format of the present invention is as shown in table 1.In addition, share for the convenient XML document generating, enable to form a set of standards system, we are also for the XML document generating has defined dtd file.DTD (Document Type Definition) is for the syntax rule of defined label symbol.It belongs to the part of XML1.0 specification, is a kind of authentication mechanism of XML file, be generally included in XML file, and be a part for XML file.DTD is a kind of effective ways of controlling XML document correct format, can judge whether document meets specification by the definition of contrast XML document and dtd file, and whether label or element use correct.XML file provides a kind of carrier of exchanges data for application program, the effect of dtd file allows XML file can become a kind of specific data exchange standard just, because different groups only need define standard DTD, other groups can be according to the XML file of DTD Criterion form, and verify, thereby set up the standard of data layout, and carry out data interaction on network.The dtd file content of definition is in table 1.
The XML storage format of table 1 fuzzy self-adaption logic
In the menu of fuzzy self-adaption logic persistent storage module, corresponding derivation (writing) is provided, has been written into (reading) actions menu item.Derive operation and first the data such as the fuzzy self-adaption rule in editing environment, linguistic variable fuzzy partition, membership function are carried out to the tree-shapedization processing of standard, then this tree structure information is written in XML file.Being written into operation is the inverse process of deriving operation, from XML file, parses the corresponding information of fuzzy self-adaption logic, and these information are shown in patterned adaptive logic editing environment.
Fig. 4 is the principle that realizes of fuzzy self-adaption Aspect facility automatically-generating module.Support system provides fuzzy self-adaption Aspect facility automatically-generating module specially, realizes after completing the test emulation of fuzzy self-adaption logic, generates the relevant Aspect facility of fuzzy self-adaption.This module has adopted object-oriented thought in realization, be designed with special Aspect code and generate class, first it obtain fuzzy self-adaption logic relevant information from editing environment, then according to user's predetermined configuration (as self-adaptation facility class name, generation pass), three Aspect and data blackboard objects such as disposable Mass production Fuzzy Perceptron Model, fuzzy self-adaption device, fuzzy actuator.
Fig. 5 is data communication realization mechanism between fuzzy self-adaption Aspect facility.Data blackboard is for communicating between the Fuzzy Perceptron Model object for being implanted to target software inside, fuzzy self-adaption device object and fuzzy self-adaption device object and the software facility of exchanges data, also can be referred to as software bus, for managing the flow process of fuzzy self-adaption.Static class R has played the effect of software bus, its internal maintenance two message queue Input queue and Output queue, wherein the sensed values of input is deposited in Input queue, the result of fuzzy self-adaption decision-making is deposited in Output queue.
Fig. 6 is the process that generates Aspect associated documents while utilizing fuzzy self-adaption Aspect facility automatically-generating module to realize fuzzy self-adaption.In support system, provide Aspect and generate menu item, click this menu item and just eject the pre-configured dialog box of Aspect, in this dialog box, allow the title of fuzzy self-adaption device (FuzzyAdpator) that User Defined will generate, Fuzzy Perceptron Model (FuzzySensor), fuzzy actuator class (FuzzyActuator), data blackboard class etc., and the storing path of Aspect associated documents.After above-mentioned work completes, click " OK " button in dialog box, just can generate the files such as Aspect by automatic batch.
The invention provides a kind of visual edit and automatic generating method of the software fuzzy self-adaption based on above-mentioned software fuzzy self-adaption support system.Fig. 7 has illustrated the basic step of the method, comprise and determine fuzzy self-adaption demand (Specifying SFSA Requirements), obfuscation self-adaptation variable (Fuzzifying SFSA Variables), editor's fuzzy self-adaption strategy (Editing SFSA Policies), test fuzzy self-adaption logic (Testing SFSA Logic), generate fuzzy self-adaption Aspect (Generating SFSA Aspects) and braiding fuzzy self-adaption Aspect (Weaving SFSA Aspects), when each step is pinpointed the problems, turning back to previous step remodifies and optimizes.Be specially:
Step 1, editor and emulation testing fuzzy self-adaption strategy: utilize software fuzzy self-adaption visual edit and emulation testing module editor and emulation testing fuzzy self-adaption strategy.First determine fuzzy self-adaption input, output variable according to fuzzy self-adaption demand and fuzzy self-adaption target, then fuzzy self-adaption variable is carried out to Fuzzy processing, secondly the fuzzy self-adaption strategy of editor based on fuzzy rule, then the fuzzy self-adaption strategy editting is carried out to grammar mistake inspection, finally fuzzy self-adaption strategy is carried out to emulation testing, is specially:
(1) determine fuzzy self-adaption demand.The target of the fuzzy self-adaption of hard objectives software, the content such as input, output variable that fuzzy self-adaption relates to.The embodiment of Fig. 8 single input variable in left side (Temperature) and single output variable (CPU) adding procedure.
(2) obfuscation self-adaptation variable.Utilize support system to create input, the output variable of fuzzy self-adaption, and each variable is carried out fuzzy partition, defines the worth membership function of each fuzzy language etc.Fig. 8 right side is that fuzzy self-adaption variable Temperature is carried out to twice fuzzy partition (High and Mid), and is the embodiment of each fuzzy language value definition membership function.
(3) editor's fuzzy self-adaption strategy.Utilize the fuzzy self-adaption strategy of support system editor based on fuzzy rule, in editing process, can carry out grammar mistake inspection.Below, Fig. 8 left side is fuzzy self-adaption strategy editor and test section, as rule " if Temperature is Mid then CPU is High ".
(4) test fuzzy self-adaption logic.Utilize support system to carry out graphical simulation and test to the fuzzy self-adaption logic editting, to find logic error implicit in fuzzy self-adaption reasoning.Graphical simulation and the test to above-mentioned 9 fuzzy self-adaption rules realized in top, Fig. 8 left side.
Step 2, storage fuzzy self-adaption strategy: first utilize fuzzy logic BAM to be configured fuzzy operation, then utilize fuzzy self-adaption logic persistent storage module that store path is set, store fuzzy self-adaption input described in above-mentioned configuration information and step 1, output variable, fuzzy self-adaption rule, realize the recycling of fuzzy self-adaption logic and share;
Step 3, generates fuzzy self-adaption Aspect.After emulation and being completed, utilize support system automatically to generate the fuzzy self-adaption aspect file based on can effective language (as C++) code.Fig. 6 is that fuzzy self-adaption Aspect facility automatic batch generates schematic diagram, 13 Aspect associated documents of Mass production in this embodiment.
Step 4, braiding fuzzy self-adaption Aspect.By general Aspect braiding instrument, as Aspect C++Weaver, the aspect file that step 3 is generated inweaves in target software, thereby has formed software fuzzy self-adaption ring in target software inside.
Software fuzzy self-adaption logic support system provided by the invention and development approach, taking a kind of extendible fuzzy control software system (as Fuzzylite) in control field as basis, construct software fuzzy self-adaption support system in conjunction with technology such as the AOP in soft project (Aspect-oriented programming) and OOP (object based programming).System provides visual graphical interfaces to edit fuzzy self-adaption logic, allow software self-adaptation developer see intuitively fuzzy logic implementation effect, and conveniently parameters and the setting to fuzzy logic modified, then can directly generate the native ambivalence adaptive logic source code based on Aspect for the fuzzy logic editting, utilize Aspect crochet directly these automatic Aspect to be inweaved in target software.This system provides preservation and the import feature of fuzzy self-adaption logic, and has set up the standard of fuzzy logic storage format, facilitates sharing between different groups.Thereby can reduce the development difficulty of software fuzzy self-adaption, for the exploitation of software fuzzy self-adaption provides supporting method visual, robotization, improve software development efficiency.

Claims (5)

1. a software fuzzy self-adaption support system, it is characterized in that: this support system support software fuzzy self-adaption logic visual edit and robotization generate, specifically comprise: software fuzzy self-adaption visual edit and emulation testing module, software fuzzy self-adaption logic persistent storage module, fuzzy self-adaption Aspect facility automatically-generating module, fuzzy logic BAM, fuzzy logic is carried out engine modules, wherein fuzzy logic BAM access software fuzzy self-adaption visual edit and emulation testing module respectively, fuzzy logic is carried out engine modules, fuzzy self-adaption Aspect facility automatically-generating module, fuzzy logic carry out engine modules respectively with software fuzzy self-adaption visual edit and emulation testing module, fuzzy self-adaption Aspect facility automatically-generating module is connected, software fuzzy self-adaption logic persistent storage module is connected with emulation testing module with software fuzzy self-adaption visual edit, software fuzzy self-adaption visual edit and emulation testing module access fuzzy self-adaption Aspect facility automatically-generating module, each module effect is as follows:
Software fuzzy self-adaption visual edit and emulation testing module provide software fuzzy self-adaption strategy visual edit and the test environment based on field language-specific, and wherein fuzzy self-adaption strategy adopts the form of " if-then " fuzzy rule to express;
Software fuzzy self-adaption logic persistent storage module realizes carries out persistent storage to the fuzzy self-adaption strategy editting and relevant configuration;
The fuzzy self-adaption logic based on field language-specific is automatically converted into Aspect facility and the data blackboard object based on Native language by fuzzy self-adaption Aspect facility automatically-generating module;
Basic operation and algorithm that fuzzy logic BAM is realized fuzzy logic manage;
Fuzzy logic is carried out the total activation of engine modules support system, is responsible for, to the execution that makes an explanation of fuzzy self-adaption strategy, completing fuzzy self-adaption reasoning computing.
2. software fuzzy self-adaption support system according to claim 1, is characterized in that: described software fuzzy self-adaption logic persistent storage module realizes carries out persistent storage to the fuzzy self-adaption rule editting and relevant configuration information, is specially:
(1) adopt XML form to store the software fuzzy self-adaption rule editting;
(2) adopt XML form to store configuration information, described configuration information comprises: the input/output variable of fuzzy reasoning parameter configuration, definition and the fuzzy partition of this input/output variable.
3. software fuzzy self-adaption support system according to claim 1, it is characterized in that: the fuzzy self-adaption logic based on field language-specific is automatically converted into Aspect facility and the data blackboard object based on native language by described fuzzy self-adaption Aspect facility automatically-generating module, this Aspect facility comprises Fuzzy Perceptron Model Aspect, fuzzy self-adaption device Aspect and fuzzy actuator Aspect, is specially:
(1) module object-oriented, is provided with special Aspect code and generates class, obtains fuzzy self-adaption logic relevant information from editing environment;
(2) according to user to the disposable generation Fuzzy Perceptron Model of the predetermined configuration of self-adaptation facility class name, store path, fuzzy self-adaption device, three Aspect facilities of fuzzy actuator and a data blackboard object, this data blackboard object is mutual in target software for Fuzzy Perceptron Model Aspect, fuzzy self-adaption device Aspect and fuzzy actuator Aspect.
4. the software fuzzy self-adaption development approach based on software fuzzy self-adaption support system described in claim 1, is characterized in that: the method realizes software fuzzy self-adaption logic visual edit and robotization generates, and step is as follows:
Step 1, utilize software fuzzy self-adaption visual edit and emulation testing module editor and emulation testing fuzzy self-adaption strategy: first determine fuzzy self-adaption input, output variable according to fuzzy self-adaption demand and fuzzy self-adaption target, then fuzzy self-adaption variable is carried out to Fuzzy processing; Secondly the fuzzy self-adaption strategy of editor based on fuzzy rule, then carries out grammar mistake inspection to the fuzzy self-adaption strategy editting; Finally fuzzy self-adaption strategy is carried out to emulation testing;
Step 2, storage fuzzy self-adaption strategy: first utilize fuzzy logic BAM to be configured fuzzy operation, then utilize fuzzy self-adaption logic persistent storage module that store path is set, store fuzzy self-adaption input described in above-mentioned configuration information and step 1, output variable, fuzzy self-adaption rule, realize the recycling of fuzzy self-adaption logic and share;
Step 3, generates fuzzy self-adaption Aspect: utilize fuzzy self-adaption Aspect facility automatically-generating module automatically to generate the fuzzy self-adaption Aspect file based on can effective language code;
Step 4, braiding fuzzy self-adaption Aspect: by general Aspect braiding instrument, the Aspect file that step 3 is generated inweaves in target software, thereby at the inner software fuzzy self-adaption ring that forms of target software;
5. software fuzzy self-adaption development approach according to claim 4, is characterized in that: described in step 1, utilize software fuzzy self-adaption visual edit and emulation testing module editor and emulation testing fuzzy self-adaption strategy, be specially:
(1) determine self-adaptation variable: determine fuzzy self-adaption input, output variable according to the fuzzy self-adaption target of fuzzy self-adaption demand and target software, add one by one required fuzzy self-adaption input, output variable at software fuzzy self-adaption visual edit and emulation testing module;
(2) obfuscation self-adaptation variable: fuzzy self-adaption input, the output variable of step (1) being added in software fuzzy self-adaption visual edit and emulation testing module are carried out fuzzy partition, generate multiple fuzzy language values, and be each fuzzy language value definition membership function;
(3) editor's fuzzy self-adaption strategy: the fuzzy self-adaption strategy based on fuzzy rule at software fuzzy self-adaption visual edit and emulation testing module editor, then carries out grammar mistake inspection to the fuzzy self-adaption strategy editting;
(4) test fuzzy self-adaption strategy: the fuzzy self-adaption strategy editting is carried out to graphical simulation and test at software fuzzy self-adaption visual edit and emulation testing module, to find implicit logic error in fuzzy self-adaption reasoning, test process needs fuzzy logic BAM, fuzzy logic to carry out the support of engine modules.
CN201410175451.9A 2014-04-28 2014-04-28 A kind of adaptive support system of software obfuscation and development approach Active CN103955368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410175451.9A CN103955368B (en) 2014-04-28 2014-04-28 A kind of adaptive support system of software obfuscation and development approach

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410175451.9A CN103955368B (en) 2014-04-28 2014-04-28 A kind of adaptive support system of software obfuscation and development approach

Publications (2)

Publication Number Publication Date
CN103955368A true CN103955368A (en) 2014-07-30
CN103955368B CN103955368B (en) 2017-08-04

Family

ID=51332644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410175451.9A Active CN103955368B (en) 2014-04-28 2014-04-28 A kind of adaptive support system of software obfuscation and development approach

Country Status (1)

Country Link
CN (1) CN103955368B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486334A (en) * 2014-12-11 2015-04-01 北京国双科技有限公司 File transmission protocol account addition method and device
WO2016131328A1 (en) * 2015-08-03 2016-08-25 中兴通讯股份有限公司 Network-element-simulator-based testing method and device
CN112346334A (en) * 2019-08-06 2021-02-09 北京东土科技股份有限公司 Configuration method, device and equipment of fuzzy control parameters and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1224515A (en) * 1997-02-21 1999-07-28 贝克·休斯公司 Adaptive object-oriented optimization software system
US6807535B2 (en) * 2000-03-08 2004-10-19 Lnk Corporation Intelligent tutoring system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴泽伟: "自适应模糊控制方法研究及仿真软件设计", 《中国优秀硕士学位论文全文数据库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486334A (en) * 2014-12-11 2015-04-01 北京国双科技有限公司 File transmission protocol account addition method and device
WO2016131328A1 (en) * 2015-08-03 2016-08-25 中兴通讯股份有限公司 Network-element-simulator-based testing method and device
CN112346334A (en) * 2019-08-06 2021-02-09 北京东土科技股份有限公司 Configuration method, device and equipment of fuzzy control parameters and storage medium
CN112346334B (en) * 2019-08-06 2022-01-11 北京东土科技股份有限公司 Configuration method, device and equipment of fuzzy control parameters and storage medium

Also Published As

Publication number Publication date
CN103955368B (en) 2017-08-04

Similar Documents

Publication Publication Date Title
EP3465553B1 (en) A cognitive automation engineering system
EP3425849B1 (en) State control method and device
CN105335412B (en) For data conversion, the method and apparatus of Data Migration
CN102426519B (en) Linked data-based multiplexing method of business process execution language (BPEL) templates and services, and system thereof
US11675570B2 (en) System and method for using a graphical user interface to develop a virtual programmable logic controller
CA3050159C (en) Artificial intelligence (ai) based automatic rule generation
US20200301675A1 (en) Methods for generating a semantic description of a composite interaction
Sabou et al. Semantics for cyber-physical systems: A cross-domain perspective
Paskevicius et al. Change impact analysis of feature models
Wang et al. Advanced manufacturing technology in China: a roadmap to 2050
Kluza et al. Proposal of representing BPMN diagrams with XTT2-based business rules
Seiger et al. Test modeling for context-aware ubiquitous applications with feature petri nets
CN103955368A (en) Software fuzzy adaptive support system and development method
CN106096159B (en) A kind of implementation method of distributed system behavior simulation analysis system under cloud platform
CN102929853A (en) DCS (Data Communication System) project data generating system and method based on Excel sheet association
Zhang et al. Interactive AI with Retrieval-Augmented Generation for Next Generation Networking
US9910642B2 (en) Optimal rule generation from a digraph representation
US20140310070A1 (en) Coordinated business rules management and mixed integer programming
Boucherit et al. Automatic generating algorithm of rewriting logic specification for multi-agent system models based on petri nets
CN105117227A (en) Method and device for automatically generating code
Cao et al. Ontology-based model-driven design of distributed control applications in manufacturing systems
CN104007972A (en) Navigation system applied to driving-parking operation of petrochemical device
Omid Context-aware web service composition based on AI planning
Pfannemüller et al. REACT-ION: A model-based runtime environment for situation-aware adaptations
Hatzi et al. VLEPPO: A visual language for problem representation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant