CN109446648A - Service of simulation method for building up and device - Google Patents

Service of simulation method for building up and device Download PDF

Info

Publication number
CN109446648A
CN109446648A CN201811266949.0A CN201811266949A CN109446648A CN 109446648 A CN109446648 A CN 109446648A CN 201811266949 A CN201811266949 A CN 201811266949A CN 109446648 A CN109446648 A CN 109446648A
Authority
CN
China
Prior art keywords
service
simulation
information
user
simulation model
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
CN201811266949.0A
Other languages
Chinese (zh)
Other versions
CN109446648B (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201811266949.0A priority Critical patent/CN109446648B/en
Publication of CN109446648A publication Critical patent/CN109446648A/en
Application granted granted Critical
Publication of CN109446648B publication Critical patent/CN109446648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to simulation process technology fields, more particularly to a kind of service of simulation method for building up and device, by receiving and the simulation model demand information based on user's input searches corresponding simulation model file from the model database of simulation model system, simulation model configuration file is generated according to the simulation model file and the simulation model demand information, and it is added to service creation framework template, it receives the serviced component configuration information of user's input and serviced component configuration file is generated based on demand analytical tool and is added into service creation framework template, the service creation framework template of generation is sent to storage equipment, service of simulation is generated with the model calling logic inputted based on user, obtain the service of simulation in storage equipment, receive user's input for service of simulation service description information and encapsulation to service of simulation, to realize Web service is carried out to simulation model file, is called convenient for user.

Description

Service of simulation method for building up and device
Technical field
The present invention relates to simulation process technology fields, in particular to a kind of service of simulation method for building up and device.
Background technique
With the development of computer simulation technique field, element of the simulation model as analogue system, emulation The modeling means of model are more and more.The design method of traditional simulation model and the application background of analogue system and emulation The back-up environment of system is closely related, this causes simulation model reusability granularity in different analogue systems poor, Wu Faman The requirement of sufficient simulation model plug and play.
Therefore it provides a kind of realize to simulation model file service, in order to which the simulation model that user is called is Technical problem urgently to be resolved.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of service of simulation method for building up and device, to realize to emulation Model file carries out Web service, calls convenient for user.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that
A kind of service of simulation method for building up, it is described for each service of simulation for establishing at least one service of simulation Service of simulation method for building up includes:
It receives and the simulation model demand information based on user's input is searched from the model database of simulation model system Simulation model file corresponding with the simulation model demand information is believed according to the simulation model file and the simulation model demand Breath generates simulation model configuration file, and the service creation generated into simulation model system based on SpringBoot frame is added Framework template;
Receive the serviced component configuration information of user's input and based on the demand analytical tool in the simulation model system It generates serviced component configuration file and is added into the service creation framework template;
By the service creation frame mould including the simulation model configuration file and the serviced component configuration file Plate be sent to the associated storage equipment of the terminal device, emulation clothes are generated with the model calling logic that is inputted based on user Business;
The service of simulation in the storage equipment is obtained, the service describing for the service of simulation for receiving user's input is believed It ceases and encapsulates to the service of simulation.
Optionally, in above-mentioned service of simulation method for building up, when the service of simulation that service of simulation generation method is established is more It is a, and the service description information of the service of simulation include the service of simulation realm information and each realm information in include reality When body classification information, the service of simulation obtained in the storage equipment is being executed, receive user's input is directed to the service of simulation Service description information and the step of encapsulate to the service of simulation after, the method also includes:
According to the realm information and entity class information for including in the service description information of each service of simulation to each institute It states service of simulation to classify, to obtain the corresponding service of simulation of each classification under different field;
Receive the logical relation description information for the service of simulation of each classification under each field of user's input, and base The corresponding service of simulation of each classification information establishes logical relation under the logical relation description information is to each realm information.
Optionally, each in the case where execution reception user's input is for each field in above-mentioned service of simulation method for building up The logical relation description information of the service of simulation of a classification, and based on the logical relation description information to each point under same area After the step of service of simulation of class establishes logical relation, the method also includes:
According to default artificial tree establish the corresponding service of simulation of each entity classification information under rule, each realm information with And the logical relation that the service of simulation of each classification is established under each field establishes emulation module into the simulation model system Hierarchical ontology tree, wherein each service of simulation corresponds respectively to a terminal node in the emulation module hierarchical ontology tree, It includes multilayer node and the corresponding specific name of each node in rule that the default artificial tree, which is established,.
Optionally, it in above-mentioned service of simulation method for building up, is executing based on each classification information under each realm information Corresponding service of simulation was established into the simulation model system after the step of emulation module hierarchical ontology tree, and the method is also Include:
Establish the web services registry safeguarded by search server respectively for the service of simulation under each field, wherein institute State the description information in web services registry including each service of simulation.
Optionally, in above-mentioned service of simulation method for building up, the demand analytical tool include XML file Core Generator and YML file generated tool receives the serviced component configuration information of user's input and based on the demand in the simulation model system Analytical tool generates serviced component configuration file and the step being added into the service creation framework template includes:
Simulation model component demand needed for receiving the service creation framework template that user is inputted with sheet format is believed Breath, and XML entry mesh object model configuration file is generated using the XML file Core Generator in the simulation model system and is added To in the service creation framework template;
Serviced component configuration information needed for receiving the service creation framework template that user is inputted with sheet format, and YML service profiles are generated using the YML file generated tool in the simulation model system and are added to the waiter At in framework template.
Optionally, in above-mentioned service of simulation method for building up, by the simulation model service profiles and the service Generate framework template be sent to the associated storage equipment of the simulation model system, and based on user input model calling logic The step of being sent to the simulation model system, includes: after generating service of simulation
It will include that the simulation model service profiles and the service creation framework template are sent to and the terminal The associated storage equipment of equipment;
It receives and the model calling logic based on user's input generates the artificial service of customization, to being deposited in the storage equipment The service creation framework template of storage carries out configuration and generates service of simulation.
The present invention also provides a kind of service of simulation to establish device, for establishing at least one service of simulation, described device packet It includes:
First receiving module, for receiving and simulation model demand information based on user's input is from simulation model system Simulation model file corresponding with the simulation model demand information is searched in model database, according to the simulation model file and institute It states simulation model demand information and generates simulation model configuration file, and be added into simulation model system and be based on SpringBoot frame The service creation framework template that frame generates;
Second receiving module, for receiving the serviced component configuration information of user's input and based on the simulation model system In demand analytical tool generate serviced component configuration file and be added into the service creation framework template;
Service creation module, for that will include the institute of the simulation model configuration file and the serviced component configuration file State service creation framework template be sent to the associated storage equipment of the terminal device, called with the model that is inputted based on user Logic generates service of simulation;
Module is established in service, for obtaining the service of simulation in the storage equipment, receives the imitative for this of user's input The service description information that really services simultaneously is encapsulated to the service of simulation.
Optionally, it is established in device in above-mentioned service of simulation, the service of simulation is multiple, and clothes of the service of simulation Business description information include the service of simulation realm information and each realm information in include entity class information, described device is also Include:
Categorization module, realm information and entity class for including in the service description information according to each service of simulation Other information classifies to each service of simulation, to obtain the corresponding service of simulation of each classification under different field;
First relationship establishes module, for receive user's input for the service of simulation of each classification under each field Logical relation description information, and it is corresponding to each classification information under each realm information imitative based on the logical relation description information Logical relation is established in true service.
Optionally, it is established in device in above-mentioned service of simulation, described device further include:
Second relationship establishes module, for establishing each entity point under rule, each realm information according to default artificial tree The logical relation that the service of simulation of each classification under the corresponding service of simulation of category information and each field is established is to the emulation Emulation module hierarchical ontology tree is established in model system, wherein each service of simulation corresponds respectively to the emulation module level A terminal node in ontology tree, it includes multilayer node and the corresponding classification of each node in rule that the default artificial tree, which is established, Title.
Optionally, established in device in above-mentioned service of simulation, the demand analytical tool include XML file Core Generator and YML file generated tool, second receiving module include:
First receiving submodule, needed for the service creation framework template inputted with sheet format for receiving user Simulation model component demand information, and XML entry mesh object is generated using the XML file Core Generator in the simulation model system Model configuration file is simultaneously added into the service creation framework template;
Second receiving submodule, needed for the service creation framework template inputted with sheet format for receiving user Serviced component configuration information, and YML service profiles are generated using the YML file generated tool in the simulation model system And it is added into the service creation framework template.
A kind of service of simulation method for building up and device provided by the invention, method is by receiving and based on the imitative of user's input True mode demand information searches emulation corresponding with the simulation model demand information from the model database of simulation model system According to the simulation model file generated simulation model configuration file, and the service into simulation model system is added in model file Framework template is generated, receives the serviced component configuration information of user's input and based on the demand parsing in the simulation model system Tool generates serviced component configuration file and is added into the service creation framework template, by the simulation model configuration file With the serviced component configuration file be sent to the associated storage equipment of the simulation model system, and based on user input mould Type calling logic is uploaded to the simulation model system after generating service of simulation, obtains the service of simulation in the storage equipment, Receive user's input for the service of simulation service description information and encapsulation to the service of simulation, by above-mentioned setting, with It realizes and simulation model file is subjected to Web service, in order to retrieve and call.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Fig. 1 is the structural block diagram of terminal device provided in an embodiment of the present invention.
Fig. 2 is the flow diagram of model generating method provided in an embodiment of the present invention.
Fig. 3 is the flow diagram of step S120 in Fig. 2.
Another flow diagram of Fig. 4 model generating method provided in an embodiment of the present invention.
Fig. 5 is the connection block diagram that service of simulation provided in an embodiment of the present invention establishes device.
Fig. 6 is the connection block diagram of the second receiving module provided in an embodiment of the present invention.
Fig. 7 is another connection block diagram that service of simulation provided in an embodiment of the present invention establishes device.
Icon: 10- terminal device;12- memory;14- processor;100- service of simulation establishes device;110- first connects Receive module;The second receiving module of 120-;The first receiving submodule of 122-;The second receiving submodule of 124-;130- service creation mould Block;Module is established in 140- service;150- categorization module;The first relationship of 160- establishes module;The second relationship of 170- establishes module.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
As shown in Figure 1, the embodiment of the invention provides a kind of terminal device 10, including memory 12, processor 14 and imitative Device 100 is established in true service.Wherein, the terminal device 10 is but not limited to smart phone, PC (personal Computer, PC), the electronic equipment with data-handling capacity such as tablet computer, be not specifically limited herein.
In this embodiment, it is directly or indirectly electrically connected between the memory 12 and processor 14, to realize The transmission or interaction of data.For example, these elements can realize electricity by one or more communication bus or signal wire between each other Property connection.The model generating means 100 include that at least one can be stored in institute in the form of software or firmware (firmware) State the software function module in memory 12.The processor 14 is for executing the executable mould stored in the memory 12 Block, such as the service of simulation establish software function module included by device 100 and computer program etc., to realize emulation clothes Business method for building up.
Wherein, the memory 12 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 12 is for storing program, and the processor 14 executes described program after receiving and executing instruction.
The processor 14 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 14 It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), scene Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with It is that microprocessor or the processor are also possible to any conventional processor etc..
It is appreciated that structure shown in FIG. 1 is only to illustrate, the terminal device 10 may also include more than shown in Fig. 1 Perhaps less component or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software Or combinations thereof realize.
In conjunction with Fig. 2, the embodiment of the present invention also provides a kind of service of simulation foundation that can be applied to above-mentioned terminal device 10 Method, the service of simulation method for building up is for establishing at least one service of simulation, for each service of simulation, the method packet Step S110- step tetra- steps of S140 are included,.
Step S110: receiving and the simulation model demand information based on user's input is from the model data of simulation model system Simulation model file corresponding with the simulation model demand information is searched in library, according to the simulation model file and the emulation mould Type demand information generates simulation model configuration file, and is added into simulation model system based on the generation of SpringBoot frame Service creation framework template.
Wherein, the simulation model demand information can be needed for the personalized configuration information of simulation model and user Simulation model information, wherein simulation model information needed for user can include but is not limited to simulation model title, simulation model Field classification, simulation model mass parameter and/or simulation model ID number.It is appreciated that when demand information includes simulation model neck When domain classification and simulation model title, searched and the simulation model demand information pair from the model database of simulation model system The mode for the simulation model file answered can be the model according to simulation model field classification from the simulation model system Simulation model file corresponding with the simulation model title is searched in the corresponding classification field of database.
It can according to the mode that the simulation model file and the simulation model demand information generate simulation model configuration file To be to generate SpringBoot engineering using XML file Core Generator according to the simulation model file and personalized configuration information Needed for configuration file, to meet the individual demand of user.
In the service creation framework template generated based on SpringBoot frame, since Springboot is greater than using agreement The principle of configuration simplifies the configuration of the original stereotyping of Spring by modes such as automatic configurations, allows user quick Building application.Such as may be implemented to be not necessarily to separately installed container by way of embedded tomcat container, it can be straight with jar packet Operation is connect, configuration of the maven for service dependence is simplified, furthermore passes through java and explains technology automatic configuration Spring Framework services can realize that Spring CLoud assembly module is introduced by defining service configuration YML file.
Step S120: the serviced component configuration information of user's input is received and based on the demand in the simulation model system Analytical tool generates serviced component configuration file and is added into the service creation framework template.
Wherein, the mode for receiving the serviced component configuration information of user's input can be, and it is defeated with sheet format to receive user The serviced component configuration information entered.
In the present embodiment, when the serviced component configuration information includes emulation needed for the service creation framework template Serviced component configuration information needed for model component demand information and the service creation framework template, when the demand parses work When tool includes XML file Core Generator and YML file generated tool, step S120 includes following sub-step:
Step S122: simulation model group needed for receiving the service creation framework template that user is inputted with sheet format Part demand information, and XML entry mesh object model configuration text is generated using the XML file Core Generator in the simulation model system Part is simultaneously added into the service creation framework template.
Step S124: serviced component needed for receiving the service creation framework template that user is inputted with sheet format is matched Confidence breath, and YML service profiles are generated using the YML file generated tool in the simulation model system and are added to institute It states in service creation framework template.
XML entry mesh object model configuration file is generated by XML file Core Generator to realize service registration, load balancing Etc. functions.The YML configuration file of service is automatically generated using YML file generated tool, to configure generated service of simulation The information on services such as title, request address, service balanced way, carry out personalized service customization to service of simulation so that realizing.
Step S130: by the waiter including the simulation model configuration file and the serviced component configuration file At framework template be sent to the associated storage equipment of the terminal device 10, it is raw with the model calling logic that is inputted based on user At service of simulation.
It will include the simulation model configuration file and the service specifically, passing through the download interface of terminal device 10 The service creation framework template of component profile be sent to the associated storage equipment of the simulation model system, to be based on After the model calling logic of user's input generates service of simulation, in the storage device originally using IntelliJ, Eclipse etc. The service of simulation is packaged as being uploaded to the terminal device 10 after compressed package by the MAVEN plug-in unit in ground IDE.
Incorporated by reference to Fig. 3, specifically, in embodiment, the step S130 includes following sub-step:
Step S132: will include the simulation model service profiles and the service creation framework template be sent to The associated storage equipment of the terminal device 10.
Step S134: receiving and the model calling logic based on user's input generates the artificial service customized, deposits to described The service creation framework template stored in storage equipment carries out configuration and generates service of simulation.
Step S140: obtaining the service of simulation in the storage equipment, and what reception user inputted is directed to the service of simulation Service description information is simultaneously encapsulated to the service of simulation.
Wherein, the description information can be classification storage description information, can also be for the service of simulation Propertyization description.When the description information is classification storage description information, encapsulate by the service description information to described imitative It stores after true service into server corresponding with the classification storage description information, in order to quickly be examined to the service of simulation Rope.
By above-mentioned setting, simulation model file is subjected to Web service to realize, in order to retrieve and call, and it is full Individual demand of the sufficient user to service of simulation.
Specifically, this programme is explored and is utilized by the feature serviced using Springboot frame using YML file configuration YML document analysis service automatically generates the service configuration text for meeting users service needs function according to users ' individualized requirement Part, Springboot frame will automatically parse the Spring Cloud module needed for service configuration YML file introduces, and be packaged life At executable JAR packet, to realize the deployment of simulation model service by deployment JAR packet.
Incorporated by reference to Fig. 4, when the service of simulation that service of simulation generation method is established is multiple, and the service of the service of simulation Description information include the service of simulation realm information and each realm information in include entity class information when, be realize to more A service of simulation is managed, in the present embodiment, after executing step S140, the method also includes:
Step S150: believed according to the realm information and entity class for including in the service description information of each service of simulation Breath classifies to each service of simulation, to obtain the corresponding service of simulation of each classification under different field.
Step S160: the logical relation description for the service of simulation of each classification under each field of user's input is received Information, and the foundation of classification information each under each realm information corresponding service of simulation is patrolled based on the logical relation description information The relationship of collecting.
For further be convenient for each service of simulation be managed, and convenient in subsequent use process be convenient for search call, Optionally, in the present embodiment, after executing step S160, the method also includes:
According to default artificial tree establish the corresponding service of simulation of each entity classification information under rule, each realm information with And the logical relation that the service of simulation of each classification is established under each field establishes emulation module into the simulation model system Hierarchical ontology tree, wherein each service of simulation corresponds respectively to a terminal node in the emulation module hierarchical ontology tree, It includes multilayer node and the corresponding specific name of each node in rule that the default artificial tree, which is established,.
Further user to be convenient for carry out search call, in the present embodiment, executing based under each realm information After the step of corresponding service of simulation of each classification information establishes emulation module hierarchical ontology tree into the simulation model system, The method also includes:
Establish the web services registry safeguarded by search server respectively for the service of simulation under each field, wherein institute State the description information in web services registry including each service of simulation.
By above-mentioned setting, industry service is divided to register by what ElasticSearch search server was safeguarded to realize to establish All kinds of web services registries at center, so that significant response user's artificial tasks are requested, with service of simulation information needed for precise search.
It should be noted that emulation is taken with realizing after completing the web services registry that foundation is safeguarded by search server The description information of business is encapsulated as Json form, and is sent in search server by the Http of the side Rest request to complete service The classification storage of description information, and then retrieved convenient for subsequent.
By the above method to complete to establish multiple service of simulation, with user search and call service of simulation when, it is described Terminal device 10 receives the request that the service of simulation demand information that user submits is encapsulated as Json form, and passes through Rest formula Http request is sent to search server, so that search server is imitated after responding the request also with needed for the return of Json form The service description information that really services simultaneously is shown, so that the description information for the required service that user is presented according to system, obtains The information such as title, the input/output of service of simulation, and according to these information on services, needed for being accessed by way of HTTP request Service, to complete the calling of service of simulation.
Incorporated by reference to Fig. 5, on the basis of the above, the present invention also provides a kind of service of simulation to establish device 100, including first connects It receives module 110, the first receiving module 110, service creation module and service and establishes module 140.
First receiving module 110 is used to receive and the simulation model demand information that is inputted based on user is from simulation model Simulation model file corresponding with the simulation model demand information is searched in the model database of system, according to simulation model text Part and the simulation model demand information generate simulation model configuration file, and are added and are based on into simulation model system The service creation framework template that SpringBoot frame generates.In the present embodiment, first receiving module 110 can be used for holding Row step S110 shown in Fig. 2, the specific descriptions about institute's the first receiving module of sample 110 are referred to above to step S110's Description.
Second receiving module 120 is used to receive the serviced component configuration information of user's input and based on the emulation mould Demand analytical tool in type system generates serviced component configuration file and is added into the service creation framework template.At this In embodiment, second receiving module 120 can be used for executing step S120 shown in Fig. 2, about second receiving module 120 specific descriptions are referred to the description to step S120 above.
Incorporated by reference to Fig. 6, optionally, in the present embodiment, the demand analytical tool include XML file Core Generator and YML file generated tool, second receiving module 120 include the first receiving submodule and the second receiving submodule 124.
First receiving submodule is for receiving the service creation framework template institute that user is inputted with sheet format The simulation model component demand information needed, and XML entry mesh is generated using the XML file Core Generator in the simulation model system Object model configuration file is simultaneously added into the service creation framework template.In the present embodiment, described first submodule is received Block can be used for executing step S122 shown in Fig. 3, and it is right above that the specific descriptions about first receiving submodule are referred to The description of step S122.
Second receiving submodule 124 is for receiving the service creation framework template that user is inputted with sheet format Required serviced component configuration information, and YML service is generated using the YML file generated tool in the simulation model system and is matched It sets file and is added into the service creation framework template.In the present embodiment, second receiving submodule 124 can be used for Step S124 shown in Fig. 3 is executed, the specific descriptions about second receiving submodule 124 are referred to above to step The description of S124.
The service creation module will be for that will include the simulation model configuration file and the serviced component configuration file The service creation framework template be sent to the associated storage equipment of the terminal device 10, with the mould inputted based on user Type calling logic generates service of simulation.In the present embodiment, the service creation module can be used for executing step shown in Fig. 2 S130 is referred to above in the specific descriptions of the service creation module to step S130.
The service establishes module 140 for obtaining the service of simulation in the storage equipment, receives the needle of user's input Service description information to the service of simulation is simultaneously encapsulated to the service of simulation.In the present embodiment, module 140 is established in the service It can be used for executing step S140 shown in Fig. 2, the specific descriptions for establishing module 140 about the service are referred to above to step The description of rapid S140.
Incorporated by reference to Fig. 7, optionally, in the present embodiment, when the service of simulation is multiple, and clothes of the service of simulation Business description information include the service of simulation realm information and each realm information in include entity class information, described device is also Module 160 is established including categorization module 150, the first relationship and the second relationship establishes module 170.
Realm information of the categorization module 150 for including in service description information according to each service of simulation and Entity class information classifies to each service of simulation, to obtain the corresponding service of simulation of each classification under different field. In the present embodiment, the categorization module 150 can be used for executing step S150 shown in Fig. 4, about the categorization module 150 Specific descriptions are referred to the description to step S150 above.
First relationship establishes module 160 for receiving the emulation for each classification under each field of user's input The logical relation description information of service, and based on the logical relation description information to each classification information pair under each realm information The service of simulation answered establishes logical relation.In the present embodiment, first relationship, which establishes module 160, can be used for executing Fig. 4 institute The step S160 shown, the specific descriptions for establishing module 160 about first relationship are referred to above retouch step S160 It states.
It is each under rule, each realm information for establishing according to default artificial tree that second relationship establishes module 170 The logical relation that the service of simulation of each classification under the corresponding service of simulation of entity classification information and each field is established is to institute It states and establishes emulation module hierarchical ontology tree in simulation model system, wherein each service of simulation corresponds respectively to the emulation mould A terminal node in block hierarchical ontology tree, it includes that multilayer node and each node are corresponding that the default artificial tree, which is established in rule, Specific name.In the present embodiment, the specific descriptions for establishing module 170 about second relationship are referred to above to imitative The description of true service establishing method.
To sum up, a kind of service of simulation method for building up and device provided by the invention, for each service of simulation method packet The simulation model demand information for including: receiving and inputted based on user is searched corresponding from the model database of simulation model system Simulation model file generates simulation model configuration file according to the simulation model file and the simulation model demand information, and It is added to service creation framework template, receives the serviced component configuration information of user's input and based on the need in simulation model system It asks analytical tool to generate serviced component configuration file and is added into service creation framework template, by the service creation frame of generation Template is sent to storage equipment, generates service of simulation with the model calling logic inputted based on user, obtains in storage equipment Service of simulation, receive user's input for service of simulation service description information and encapsulate to service of simulation, to realize to imitating True mode file carries out Web service, in order to user's calling, and meets user to the individual demand of service of simulation.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk. It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of service of simulation method for building up is applied to terminal device, the method is used to establish at least one service of simulation, It is characterized in that, for each service of simulation, the service of simulation method for building up includes:
It receives and the simulation model demand information based on user's input is searched and is somebody's turn to do from the model database of simulation model system The corresponding simulation model file of simulation model demand information, it is raw according to the simulation model file and the simulation model demand information At simulation model configuration file, and the service creation frame generated into simulation model system based on SpringBoot frame is added Template;
It receives the serviced component configuration information of user's input and is generated based on the demand analytical tool in the simulation model system Serviced component configuration file is simultaneously added into the service creation framework template;
It will include the service creation framework template hair of the simulation model configuration file and the serviced component configuration file Send to the associated storage equipment of the terminal device, service of simulation is generated with the model calling logic that is inputted based on user;
The service of simulation in the storage equipment is obtained, receives the service description information for the service of simulation of user's input simultaneously It encapsulates to the service of simulation.
2. service of simulation method for building up according to claim 1, which is characterized in that established when service of simulation generation method Service of simulation is multiple, and the service description information of the service of simulation includes the realm information and each field letter of the service of simulation When the entity class information for including in breath, the service of simulation obtained in the storage equipment is being executed, the needle of user's input is received Service description information to the service of simulation and the step of encapsulate to the service of simulation after, the method also includes:
According to the realm information and entity class information for including in the service description information of each service of simulation to each described imitative True service is classified, to obtain the corresponding service of simulation of each classification under different field;
The logical relation description information for the service of simulation of each classification under each field of user's input is received, and being based on should Logical relation description information establishes logical relation to the corresponding service of simulation of classification information each under each realm information.
3. service of simulation method for building up according to claim 2, which is characterized in that receive being directed to for user's input executing The logical relation description information of the service of simulation of each classification under each field, and based on the logical relation description information to identical After the step of service of simulation of each classification establishes logical relation under field, the method also includes:
According to the corresponding service of simulation of each entity classification information under default artificial tree foundation rule, each realm information and often The logical relation that the service of simulation of each classification under a field is established establishes emulation module level into the simulation model system Ontology tree, wherein each service of simulation corresponds respectively to a terminal node in the emulation module hierarchical ontology tree, described It includes multilayer node and the corresponding specific name of each node in rule that default artificial tree, which is established,.
4. service of simulation method for building up according to claim 3, which is characterized in that in the case where executing based on each realm information The corresponding service of simulation of each classification information the step of emulation module hierarchical ontology tree is established into the simulation model system it Afterwards, the method also includes:
Establish the web services registry safeguarded by search server respectively for the service of simulation under each field, wherein the clothes It is engaged in registration table including the description information of each service of simulation.
5. service of simulation method for building up according to claim 1, which is characterized in that the demand analytical tool includes XML File generated tool and YML file generated tool receive the serviced component configuration information of user's input and are based on the emulation mould Demand analytical tool in type system generates serviced component configuration file and the step into the service creation framework template is added Suddenly include:
Simulation model component demand information needed for receiving the service creation framework template that user is inputted with sheet format, and XML entry mesh object model configuration file is generated using the XML file Core Generator in the simulation model system and is added to institute It states in service creation framework template;
Serviced component configuration information needed for receiving the service creation framework template that user is inputted with sheet format, and use YML file generated tool in the simulation model system generates YML service profiles and is added to the service creation frame In frame template.
6. service of simulation method for building up according to claim 1, which is characterized in that by the simulation model service configuration text Part and the service creation framework template be sent to the associated storage equipment of the simulation model system, and based on user input The step of being sent to the simulation model system, includes: after model calling logic generates service of simulation
It will include that the simulation model service profiles and the service creation framework template are sent to and the terminal device Associated storage equipment;
It receives and the model calling logic based on user's input generates the artificial service customized, to what is stored in the storage equipment Service creation framework template carries out configuration and generates service of simulation.
7. a kind of service of simulation establishes device, it is applied to terminal device, described device is used to establish at least one service of simulation, It is characterized in that, described device includes:
First receiving module, for receiving and simulation model demand information based on user's input is from the model of simulation model system Corresponding with simulation model demand information simulation model file is searched in database, according to the simulation model file and described is imitated True mode demand information generates simulation model configuration file, and is added into simulation model system raw based on SpringBoot frame At service creation framework template;
Second receiving module, for receiving the serviced component configuration information of user's input and based in the simulation model system Demand analytical tool generates serviced component configuration file and is added into the service creation framework template;
Service creation module, for that will include the clothes of the simulation model configuration file and the serviced component configuration file Business generate framework template be sent to the associated storage equipment of the terminal device, with the model calling logic inputted based on user Generate service of simulation;
Module is established in service, for obtaining the service of simulation in the storage equipment, receives taking for the emulation for user's input The service description information of business is simultaneously encapsulated to the service of simulation.
8. service of simulation according to claim 7 establishes device, which is characterized in that the service of simulation is multiple, and institute State service of simulation service description information include the service of simulation realm information and each realm information in include entity class Information, described device further include:
Categorization module, realm information and entity class letter for including in the service description information according to each service of simulation Breath classifies to each service of simulation, to obtain the corresponding service of simulation of each classification under different field;
First relationship establishes module, for receiving the logic for the service of simulation of each classification under each field of user's input Relationship description information, and the corresponding emulation of classification information each under each realm information is taken based on the logical relation description information Logical relation is established in business.
9. service of simulation according to claim 8 establishes device, which is characterized in that described device further include:
Second relationship establishes module, and each entity classification for establishing under rule, each realm information according to default artificial tree is believed Logical relation that the service of simulation of each classification under corresponding service of simulation and each field is established is ceased to the simulation model Emulation module hierarchical ontology tree is established in system, wherein each service of simulation corresponds respectively to the emulation module level ontology A terminal node in tree, it includes multilayer node and the corresponding systematic name of each node in rule that the default artificial tree, which is established, Claim.
10. service of simulation according to claim 7 establishes device, which is characterized in that the demand analytical tool includes XML File generated tool and YML file generated tool, second receiving module include:
First receiving submodule, emulation needed for the service creation framework template inputted with sheet format for receiving user Model component demand information, and XML entry mesh object model is generated using the XML file Core Generator in the simulation model system Configuration file is simultaneously added into the service creation framework template;
Second receiving submodule, service needed for the service creation framework template inputted with sheet format for receiving user Module configuration information, and YML service profiles are generated using the YML file generated tool in the simulation model system and are added Enter into the service creation framework template.
CN201811266949.0A 2018-10-29 2018-10-29 Simulation service establishing method and device Active CN109446648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811266949.0A CN109446648B (en) 2018-10-29 2018-10-29 Simulation service establishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811266949.0A CN109446648B (en) 2018-10-29 2018-10-29 Simulation service establishing method and device

Publications (2)

Publication Number Publication Date
CN109446648A true CN109446648A (en) 2019-03-08
CN109446648B CN109446648B (en) 2020-12-01

Family

ID=65549070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811266949.0A Active CN109446648B (en) 2018-10-29 2018-10-29 Simulation service establishing method and device

Country Status (1)

Country Link
CN (1) CN109446648B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458383A (en) * 2019-06-24 2019-11-15 平安国际智慧城市科技股份有限公司 Demand handles implementation method, device and the computer equipment of serviceization, storage medium
CN111597686A (en) * 2020-04-15 2020-08-28 北京仿真中心 Loosely-coupled visual simulation resource integration and encapsulation method and system
CN112084417A (en) * 2020-09-24 2020-12-15 北京明略昭辉科技有限公司 Service result generation method and device, electronic equipment and storage medium
CN112199082A (en) * 2020-10-14 2021-01-08 杭州安恒信息技术股份有限公司 HTTP response processing method and device, electronic equipment and storage medium
CN114647459A (en) * 2022-03-31 2022-06-21 国网河北省电力有限公司培训中心 Protection principle graph model multiplexing simulation method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420437A (en) * 2008-11-14 2009-04-29 北京航空航天大学 Interface device for prototype system and HLA simulation system
CN102609248A (en) * 2011-12-28 2012-07-25 方伟 Integrated avionics system modeling and simulation platform based on MDA (model driven architecture)
WO2016199383A1 (en) * 2015-06-12 2016-12-15 日本電気株式会社 Service design assistance device, method, and program recording medium
CN106295084A (en) * 2016-09-29 2017-01-04 北京华如科技股份有限公司 Service-oriented expansible combination type artificial engine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420437A (en) * 2008-11-14 2009-04-29 北京航空航天大学 Interface device for prototype system and HLA simulation system
CN102609248A (en) * 2011-12-28 2012-07-25 方伟 Integrated avionics system modeling and simulation platform based on MDA (model driven architecture)
WO2016199383A1 (en) * 2015-06-12 2016-12-15 日本電気株式会社 Service design assistance device, method, and program recording medium
CN106295084A (en) * 2016-09-29 2017-01-04 北京华如科技股份有限公司 Service-oriented expansible combination type artificial engine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴江等: "基于面向服务的通用任务规划仿真集成方法研究", 《系统仿真学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458383A (en) * 2019-06-24 2019-11-15 平安国际智慧城市科技股份有限公司 Demand handles implementation method, device and the computer equipment of serviceization, storage medium
CN111597686A (en) * 2020-04-15 2020-08-28 北京仿真中心 Loosely-coupled visual simulation resource integration and encapsulation method and system
CN112084417A (en) * 2020-09-24 2020-12-15 北京明略昭辉科技有限公司 Service result generation method and device, electronic equipment and storage medium
CN112199082A (en) * 2020-10-14 2021-01-08 杭州安恒信息技术股份有限公司 HTTP response processing method and device, electronic equipment and storage medium
CN112199082B (en) * 2020-10-14 2023-04-14 杭州安恒信息技术股份有限公司 HTTP response processing method and device, electronic equipment and storage medium
CN114647459A (en) * 2022-03-31 2022-06-21 国网河北省电力有限公司培训中心 Protection principle graph model multiplexing simulation method and system
CN114647459B (en) * 2022-03-31 2024-04-26 国网河北省电力有限公司培训中心 Protection schematic diagram model multiplexing simulation method and system

Also Published As

Publication number Publication date
CN109446648B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN109446648A (en) Service of simulation method for building up and device
CN104781802B (en) User Defined Resource in resource stack
CN110244977A (en) Customized software generation method, system, electronic equipment and storage medium
CN109446072A (en) The generation method and device of test script
CN107908659A (en) Data sheet collocation method, report platform and computer-readable recording medium
CN110337641A (en) It is determined using screenshot capture metadata and applies test result
CN106325988B (en) Method for scheduling task and device
CN108964968A (en) Service access management method and system under a kind of container cloud environment
CN111181943A (en) Service interaction method and device based on service middlebox, computer equipment and computer storage medium
CN110287069A (en) ESB automatic interface testing method, server and computer readable storage medium
US20200326931A1 (en) Federated Framework for Container Management
CN110912782B (en) Data acquisition method, device and storage medium
CN112579118B (en) Method, device, system, medium and equipment for updating configuration information of micro-service
CN113918232B (en) Algorithm service calling method, device, server and storage medium
CN110245029A (en) A kind of data processing method, device, storage medium and server
CN117370203B (en) Automatic test method, system, electronic equipment and storage medium
CN102629194B (en) Novel application store adaptor facing mobile terminals
CN111427613A (en) Application program interface API management method and device
CN108804399A (en) The method of calibration and device of list
CN111651140B (en) Service method and device based on workflow
CN106649837B (en) Database compatibility method
CN108965404A (en) Cloud net health services system and method
CN108885544A (en) Front end page internationalization processing method, application server and computer readable storage medium
CN111159226A (en) Index query method and system
US20140324918A1 (en) Database Generation System, Method For Generating A Database, Product Line Management System And Non-Transitory Data Carrier

Legal Events

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