CN109446648B - Simulation service establishing method and device - Google Patents
Simulation service establishing method and device Download PDFInfo
- Publication number
- CN109446648B CN109446648B CN201811266949.0A CN201811266949A CN109446648B CN 109446648 B CN109446648 B CN 109446648B CN 201811266949 A CN201811266949 A CN 201811266949A CN 109446648 B CN109446648 B CN 109446648B
- Authority
- CN
- China
- Prior art keywords
- service
- simulation
- information
- simulation model
- configuration file
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design 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 invention relates to the technical field of simulation processing, in particular to a simulation service establishing method and a device, which search a corresponding simulation model file from a model database of a simulation model system by receiving and based on simulation model demand information input by a user, generate a simulation model configuration file according to the simulation model file and the simulation model demand information, add the simulation model configuration file to a service generation framework template, receive service component configuration information input by the user, generate a service component configuration file based on a demand analysis tool, add the service component configuration file to the service generation framework template, send the generated service generation framework template to a storage device, call logic generation simulation service based on a model input by the user, obtain simulation service in the storage device, receive service description information aiming at the simulation service input by the user, and package the service to the simulation service so as to realize Web service of the simulation model file, the user can call the method conveniently.
Description
Technical Field
The invention relates to the technical field of simulation processing, in particular to a simulation service establishing method and device.
Background
With the development of the technical field of computer simulation, the simulation model is used as a basic component of a simulation system, and modeling means of the simulation model are more and more. The traditional design method of the simulation model is closely related to the application background of the simulation system and the support environment of the simulation system, so that the reusability granularity of the simulation model in different simulation systems is poor, and the plug and play requirement of the simulation model cannot be met.
Therefore, it is an urgent technical problem to provide a simulation model for facilitating the invocation of a user by serving a simulation model file.
Disclosure of Invention
In view of this, the present invention provides a simulation service establishing method and device, so as to implement Web servitization on a simulation model file, and facilitate user invocation.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
a simulation service creation method for creating at least one simulation service, the simulation service creation method comprising, for each simulation service:
receiving and searching a simulation model file corresponding to the simulation model demand information from a model database of a simulation model system based on the simulation model demand information input by a user, generating a simulation model configuration file according to the simulation model file and the simulation model demand information, and adding the simulation model configuration file into a service generation framework template generated based on a SpringBoot framework in the simulation model system;
receiving service component configuration information input by a user, generating a service component configuration file based on a demand analysis tool in the simulation model system, and adding the service component configuration file into the service generation framework template;
sending the service generation framework template comprising the simulation model configuration file and the service component configuration file to a storage device associated with the terminal device so as to generate a simulation service based on a model call logic input by a user;
and acquiring the simulation service in the storage device, receiving the service description information aiming at the simulation service and input by a user, and encapsulating the service description information to the simulation service.
Optionally, in the simulation service establishing method, when a plurality of simulation services established by the simulation service generating method and the service description information of the simulation service includes the domain information of the simulation service and the entity type information included in each domain information, after the steps of obtaining the simulation service in the storage device, receiving the service description information of the simulation service input by the user and encapsulating the service description information to the simulation service are executed, the method further includes:
classifying the simulation services according to the field information and the entity category information included in the service description information of the simulation services to obtain simulation services corresponding to the classifications in different fields;
and receiving logic relationship description information of the simulation services aiming at each classification under each field, which is input by a user, and establishing a logic relationship for the simulation services corresponding to each classification under each field information based on the logic relationship description information.
Optionally, in the simulation service establishing method, after the step of receiving the logic relationship description information of the simulation service for each classification in each field, which is input by the user, and establishing the logic relationship for the simulation service for each classification in the same field based on the logic relationship description information is executed, the method further includes:
establishing a simulation module hierarchy body tree in the simulation model system according to a preset simulation tree establishment rule, simulation services corresponding to entity classification information under each field information and a logical relation established by the simulation services of each classification under each field, wherein each simulation service corresponds to a terminal node in the simulation module hierarchy body tree, and the preset simulation tree establishment rule comprises a plurality of layers of nodes and classification names corresponding to the nodes.
Optionally, in the simulation service establishing method, after executing the step of establishing the simulation module hierarchical ontology tree into the simulation model system based on the simulation service corresponding to each classification information under each domain information, the method further includes:
and respectively establishing a service registry maintained by a search server aiming at the simulation services in each field, wherein the service registry comprises the description information of each simulation service.
Optionally, in the simulation service establishing method, the requirement analysis tool includes an XML file generation tool and a YML file generation tool, and the step of receiving service component configuration information input by a user, generating a service component configuration file based on the requirement analysis tool in the simulation model system, and adding the service component configuration file into the service generation framework template includes:
receiving simulation model component requirement information required by the service generation framework template input by a user in a form, generating an XML project object model configuration file by adopting an XML file generation tool in the simulation model system, and adding the XML project object model configuration file into the service generation framework template;
and receiving service component configuration information required by the service generation framework template input by a user in a form, generating a YML service configuration file by adopting a YML file generation tool in the simulation model system, and adding the YML service configuration file into the service generation framework template.
Optionally, in the simulation service establishing method, the steps of sending the simulation model service configuration file and the service generation framework template to a storage device associated with the simulation model system, generating a simulation service based on a model call logic input by a user, and sending the simulation service to the simulation model system include:
sending the service configuration file including the simulation model and the service generation framework template to a storage device associated with the terminal device;
and receiving and generating a customized simulation service based on a model call logic input by a user, and configuring a service generation framework template stored in the storage device to generate the simulation service.
The present invention also provides a simulation service creation apparatus for creating at least one simulation service, the apparatus comprising:
the system comprises a first receiving module, a second receiving module and a service generation framework template generating module, wherein the first receiving module is used for receiving and searching a simulation model file corresponding to simulation model demand information from a model database of a simulation model system based on the simulation model demand information input by a user, generating a simulation model configuration file according to the simulation model file and the simulation model demand information, and adding the simulation model configuration file into the simulation model system based on the service generation framework template generated by a SpringBoot framework;
the second receiving module is used for receiving service component configuration information input by a user, generating a service component configuration file based on a requirement analysis tool in the simulation model system and adding the service component configuration file into the service generation framework template;
the service generation module is used for sending the service generation framework template comprising the simulation model configuration file and the service component configuration file to a storage device associated with the terminal device so as to generate simulation service based on model calling logic input by a user;
and the service establishing module is used for acquiring the simulation service in the storage device, receiving the service description information aiming at the simulation service and input by the user and packaging the service description information to the simulation service.
Optionally, in the simulation service establishing apparatus, the number of simulation services is multiple, and the service description information of the simulation service includes domain information of the simulation service and entity type information included in each domain information, the apparatus further includes:
the classification module is used for classifying the simulation services according to the field information and the entity class information included in the service description information of the simulation services to obtain the simulation services corresponding to the classifications in different fields;
the first relation establishing module is used for receiving the logic relation description information of the simulation services aiming at each classification under each field, which is input by a user, and establishing the logic relation of the simulation services corresponding to each classification under each field information based on the logic relation description information.
Optionally, in the simulation service establishing apparatus, the apparatus further includes:
and the second relation establishing module is used for establishing a simulation module hierarchy body tree in the simulation model system according to a preset simulation tree establishing rule, the simulation service corresponding to each entity classification information under each field information and the logical relation established by the simulation service of each classification under each field, wherein each simulation service corresponds to one terminal node in the simulation module hierarchy body tree, and the preset simulation tree establishing rule comprises a plurality of layers of nodes and classification names corresponding to the nodes.
Optionally, in the simulation service establishing apparatus, the requirement analysis tool includes an XML file generation tool and a YML file generation tool, and the second receiving module includes:
the first receiving submodule is used for receiving simulation model component requirement information required by the service generation framework template input by a user in a form, generating an XML project object model configuration file by adopting an XML file generation tool in the simulation model system and adding the XML project object model configuration file into the service generation framework template;
and the second receiving submodule is used for receiving service component configuration information required by the service generation framework template input by a user in a form, generating a YML service configuration file by adopting a YML file generation tool in the simulation model system and adding the YML service configuration file into the service generation framework template.
The invention provides a simulation service establishing method and a device, the method searches a simulation model file corresponding to the simulation model demand information from a model database of a simulation model system by receiving and based on the simulation model demand information input by a user, generates a simulation model configuration file according to the simulation model file, adds the simulation model configuration file into a service generation framework template in the simulation model system, receives the service component configuration information input by the user, generates a service component configuration file based on a demand analysis tool in the simulation model system, adds the service component configuration file into the service generation framework template, sends the simulation model configuration file and the service component configuration file to a storage device associated with the simulation model system, calls a logic generation simulation service based on the model input by the user, uploads the simulation service to the simulation model system to obtain the simulation service in the storage device, and receiving service description information which is input by a user and aims at the simulation service, packaging the service description information into the simulation service, and realizing Web servitization of the simulation model file through the setting so as to be convenient for retrieval and calling.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of a terminal device according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a model generation method according to an embodiment of the present invention.
Fig. 3 is a schematic flowchart of step S120 in fig. 2.
Fig. 4 is another schematic flow chart of a model generation method according to an embodiment of the present invention.
Fig. 5 is a connection block diagram of the simulation service establishing apparatus according to the embodiment of the present invention.
Fig. 6 is a connection block diagram of a second receiving module according to an embodiment of the present invention.
Fig. 7 is another connection block diagram of the emulation service establishing apparatus according to the embodiment of the present invention.
Icon: 10-a terminal device; 12-a memory; 14-a processor; 100-simulation service creation means; 110-a first receiving module; 120-a second receiving module; 122-a first receiving submodule; 124-a second receiving submodule; 130-a service generation module; 140-service establishment module; 150-a classification module; 160-a first relationship establishing module; 170-a second relationship establishing module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
As shown in fig. 1, an embodiment of the present invention provides a terminal device 10, which includes a memory 12, a processor 14, and an emulation service establishing apparatus 100. The terminal device 10 is, but not limited to, an electronic device with data processing capability, such as a smart phone, a Personal Computer (PC), a tablet computer, and the like, and is not particularly limited herein.
In this embodiment, the memory 12 and the processor 14 are electrically connected directly or indirectly to enable data transfer or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The model generation apparatus 100 includes at least one software functional module that can be stored in the memory 12 in the form of software or firmware (firmware). The processor 14 is used for executing executable modules stored in the memory 12, such as software functional modules and computer programs included in the simulation service establishing device 100, so as to realize the simulation service establishing method.
The Memory 12 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. Wherein the memory 12 is used for storing a program, and the processor 14 executes the program after receiving the execution instruction.
The processor 14 may be an integrated circuit chip having signal processing capabilities. The Processor 14 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be appreciated that the configuration shown in fig. 1 is merely illustrative and that the terminal device 10 may include more or fewer components than shown in fig. 1 or may have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
With reference to fig. 2, an embodiment of the present invention further provides an emulation service establishing method applicable to the terminal device 10 described above, where the emulation service establishing method is used to establish at least one emulation service, and the method includes four steps S110 to S140 for each emulation service.
Step S110: and receiving and searching a simulation model file corresponding to the simulation model demand information from a model database of the simulation model system based on the simulation model demand information input by the user, generating a simulation model configuration file according to the simulation model file and the simulation model demand information, and adding the simulation model configuration file into a service generation framework template generated based on a SpringBoot framework in the simulation model system.
The simulation model requirement information may include personalized configuration information of the simulation model and simulation model information required by the user, where the simulation model information required by the user may include, but is not limited to, a name of the simulation model, a domain category of the simulation model, a quality parameter of the simulation model, and/or an ID number of the simulation model. It can be understood that, when the requirement information includes a simulation model field category and a simulation model name, the manner of searching the simulation model file corresponding to the requirement information of the simulation model from the model database of the simulation model system may be to search the simulation model file corresponding to the simulation model name from the classification field corresponding to the model database of the simulation model system according to the simulation model field category.
The mode of generating the simulation model configuration file according to the simulation model file and the simulation model requirement information may be to generate a configuration file required in the SpringBoot project by using an XML file generation tool according to the simulation model file and the personalized configuration information so as to meet the personalized requirements of the user.
In the service generation framework template generated based on the SpringBoot framework, as the SpringBoot utilizes the principle that the contract is greater than the configuration, the original template configuration of the springis simplified through modes such as automatic configuration, and the like, so that a user can quickly construct and apply. For example, the method can be realized by embedding a tomcat container, a container does not need to be independently installed, the method can be directly operated by using a jar package, the configuration of maven on the service dependency relationship is simplified, in addition, the Spring framework service is automatically configured by the java annotation technology, and the modular introduction of the Spring CLOud component can be realized by defining a service configuration YML file.
Step S120: and receiving service component configuration information input by a user, generating a service component configuration file based on a requirement analysis tool in the simulation model system, and adding the service component configuration file into the service generation framework template.
The method for receiving the service component configuration information input by the user may be that the service component configuration information input by the user in a form is received.
In this embodiment, when the service component configuration information includes simulation model component requirement information required by the service generation framework template and service component configuration information required by the service generation framework template, and when the requirement analysis tool includes an XML file generation tool and a YML file generation tool, the step S120 includes the following sub-steps:
step S122: receiving simulation model component requirement information required by the service generation framework template input by a user in a form, generating an XML project object model configuration file by adopting an XML file generation tool in the simulation model system, and adding the XML project object model configuration file into the service generation framework template.
Step S124: and receiving service component configuration information required by the service generation framework template input by a user in a form, generating a YML service configuration file by adopting a YML file generation tool in the simulation model system, and adding the YML service configuration file into the service generation framework template.
And generating an XML project object model configuration file through an XML file generation tool so as to realize functions of service registration, load balancing and the like. And automatically generating a YML configuration file of the service by using a YML file generation tool, thereby configuring service information such as the name, the request address, the service balancing mode and the like of the generated simulation service, and realizing the personalized service customization of the simulation service.
Step S130: sending the service generation framework template including the simulation model configuration file and the service component configuration file to a storage device associated with the terminal device 10 to generate a simulation service based on a model call logic input by a user.
Specifically, the service generation framework template including the simulation model configuration file and the service component configuration file is sent to a storage device associated with the simulation model system through a download interface of the terminal device 10, so that after the simulation service is generated based on a model call logic input by a user, the simulation service is packaged into a compressed packet by using MAVEN plug-in components in local IDE such as IntelliJ and Eclipse in the storage device, and then uploaded to the terminal device 10.
Referring to fig. 3, in particular, in an embodiment, the step S130 includes the following sub-steps:
step S132: and sending the service configuration file comprising the simulation model and the service generation framework template to a storage device associated with the terminal device 10.
Step S134: and receiving and generating a customized simulation service based on a model call logic input by a user, and configuring a service generation framework template stored in the storage device to generate the simulation service.
Step S140: and acquiring the simulation service in the storage device, receiving the service description information aiming at the simulation service and input by a user, and encapsulating the service description information to the simulation service.
The description information may be classified storage description information or personalized description for the simulation service. When the description information is classified storage description information, the service description information is packaged into the simulation service and then stored into a server corresponding to the classified storage description information, so that the simulation service can be quickly retrieved.
Through the arrangement, the simulation model file is Web-serviced, so that the simulation model file is convenient to retrieve and call, and the personalized requirements of a user on the simulation service are met.
Specifically, according to the scheme, the characteristics that a Springboot frame uses a YML file configuration service are utilized, a YML file analysis service is explored, a service configuration file meeting the user service requirement function is automatically generated according to the user personalized requirement, the Springboot frame introduces the YML file for automatically analyzing the service configuration into a required Spring Cloud module, and an executable JAR package is generated by packaging, so that the deployment of the simulation model service is realized by deploying the JAR package.
Referring to fig. 4, when there are a plurality of simulation services established by the simulation service generation method, and the service description information of the simulation service includes the domain information of the simulation service and the entity type information included in each domain information, in this embodiment, after step S140 is executed, the method further includes:
step S150: and classifying the simulation services according to the field information and the entity class information included in the service description information of the simulation services to obtain the simulation services corresponding to the classifications in different fields.
Step S160: and receiving logic relationship description information of the simulation services aiming at each classification under each field, which is input by a user, and establishing a logic relationship for the simulation services corresponding to each classification under each field information based on the logic relationship description information.
To further facilitate management of each simulation service and facilitate retrieval and invocation in a subsequent use process, optionally, in this embodiment, after performing step S160, the method further includes:
establishing a simulation module hierarchy body tree in the simulation model system according to a preset simulation tree establishment rule, simulation services corresponding to entity classification information under each field information and a logical relation established by the simulation services of each classification under each field, wherein each simulation service corresponds to a terminal node in the simulation module hierarchy body tree, and the preset simulation tree establishment rule comprises a plurality of layers of nodes and classification names corresponding to the nodes.
In order to further facilitate retrieval and invocation by a user, in this embodiment, after the step of establishing a simulation module hierarchical ontology tree into the simulation model system based on the simulation service corresponding to each classification information under each domain information is executed, the method further includes:
and respectively establishing a service registry maintained by a search server aiming at the simulation services in each field, wherein the service registry comprises the description information of each simulation service.
Through the setting, various service registries of the domain service registry maintained by the ElasticSearch search server are established, so that the user simulation task request is effectively responded, and the required simulation service information is accurately retrieved.
It should be noted that after the establishment of the service registry maintained by the search server is completed, the description information of the simulation service is encapsulated into a Json form, and is sent to the search server through an Http request of the Rest party to complete the classified storage of the service description information, so as to facilitate subsequent retrieval.
The establishment of a plurality of simulation services is completed by the method, so that when a user retrieves and calls the simulation services, the terminal device 10 receives a request of packaging simulation service requirement information submitted by the user into a Json form, and sends the request to the search server through a Rest type Http request, so that the search server returns and displays service description information of the required simulation services by using the Json form after responding to the request, so that the user obtains information such as the name, input/output and the like of the simulation services according to the description information of the required services presented by the system, and accesses the required services through an HTTP request according to the service information, thereby completing the calling of the simulation services.
Referring to fig. 5, on the basis of the above description, the present invention further provides a simulation service establishing apparatus 100, which includes a first receiving module 110, a service generating module, and a service establishing module 140.
The first receiving module 110 is configured to receive and search a simulation model file corresponding to simulation model demand information from a model database of a simulation model system based on the simulation model demand information input by a user, generate a simulation model configuration file according to the simulation model file and the simulation model demand information, and add the simulation model configuration file to a service generation framework template generated based on a SpringBoot framework in the simulation model system. In this embodiment, the first receiving module 110 may be configured to execute step S110 shown in fig. 2, and for the specific description of the first receiving module 110, reference may be made to the description of step S110.
The second receiving module 120 is configured to receive service component configuration information input by a user, generate a service component configuration file based on a requirement analysis tool in the simulation model system, and add the service component configuration file to the service generation framework template. In this embodiment, the second receiving module 120 may be configured to perform step S120 shown in fig. 2, and the detailed description about the second receiving module 120 may refer to the foregoing description about step S120.
Referring to fig. 6, optionally, in this embodiment, the requirement analysis tool includes an XML file generation tool and a YML file generation tool, and the second receiving module 120 includes a first receiving submodule and a second receiving submodule 124.
The first receiving submodule is used for receiving simulation model component requirement information required by the service generation framework template input by a user in a form, generating an XML project object model configuration file by adopting an XML file generation tool in the simulation model system and adding the XML project object model configuration file into the service generation framework template. In this embodiment, the first receiving submodule may be configured to perform step S122 shown in fig. 3, and the foregoing description of step S122 may be referred to for a detailed description of the first receiving submodule.
The second receiving submodule 124 is configured to receive service component configuration information, which is input by a user in a form and is required by the service generation framework template, and generate a YML service configuration file by using a YML file generation tool in the simulation model system and add the YML service configuration file to the service generation framework template. In this embodiment, the second receiving submodule 124 may be configured to perform step S124 shown in fig. 3, and the detailed description about the second receiving submodule 124 may refer to the foregoing description about step S124.
The service generation module is configured to send the service generation framework template including the simulation model configuration file and the service component configuration file to a storage device associated with the terminal device 10, so as to generate a simulation service based on a model call logic input by a user. In this embodiment, the service generation module may be configured to execute step S130 shown in fig. 2, and the detailed description of the service generation module may refer to step S130 described above.
The service establishing module 140 is configured to obtain the simulation service in the storage device, receive the service description information for the simulation service input by the user, and encapsulate the service description information into the simulation service. In this embodiment, the service establishing module 140 may be configured to execute step S140 shown in fig. 2, and the detailed description about the service establishing module 140 may refer to the foregoing description about step S140.
Referring to fig. 7, optionally, in this embodiment, when the simulation service is multiple and the service description information of the simulation service includes the domain information of the simulation service and the entity type information included in each domain information, the apparatus further includes a classification module 150, a first relationship establishing module 160, and a second relationship establishing module 170.
The classification module 150 is configured to classify each simulation service according to the domain information and the entity category information included in the service description information of each simulation service, so as to obtain simulation services corresponding to each classification in different domains. In this embodiment, the classifying module 150 may be configured to perform step S150 shown in fig. 4, and the detailed description about the classifying module 150 may refer to the description about step S150.
The first relationship establishing module 160 is configured to receive the logic relationship description information of the simulation service for each classification under each field, which is input by the user, and establish a logic relationship for the simulation service corresponding to each classification under each field information based on the logic relationship description information. In this embodiment, the first relationship establishing module 160 may be configured to execute step S160 shown in fig. 4, and the detailed description about the first relationship establishing module 160 may refer to the foregoing description about step S160.
The second relationship establishing module 170 is configured to establish a simulation module hierarchical ontology tree in the simulation model system according to a preset simulation tree establishing rule, a simulation service corresponding to each entity classification information in each field information, and a logical relationship established by the simulation service of each classification in each field, where each simulation service corresponds to a terminal node in the simulation module hierarchical ontology tree, and the preset simulation tree establishing rule includes a plurality of layers of nodes and classification names corresponding to the nodes. In this embodiment, the detailed description about the second relationship establishing module 170 may refer to the description of the simulation service establishing method.
In summary, the simulation service establishing method and apparatus provided by the present invention, for each simulation service method, include: receiving and searching a corresponding simulation model file from a model database of the simulation model system based on the simulation model requirement information input by a user, generating a simulation model configuration file according to the simulation model file and the simulation model demand information, adding the service component configuration information into a service generation framework template, receiving the service component configuration information input by a user, generating a service component configuration file based on a requirement analysis tool in the simulation model system, adding the service component configuration file into the service generation framework template, sending the generated service generation framework template to a storage device, generating a simulation service with model call logic based on user input, obtaining the simulation service in a storage device, receiving service description information aiming at the simulation service and input by a user and packaging the service description information to the simulation service, the method and the device realize Web service of the simulation model file so as to be convenient for a user to call and meet the personalized requirements of the user on the simulation service.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A simulation service establishing method is applied to terminal equipment and used for establishing at least one simulation service, and is characterized in that for each simulation service, the simulation service establishing method comprises the following steps:
receiving and searching a simulation model file corresponding to the simulation model demand information from a model database of a simulation model system based on the simulation model demand information input by a user, generating a simulation model configuration file according to the simulation model file and the simulation model demand information, and adding the simulation model configuration file into a service generation framework template generated based on a SpringBoot framework in the simulation model system;
receiving service component configuration information input by a user, generating a service component configuration file based on a demand analysis tool in the simulation model system, and adding the service component configuration file into the service generation framework template;
sending the service generation framework template comprising the simulation model configuration file and the service component configuration file to a storage device associated with the terminal device so as to generate a simulation service based on a model call logic input by a user;
and acquiring the simulation service in the storage device, receiving the service description information aiming at the simulation service and input by a user, and encapsulating the service description information to the simulation service.
2. The simulation service creation method according to claim 1, wherein when there are a plurality of simulation services created by the simulation service creation method and the service description information of each simulation service includes the domain information of the simulation service and the entity type information included in each domain information, after the steps of obtaining the simulation service in the storage device, receiving the service description information for the simulation service input by the user and encapsulating the service description information into the simulation service are performed, the method further comprises:
classifying the simulation services according to the field information and the entity category information included in the service description information of the simulation services to obtain simulation services corresponding to the classifications in different fields;
and receiving logic relationship description information of the simulation services aiming at each classification under each field, which is input by a user, and establishing a logic relationship for the simulation services corresponding to each classification under each field information based on the logic relationship description information.
3. The simulation service establishing method according to claim 2, wherein after the step of receiving user-input logical relationship description information for simulation services of respective classes in each domain and establishing logical relationships for the simulation services of respective classes in the same domain based on the logical relationship description information is performed, the method further comprises:
establishing a simulation module hierarchy body tree in the simulation model system according to a preset simulation tree establishment rule, simulation services corresponding to entity classification information under each field information and a logical relation established by the simulation services of each classification under each field, wherein each simulation service corresponds to a terminal node in the simulation module hierarchy body tree, and the preset simulation tree establishment rule comprises a plurality of layers of nodes and classification names corresponding to the nodes.
4. The simulation service establishing method according to claim 3, wherein after the step of establishing the simulation module hierarchical ontology tree into the simulation model system based on the simulation service corresponding to each classification information under each domain information is executed, the method further comprises:
and respectively establishing a service registry maintained by a search server aiming at the simulation services in each field, wherein the service registry comprises the description information of each simulation service.
5. The simulation service creation method according to claim 1, wherein the requirement analysis tool includes an XML file generation tool and a YML file generation tool, and the step of receiving the service component configuration information input by the user and generating the service component configuration file based on the requirement analysis tool in the simulation model system and adding the service component configuration file to the service generation framework template includes:
receiving simulation model component requirement information required by the service generation framework template input by a user in a form, generating an XML project object model configuration file by adopting an XML file generation tool in the simulation model system, and adding the XML project object model configuration file into the service generation framework template;
and receiving service component configuration information required by the service generation framework template input by a user in a form, generating a YML service configuration file by adopting a YML file generation tool in the simulation model system, and adding the YML service configuration file into the service generation framework template.
6. The simulation service creation method of claim 1, wherein the steps of sending the simulation model service configuration file and the service creation framework template to a storage device associated with the simulation model system, creating a simulation service based on a model call logic input by a user, and sending the simulation service to the simulation model system comprise:
sending the service configuration file including the simulation model and the service generation framework template to a storage device associated with the terminal device;
and receiving and generating a customized simulation service based on a model call logic input by a user, and configuring a service generation framework template stored in the storage device to generate the simulation service.
7. An emulation service creation apparatus applied to a terminal device, the apparatus being configured to create at least one emulation service, the apparatus comprising:
the system comprises a first receiving module, a second receiving module and a service generation framework template generating module, wherein the first receiving module is used for receiving and searching a simulation model file corresponding to simulation model demand information from a model database of a simulation model system based on the simulation model demand information input by a user, generating a simulation model configuration file according to the simulation model file and the simulation model demand information, and adding the simulation model configuration file into the simulation model system based on the service generation framework template generated by a SpringBoot framework;
the second receiving module is used for receiving service component configuration information input by a user, generating a service component configuration file based on a requirement analysis tool in the simulation model system and adding the service component configuration file into the service generation framework template;
the service generation module is used for sending the service generation framework template comprising the simulation model configuration file and the service component configuration file to a storage device associated with the terminal device so as to generate simulation service based on model calling logic input by a user;
and the service establishing module is used for acquiring the simulation service in the storage device, receiving the service description information aiming at the simulation service and input by the user and packaging the service description information to the simulation service.
8. The simulation service creation apparatus according to claim 7, wherein the simulation service is a plurality of simulation services, and the service description information of the simulation service includes domain information of the simulation service and entity type information included in each domain information, the apparatus further comprising:
the classification module is used for classifying the simulation services according to the field information and the entity class information included in the service description information of the simulation services to obtain the simulation services corresponding to the classifications in different fields;
the first relation establishing module is used for receiving the logic relation description information of the simulation services aiming at each classification under each field, which is input by a user, and establishing the logic relation of the simulation services corresponding to each classification under each field information based on the logic relation description information.
9. The emulation service establishing apparatus of claim 8, further comprising:
and the second relation establishing module is used for establishing a simulation module hierarchy body tree in the simulation model system according to a preset simulation tree establishing rule, the simulation service corresponding to each entity classification information under each field information and the logical relation established by the simulation service of each classification under each field, wherein each simulation service corresponds to one terminal node in the simulation module hierarchy body tree, and the preset simulation tree establishing rule comprises a plurality of layers of nodes and classification names corresponding to the nodes.
10. The simulation service creation apparatus according to claim 7, wherein the requirement analysis tool includes an XML file generation tool and a YML file generation tool, and the second receiving module includes:
the first receiving submodule is used for receiving simulation model component requirement information required by the service generation framework template input by a user in a form, generating an XML project object model configuration file by adopting an XML file generation tool in the simulation model system and adding the XML project object model configuration file into the service generation framework template;
and the second receiving submodule is used for receiving service component configuration information required by the service generation framework template input by a user in a form, generating a YML service configuration file by adopting a YML file generation tool in the simulation model system and adding the YML service configuration file into the service generation framework template.
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 CN109446648A (en) | 2019-03-08 |
CN109446648B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110458383B (en) * | 2019-06-24 | 2020-08-18 | 平安国际智慧城市科技股份有限公司 | Method and device for realizing demand processing servitization, computer equipment and 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 |
CN112199082B (en) * | 2020-10-14 | 2023-04-14 | 杭州安恒信息技术股份有限公司 | HTTP response processing method and device, electronic equipment and storage medium |
CN114647459B (en) * | 2022-03-31 | 2024-04-26 | 国网河北省电力有限公司培训中心 | Protection schematic diagram model multiplexing simulation method and system |
Citations (4)
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 |
-
2018
- 2018-10-29 CN CN201811266949.0A patent/CN109446648B/en active Active
Patent Citations (4)
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)
Title |
---|
基于面向服务的通用任务规划仿真集成方法研究;吴江等;《系统仿真学报》;20090131;第21卷(第2期);第547-550,553页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109446648A (en) | 2019-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109446648B (en) | Simulation service establishing method and device | |
CN108628661B (en) | Automatic establishment method of cloud manufacturing service and cloud manufacturing system | |
US10331422B1 (en) | System and method for generating API devlopment code for integrating platforms | |
US9038082B2 (en) | Resource abstraction via enabler and metadata | |
CN104781802B (en) | User Defined Resource in resource stack | |
CN108170578B (en) | Log collection method and device | |
JP2010503905A (en) | Discovery web service | |
US9367289B2 (en) | Method and apparatus for enabling agile development of services in cloud computing and traditional environments | |
CN114981775B (en) | Cloud-based API metadata management method and system for integrated API management | |
CN106569880B (en) | Method and system for dynamically sharing resources between Android applications | |
AU2023251465A1 (en) | System and method for generating api development code for integrating platforms | |
CN109408375A (en) | The generation method and device of interface document | |
CN111858101A (en) | Cloud architecture system-oriented adaptation method, device, equipment and storage medium | |
US8972487B2 (en) | Automated framework for testing enterprise services consumer technologies | |
CN113495797A (en) | Message queue and consumer dynamic creation method and system | |
CN115269683A (en) | Data query method and device based on multi-party cooperation | |
CN113111107A (en) | Data comprehensive access system and method | |
CN104054308B (en) | Application layer resources selection method, device and system | |
CN110083366B (en) | Application running environment generation method and device, computing equipment and storage medium | |
EP2395468A1 (en) | Semantic user interface data assembling | |
CN113111109A (en) | Interface warehousing analysis access method of data source | |
CN114675982A (en) | General method and system for acquiring data of service integration system | |
CN116795397A (en) | Application management method, application management device, and computer-readable storage medium | |
CN103561113A (en) | Web Service interface generating method and device | |
CN115878860A (en) | Menu generation method, device, server equipment and medium |
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 |