CN115658020A - Domain model construction method and device, storage medium and electronic equipment - Google Patents
Domain model construction method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN115658020A CN115658020A CN202211384356.0A CN202211384356A CN115658020A CN 115658020 A CN115658020 A CN 115658020A CN 202211384356 A CN202211384356 A CN 202211384356A CN 115658020 A CN115658020 A CN 115658020A
- Authority
- CN
- China
- Prior art keywords
- layer
- parameter
- determining
- information
- construct
- 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
Links
- 238000010276 construction Methods 0.000 title claims description 19
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 58
- 238000000034 method Methods 0.000 claims abstract description 55
- 230000002452 interceptive effect Effects 0.000 claims abstract description 24
- 238000004364 calculation method Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 9
- 230000007246 mechanism Effects 0.000 claims description 7
- 238000004458 analytical method Methods 0.000 abstract description 11
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 238000013461 design Methods 0.000 abstract description 2
- 238000011161 development Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 13
- 230000006399 behavior Effects 0.000 description 8
- 230000001133 acceleration Effects 0.000 description 6
- 238000005452 bending Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 239000000470 constituent Substances 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000007493 shaping process Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000013499 data model Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000002620 method output Methods 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000007474 system interaction Effects 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method, a device, a storage medium and electronic equipment for constructing a domain model, wherein the method is applied to a model-driven industrial software architecture, the domain model comprises a domain layer, an application layer, an infrastructure layer and a presentation layer, and the method comprises the following steps: determining objects and object parameters in the industrial system to construct the domain layer; determining a corresponding relation among the object, the object parameter and the algorithm information to construct the application layer which is calculated based on the object, the object parameter, the algorithm information and the corresponding relation; determining storage facility information and service facility information to construct the infrastructure layer; and determining the information of the interactive interface to construct the display layer. The domain model is a software of domain analysis results, is an application template in the domain, and is beneficial to development and design of industrial software.
Description
Technical Field
The present invention relates to the field of software construction, and more particularly, to a method, an apparatus, a storage medium, and an electronic device for constructing a domain model.
Background
With the rapid development of industrial software, industrial software systems are more and more complex and have more and more powerful functions, so that the design requirements on the industrial software are higher and higher, the industrial software has particularity, and general software cannot meet the specific requirements of engineers, so that a specialized and customized industrial software architecture has a vital significance. However, objects faced by specialized and customized industrial software architectures are complex, and the difficulty in acquiring industrial software which can be used by users is high.
Disclosure of Invention
The invention provides a method and a device for constructing a domain model, a storage medium and electronic equipment, which are used for solving the technical problem that the difficulty in acquiring industrial software which can be used for a user is high in the prior art.
According to a first aspect of the present invention, there is provided a method for constructing a domain model, which is applied to a model-driven industrial software architecture, wherein the domain model includes a domain layer, an application layer, an infrastructure layer, and a presentation layer, and the method includes:
determining objects and object parameters in the industrial system to construct the domain layer;
determining a corresponding relation among the object, the object parameters and the algorithm information so as to construct the application layer which is calculated based on the object, the object parameters, the algorithm information and the corresponding relation;
determining storage facility information and service facility information to construct the infrastructure layer;
and determining the information of the interactive interface to construct the display layer.
Optionally, the determining a corresponding relationship between the object, the object parameter, and the algorithm information includes:
selecting a target object from the objects;
for each target object: selecting a target object parameter corresponding to the target object from the object parameters; determining a target input parameter and a target output parameter corresponding to the target object parameter; configuring the target object and configuration algorithm information corresponding to the target object parameters based on the target input parameters and the target output parameters;
and determining the corresponding relation among the object, the object parameters and the algorithm information according to the configuration algorithm information configured for each target object and the target object parameters corresponding to each target object.
Optionally, the domain layer comprises an object layer and a parameter layer; the determining objects and object parameters in the industrial system to construct the domain layer includes:
determining corresponding composition structure information of the industrial system;
defining objects in the industrial system based on the composition structure information to construct the object layer;
defining object parameters of the object to construct the parameter layer.
Optionally, the defining the object in the industrial system based on the composition structure information includes:
determining a topological relation corresponding to the composition structure information;
and expressing the topological relation in a tree structure, and defining the objects in the industrial system step by step.
Optionally, the defining object parameters of the object to construct the parameter layer includes:
for each object:
determining the parameter type corresponding to the object;
and determining the parameter name in the parameter type to construct the parameter layer.
Optionally, the method further comprises:
the display layer transmits input information input by a user on an interactive interface to the application layer;
the application layer determines target algorithm information corresponding to the input information based on the corresponding relation;
the application layer calls target algorithm information stored in the infrastructure layer to determine a calculation result; and transmitting the calculation result to the presentation layer;
and the display layer displays the calculation result on the interactive interface.
Optionally, the storage facility information includes a database, a data warehouse, a file system, an API interface, and a cache mechanism; the service facility information includes a model library, a method library, and a template library.
According to a second aspect of the present invention, there is provided a device for constructing a domain model, which is disposed in a model-driven industrial software architecture, wherein the domain model includes a domain layer, an application layer, an infrastructure layer, and a presentation layer, and includes:
the domain layer building module is used for determining objects and object parameters in the industrial system so as to build the domain layer;
an application layer construction module, configured to determine a corresponding relationship between the object, the object parameter, and the algorithm information, so as to construct the application layer that is calculated based on the object, the object parameter, the algorithm information, and the corresponding relationship;
the facility layer construction module is used for determining storage facility information and service facility information so as to construct the infrastructure layer;
and the display layer construction module is used for determining the information of the interactive interface so as to construct the display layer.
According to a third aspect of the present invention, there is provided a computer-readable storage medium storing a computer program for executing the above-described method for constructing a domain model.
According to a fourth aspect of the present invention, there is provided an electronic apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
and the processor is used for reading the executable instruction from the memory and executing the instruction to realize the construction method of the field model.
Compared with the prior art, the method and the device for constructing the domain model, the computer-readable storage medium and the electronic equipment provided by the invention at least have the following beneficial effects:
the technical scheme of the invention determines the object and the object parameter in the industrial system to construct the field layer of the field model; determining the corresponding relation among the object, the object parameter and the algorithm information to construct an application layer of the domain model, wherein the application layer can calculate and analyze according to the object, the object parameter, the algorithm information and the corresponding relation; determining storage facility information and service facility information to construct an infrastructure layer of the domain model; and determining the information of the interactive interface so as to construct a display layer of the domain model. According to the technical scheme, the domain model is constructed through constructing the domain layer, the application layer, the infrastructure layer and the display layer, is a field analysis result software, is a domain application template, can be applied to similar industrial systems, has reusability, and ensures the flexibility and the expansibility of the domain model through the configuration of objects, object parameters and algorithm information. Furthermore, the industrial system can be clearly and accurately represented by utilizing the field model, the complexity of industrial software design is simplified, and the industrial software which can be used for users can be acquired.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flowchart illustrating a method for constructing a domain model according to an exemplary embodiment of the present invention;
FIG. 2 is a schematic diagram of an object in a method for constructing a domain model according to an exemplary embodiment of the present invention;
fig. 3 is a schematic diagram of an object and an object parameter in a method for constructing a domain model according to an exemplary embodiment of the present invention;
FIG. 4 is a schematic diagram of interference analysis in a method for constructing a domain model according to an exemplary embodiment of the present invention;
FIG. 5 is a diagram illustrating a domain model in a domain model construction method according to an exemplary embodiment of the present invention;
fig. 6 is a schematic structural diagram of a domain model building apparatus according to an exemplary embodiment of the present invention;
fig. 7 is a block diagram of an electronic device provided in an exemplary embodiment of the invention.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, belong to the protection scope of the present embodiments.
Exemplary method
Fig. 1 is a flowchart of a method for constructing a domain model according to an exemplary embodiment of the present invention, which is applied to a model-driven industrial software architecture, where the domain model includes a domain layer, an application layer, an infrastructure layer, and a presentation layer, and includes at least the following steps:
and step 11, determining the object and the object parameter in the industrial system to construct the field layer.
The industrial system is a target object corresponding to the industrial software, for example, the industrial system may be an industrial robot system, a robot pipe bending system, or the like. Objects in an industrial system are defined, which can be things that are present in the industrial system by guests, such as time, products, and people. And defining related parameters around the object to obtain object parameters, wherein the object parameters can be used for reflecting object characteristics. The defined objects and object parameters together make up a domain layer of the domain model.
In one embodiment, the domain layers include an object layer and a parameter layer; step 11, determining the object and the object parameter in the industrial system to construct the domain layer, including:
and step 111, determining the corresponding composition structure information of the industrial system.
The composition structure information is a result obtained by performing field analysis on the industrial system, for example, a field expert analyzes the industrial system to determine the composition structure information of the industrial system. The composition structure information may include composition objects at different levels of the industrial system. E.g., a component object at a first level, a component object at a second level, a component object at a third level, etc., the second level being lower than the first level and the third level being lower than the second level.
And 112, defining the object in the industrial system based on the composition structure information to construct the object layer.
Specifically, each composition object in the composition result information is defined to obtain an object in the industrial system, and an object layer is constructed.
In one embodiment, the step 112 defines an object in the industrial system based on the compositional structure information, including:
step 1121, determining the topological relation corresponding to the composition structure information.
And step 1122, representing the topological relation in a tree structure, and defining the objects in the industrial system step by step.
Specifically, the composition structure information includes composition objects of different levels of the industrial system, and the composition objects of different levels correspond to the topological relation. Therefore, the tree structure can be used for representing the topological relation, and the definition of the object is carried out step by step according to different levels of the composition object.
For example, the objects to be processed in the robotic tube bending system include tubes, tube bending machines, robots, grippers, and bases. The pipe bender comprises a rotary device, a swing arm device, a main clamping device, a guide clamping device, a pipe bender support, a mold and other sub-products. The robot comprises sub-products such as a J1 arm, a J2 arm, a J3 arm, a J4 arm, a J5 arm, a J6 arm and the like. Therefore, the pipe fitting, the pipe bender, the robot, the hand grab and the base are formed objects at a first level; the rotating device, the swing arm device, the main clamping device, the guide clamping device and the pipe bender support are the second-level composition objects corresponding to the pipe bender; the robot J1 arm, J2 arm, J3 arm, J4 arm, J5 arm, and J6 arm are second-level constituent objects corresponding to the robot. And representing the topological relation by using a tree structure, defining an object of the robot bent pipe system, and obtaining an object schematic diagram shown in fig. 2.
Specifically, defining the constituent objects at the first level results in product 1: a pipe fitting; product 2: a pipe bender; product 3: a robot; product 4: hand grasp and product 5 base. Further for product 2: defining the composition object of the second level corresponding to the pipe bender to obtain a product 2-1: a rotating device; product 2-2: a swing arm device; 2-3 of products: a main clamping device; 2-4 of products: a clip guide device; 2-5 parts of product: a pipe bender support device; 2-6 of products: and (5) molding. Further for product 3: and defining the composition object of the second level corresponding to the robot to obtain a product 3-1: a J1 arm; product 3-2: a J2 arm; 3-3 parts of product: a J3 arm; 3-4 of products: a J4 arm; 3-5 parts of product: a J5 arm; 3-6 parts of product: j6 arm. Fig. 2 clearly and clearly shows the possible objects included in the industrial system and the existing relationships among different objects, and embodies the results of the field analysis.
Step 113, defining object parameters of the object to construct the parameter layer.
Specifically, after the object is defined, the object parameters of the object are further defined, and a parameter layer is constructed.
In a possible implementation manner, all possible object parameters are set, and then a corresponding object parameter is selected for each object, so that an object parameter is configured for each object, and a parameter layer is constructed.
In another possible implementation manner, the object parameters of each object are defined one by one, and the parameter layer is determined.
For example, as shown in FIG. 3, for product 1, the defined product parameters include: pipe cross-sectional shape, pipe wall thickness, pipe trajectory, pipe length, pipe CAD file, pipe YBCR parameters (Y is feed length, b is pipe winding feed rotation angle, C is bend angle, R is bend radius), and product parameters: and (6) detecting the formed pipe fitting.
Further, for product 2-1, the defined product parameters include: a part CAD file, a rotation center shaft and a rotation speed; for product 2-2, the defined product parameters include: a part CAD file, a rotation center shaft and a rotation speed; for products 2-3, the defined product parameters include: the method comprises the following steps of (1) part CAD files, the translation direction of a main clamp, the clamping position and the moving speed of the main clamp; for products 2-4, the defined product parameters include: the method comprises the following steps of (1) part CAD files, guide clamp translation direction, guide clamp clamping, clamp withdrawing position and moving speed; for products 2-5, the defined product parameters include: a part CAD file; for products 2-6, the defined product parameters include: CAD file, type, bending radius, matching pipe diameter, layer number, mould height, center height, demoulding length and width of the part.
Further, for product 3-1, the defined product parameters include: part CAD file, rotation center shaft, rotation speed and acceleration; for product 3-2, the defined product parameters include: part CAD file, rotation center shaft, rotation speed and acceleration; for products 3-3, the defined product parameters include: part CAD file, rotation center shaft, rotation speed and acceleration; for products 3-4, the defined product parameters include: part CAD file, rotation center shaft, rotation speed and acceleration; for products 3-5, the defined product parameters include: part CAD file, rotation center shaft, rotation speed and acceleration; for products 3-6, the defined product parameters include: part CAD file, center axis of rotation, rotational speed, acceleration.
Further, for product 4, the defined product parameters include: the method comprises the following steps of (1) preparing a part CAD file, a hand-grasping interference length, a hand-grasping rotation center, a rotation shaft and a rotation speed; for product 5, the defined product parameters include: part CAD file, base height, base width.
It should be noted that, of course, other parameters may be set, and this embodiment is not particularly limited.
After the object parameters are defined, the object and the object parameters can clearly and definitely present the industrial system, and the clearly and definitely object and the object parameters are beneficial to the construction of industrial software.
In one embodiment, the step 113 defines object parameters of the object to construct the parameter layer, and includes: for each object: determining the parameter type corresponding to the object; and determining the parameter name in the parameter type to construct the parameter layer.
Specifically, when a parameter layer is constructed, the parameter types are divided, different parameter types correspond to different category names, and the parameter names are further defined in different parameter types, so that the parameter information related to the object not only includes the parameter names, but also includes the parameter types corresponding to the parameter names, and the definition of the object parameters is more organized.
For example, CAD file parameters (a pipe, an stp file, a general component, and an obj file) of a pipe are defined, where the CAD file parameters are parameter types, and the pipe, stp file, and general component, and the obj file are parameter names under the parameter types; defining geometric parameters (length, width, height, thickness and radius) of the pipe fitting, wherein the geometric parameters are parameter types, and the length, width, height, thickness and radius are parameter names under the parameter types; the general parameter of pipe fitting (pipe fitting cross sectional Shape, pipe fitting trajectory Shape, theoretical pipe fitting YBCR parameter, shaping pipe fitting detection YBCR parameter) of definition pipe fitting, wherein, the general parameter of pipe fitting is the parameter type, and pipe fitting cross sectional Shape, pipe fitting trajectory Shape, theoretical pipe fitting YBCR parameter, shaping pipe fitting detection YBCR parameter are the parameter name.
And step 12, determining the corresponding relation among the object, the object parameter and the algorithm information to construct the application layer which is calculated based on the object, the object parameter, the algorithm information and the corresponding relation.
After the object and the object parameter are defined in the domain layer, calculation and analysis are performed in the application layer, so that the corresponding relationship among the object, the object parameter and the algorithm information needs to be determined to construct the application layer, and the application layer can perform calculation based on the object, the object parameter, the algorithm information and the corresponding relationship. Specifically, the application layer may be defined by a designer, that is, a common language that can be understood by different people is used for defining the object and the object parameter. And the designer assigns values according to the objects and object parameters defined in the field layer and calls an algorithm to analyze and calculate.
In an embodiment, the determining the corresponding relationship among the object, the object parameter, and the algorithm information in step 12 includes:
step 121, selecting a target object from the objects.
Step 122, for each target object: selecting a target object parameter corresponding to the target object from the object parameters; determining a target input parameter and a target output parameter corresponding to the target object parameter; and configuring the target object and configuration algorithm information corresponding to the target object parameters based on the target input parameters and the target output parameters.
Step 123, determining the corresponding relationship among the object, the object parameter and the algorithm information according to the configuration algorithm information configured for each target object and the target object parameter corresponding to each target object.
In this embodiment, a target object is selected from the objects, where the target object may be all or a part of the defined objects, and the selection manner may be sequential selection, or may be random selection of an unselected object as the target object. And then further determining target object parameters corresponding to the target object, determining target input parameters and target output parameters corresponding to the target object parameters, wherein the target input parameters are independent variable parameters, the target output parameters are dependent variable parameters, configuring algorithm information according to the target input parameters and the target output parameters, and determining configured algorithm information. One target object and the target object parameter corresponding to the target object correspond to the relevant configuration algorithm information, so that the corresponding relation among the object, the object parameter and the algorithm information can be determined according to all the target objects.
For example, for interferometric analysis of a robotic elbow system, there is an interferometric analysis diagram as described in fig. 4. Designing different flow elements to perform different analysis calculations, wherein the flow element 6 determines that a target object corresponding to the interference judgment corresponds to the associated product in the graph 3 when the interference judgment definition is performed aiming at the interference analysis, and the product 1: pipe fitting, product 2: pipe bender, product 3: robot, product 4: and (4) grasping by hand. And determining the target parameters corresponding to the behavior parameters in the figure 3, and selecting behavior input parameters and behavior output parameters, wherein the behavior input parameters are parameters of animation files for processing the current pipe fitting, and the behavior output parameters are interference results of the interference component at a certain time. Inquiring in a method library, determining corresponding configuration algorithm information, wherein the method library corresponding to the configuration algorithm information is named InterferceJudge, a method input parameter corresponding to the method is an animation file, a method output parameter corresponding to the method is an interference result of an interference component at a certain time, and corresponds to a selected behavior input parameter and a selected behavior output parameter, so that a related product, a behavior parameter and a method library method name are obtained: the correspondence between the interferencejudgments.
And step 13, determining storage facility information and service facility information to construct the infrastructure layer.
The storage facility information comprises a database, a data warehouse, a file system, an API (application programming interface) interface and a cache mechanism; the service facility information includes a model library, a method library, and a template library.
Specifically, the infrastructure layer is completed by developers, that is, the field layer, the application layer and the infrastructure layer use a universal language, so that invariance caused by using different languages for subsequent workers is avoided, difficulty is reduced through a unified universal language, and efficiency is improved. In the aspect of infrastructure layer storage, developers construct databases, data warehouses, file systems, API (application programming interface) related interfaces, cache mechanisms and the like required by industrial software. Databases, data warehouses, and file systems are used to provide storage for various types of data required by industrial software, including relational, non-relational, and file data. The API interface and caching mechanism are used to handle the interaction of the industrial system and the storage system. Developers build model libraries, method libraries and template libraries at the infrastructure layer service side. The model base is used for storing various data models and relation models of the industrial system, the method base is used for storing algorithms of various processing of the industrial system, and the template base is used for storing various interfaces of system interaction.
And step 14, determining the information of the interactive interface to construct the display layer.
Specifically, the presentation layer is completed by a developer for providing various interactive pages for the user. The interactive page information is information required for constructing various interactive pages, so that a display layer can be constructed after the interactive page information is determined.
FIG. 5 shows a schematic diagram of a domain model, which is a three-dimensional four-layer unified model, including a domain layer, an application layer, a presentation layer and an infrastructure layer, wherein the domain layer includes a product component, a process component and a personnel component, and the product, the process and the personnel are objects with different dimensions. The application layer comprises method components, the method components comprise corresponding relations among different objects, object parameters and algorithm information, the display layer corresponds to user interfaces of an APP (application program) and a WEB (network) server, the infrastructure layer comprises an infrastructure service aspect and an infrastructure storage aspect, the infrastructure service aspect comprises a model base, a method base and a template base, and the infrastructure storage aspect comprises a database, a data base, an API (application program interface), a cache and a file system.
In an embodiment, the method further comprises:
and step 15, the display layer transmits the input information input by the user on the interactive interface to the application layer.
And step 16, the application layer determines target algorithm information corresponding to the input information based on the corresponding relation.
Step 17, the application layer calls the target algorithm information stored in the infrastructure layer to determine a calculation result; and transmitting the calculation result to the presentation layer.
And step 18, the display layer displays the calculation result on the interactive interface.
In this embodiment, after the domain model is constructed, the domain model is expressed by a code, so that the domain model is used to provide a service for a user, when the user uses the domain model, the user inputs information on an interactive interface, a presentation layer of the domain model transmits the input information input by the user on the interactive interface to an application layer (such as data transmission in fig. 5), the application layer determines target algorithm information corresponding to the input information according to the corresponding relationship, the application layer calls the target algorithm information stored in an infrastructure layer to determine a calculation result, the application layer further transmits the calculation result to the presentation layer (such as data transmission in fig. 5), the presentation layer displays the calculation result in the interactive interface, and the user can quickly know required information.
In the embodiment, the object and the object parameter in the industrial system are determined to construct the domain layer of the domain model; determining the corresponding relation among the object, the object parameter and the algorithm information to construct an application layer of the domain model, wherein the application layer can calculate and analyze according to the object, the object parameter, the algorithm information and the corresponding relation; determining storage facility information and service facility information to construct an infrastructure layer of the domain model; and determining the information of the interactive interface so as to construct a display layer of the domain model. In the technical scheme provided by the embodiment, the domain model is constructed through constructing the domain layer, the application layer, the infrastructure layer and the presentation layer, is a field analysis result software, is a domain application template, can be applied to similar industrial systems, has reusability, and ensures the flexibility and the expansibility of the domain model through the configuration of objects, object parameters and algorithm information. Furthermore, the industrial system can be clearly and accurately represented by using the field model, the complexity of industrial software design is simplified, and the industrial software which can be used for a user can be acquired.
Exemplary devices
Based on the same conception as that of the method embodiment, the embodiment of the invention also provides a device for constructing the domain model.
Fig. 6 is a schematic structural diagram of a device for constructing a domain model provided in an industrial software architecture driven by a model, where the domain model includes a domain layer, an application layer, an infrastructure layer, and a presentation layer, and includes:
a domain layer construction module 61, configured to determine an object and an object parameter in the industrial system to construct the domain layer;
an application layer construction module 62, configured to determine a corresponding relationship between the object, the object parameter, and the algorithm information, so as to construct the application layer that is calculated based on the object, the object parameter, the algorithm information, and the corresponding relationship;
a facility layer construction module 63, configured to determine storage facility information and service facility information to construct the infrastructure layer;
and the display layer construction module 64 is used for determining the interactive interface information so as to construct the display layer.
In an exemplary embodiment of the present invention, the application layer building module 62 includes:
an object determination unit configured to select a target object from the objects;
an algorithm configuration unit for, for each target object: selecting a target object parameter corresponding to the target object from the object parameters; determining a target input parameter and a target output parameter corresponding to the target object parameter; configuring the target object and configuration algorithm information corresponding to the target object parameters based on the target input parameters and the target output parameters;
and the relationship determining unit is used for determining the corresponding relationship among the object, the object parameters and the algorithm information according to the configuration algorithm information configured for each target object and the target object parameters corresponding to each target object.
In an exemplary embodiment of the present invention, the domain layer includes an object layer and a parameter layer; the domain layer building block 61 includes:
the information determining unit is used for determining the corresponding composition structure information of the industrial system;
the object construction unit is used for defining the objects in the industrial system based on the composition structure information so as to construct the object layer;
and the parameter construction unit is used for defining the object parameters of the object so as to construct the parameter layer.
In an exemplary embodiment of the present invention, the object constructing unit is further configured to determine a topological relation corresponding to the composition structure information; and expressing the topological relation in a tree structure, and defining the objects in the industrial system step by step.
In an exemplary embodiment of the invention, the parameter construction unit is further configured to, for each object: determining the parameter type corresponding to the object; and determining the parameter name in the parameter type to construct the parameter layer.
In an exemplary embodiment of the invention, the apparatus further comprises:
the data acquisition module is used for transmitting input information input by a user on an interactive interface to the application layer by the presentation layer;
the algorithm determining module is used for determining target algorithm information corresponding to the input information by the application layer based on the corresponding relation;
the data calculation module is used for calling target algorithm information stored in the infrastructure layer by the application layer and determining a calculation result; and transmitting the calculation result to the presentation layer;
and the result display module is used for displaying the calculation result on the interactive interface by the display layer.
In an exemplary embodiment of the invention, the storage facility information includes a database, a data warehouse, a file system, an API interface, a caching mechanism; the service facility information includes a model library, a method library, and a template library.
Exemplary electronic device
FIG. 7 illustrates a block diagram of an electronic device in accordance with an embodiment of the present invention.
As shown in fig. 7, the electronic device 70 includes one or more processors 71 and a memory 72.
The processor 71 may be a Central Processing Unit (CPU) or other form of processing unit having domain model building capabilities and/or instruction execution capabilities, and may control other components in the electronic device 70 to perform desired functions.
Memory 72 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 71 to implement the above-described method for constructing a domain model of the various embodiments of the present invention and/or other desired functions.
In one example, the electronic device 70 may further include: an input device 73 and an output device 74, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
Of course, for the sake of simplicity, only some of the components of the electronic device 70 related to the present invention are shown in fig. 7, and components such as buses, input/output interfaces, and the like are omitted. In addition, the electronic device 70 may include any other suitable components, depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
Sixth aspect, in addition to the above methods and apparatus, embodiments of the present invention may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method of constructing a domain model according to various embodiments of the present invention described in the "exemplary methods" section above of this specification.
The computer program product may write program code for carrying out operations for embodiments of the present invention in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present invention may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method of constructing a domain model according to various embodiments of the present invention described in the "exemplary methods" section above in this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present invention have been described above with reference to specific embodiments, but it should be noted that the advantages, effects, etc. mentioned in the present invention are only examples and are not limiting, and the advantages, effects, etc. must not be considered to be possessed by various embodiments of the present invention. Furthermore, the foregoing detailed description of the invention is provided for the purpose of illustration and understanding only, and is not intended to be limiting, since the invention will be described in any way as it would be understood by one skilled in the art.
The block diagrams of devices, apparatuses, systems involved in the present invention are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably herein. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the apparatus, devices and methods of the present invention, the components or steps may be broken down and/or re-combined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention.
The previous description of the inventive aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the invention to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (10)
1. A method for constructing a domain model is applied to a model-driven industrial software architecture, wherein the domain model comprises a domain layer, an application layer, an infrastructure layer and a presentation layer, and the method comprises the following steps:
determining objects and object parameters in the industrial system to construct the domain layer;
determining a corresponding relation among the object, the object parameter and the algorithm information to construct the application layer which is calculated based on the object, the object parameter, the algorithm information and the corresponding relation;
determining storage facility information and service facility information to construct the infrastructure layer;
and determining the information of the interactive interface to construct the display layer.
2. The method of claim 1, wherein determining the correspondence between the object, the object parameter, and the algorithm information comprises:
selecting a target object from the objects;
for each target object: selecting a target object parameter corresponding to the target object from the object parameters; determining a target input parameter and a target output parameter corresponding to the target object parameter; configuring the target object and configuration algorithm information corresponding to the target object parameter based on the target input parameter and the target output parameter;
and determining the corresponding relation among the object, the object parameters and the algorithm information according to the configuration algorithm information configured for each target object and the target object parameters corresponding to each target object.
3. The method of claim 1, wherein the domain layers comprise an object layer and a parameter layer; the determining objects and object parameters in the industrial system to construct the domain layer includes:
determining corresponding composition structure information of the industrial system;
defining objects in the industrial system based on the composition structure information to construct the object layer;
defining object parameters of the object to construct the parameter layer.
4. The method of claim 3, wherein the defining objects in the industrial system based on the compositional structure information comprises:
determining a topological relation corresponding to the composition structure information;
and expressing the topological relation in a tree structure, and defining the objects in the industrial system step by step.
5. The method of claim 1, wherein defining object parameters of the object to construct the parameter layer comprises:
for each object:
determining the parameter type corresponding to the object;
and determining the parameter name in the parameter type to construct the parameter layer.
6. The method of claim 1, further comprising:
the display layer transmits input information input by a user on an interactive interface to the application layer;
the application layer determines target algorithm information corresponding to the input information based on the corresponding relation;
the application layer calls target algorithm information stored in the infrastructure layer to determine a calculation result; and transmitting the calculation result to the presentation layer;
and the display layer displays the calculation result on the interactive interface.
7. The method of claim 1, wherein the storage facility information comprises a database, a data warehouse, a file system, an API interface, a caching mechanism; the service facility information includes a model library, a method library, and a template library.
8. The device for constructing the domain model is arranged in a model-driven industrial software architecture, the domain model comprises a domain layer, an application layer, an infrastructure layer and a display layer, and the device comprises:
the domain layer building module is used for determining objects and object parameters in the industrial system so as to build the domain layer;
an application layer construction module, configured to determine a corresponding relationship between the object, the object parameter, and the algorithm information, so as to construct the application layer that is calculated based on the object, the object parameter, the algorithm information, and the corresponding relationship;
the facility layer construction module is used for determining storage facility information and service facility information so as to construct the infrastructure layer;
and the display layer construction module is used for determining the interactive interface information so as to construct the display layer.
9. A computer-readable storage medium storing a computer program for executing the method of constructing a domain model according to any one of claims 1 to 7.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instructions from the memory and executing the instructions to realize the construction method of the domain model of any one of the claims 1-7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211384356.0A CN115658020B (en) | 2022-11-07 | 2022-11-07 | Domain model construction method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211384356.0A CN115658020B (en) | 2022-11-07 | 2022-11-07 | Domain model construction method and device, storage medium and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115658020A true CN115658020A (en) | 2023-01-31 |
| CN115658020B CN115658020B (en) | 2024-02-20 |
Family
ID=85016512
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211384356.0A Active CN115658020B (en) | 2022-11-07 | 2022-11-07 | Domain model construction method and device, storage medium and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115658020B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117389542A (en) * | 2023-09-06 | 2024-01-12 | 苏州数设科技有限公司 | Industrial software construction method and device, electronic equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110019635A (en) * | 2019-04-10 | 2019-07-16 | 华夏天信(北京)智能低碳技术研究院有限公司 | A kind of construction method of the pollutant in coalmine neighborhood system model based on RED-MOS |
| CN112558941A (en) * | 2020-12-22 | 2021-03-26 | 上海上实龙创智能科技股份有限公司 | DDD-based micro-service request processing method, system, device and medium |
| CN114185695A (en) * | 2021-11-26 | 2022-03-15 | 中国汽车技术研究中心有限公司 | Method and system for loosely coupled data processing based on industrial APP microservices |
-
2022
- 2022-11-07 CN CN202211384356.0A patent/CN115658020B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110019635A (en) * | 2019-04-10 | 2019-07-16 | 华夏天信(北京)智能低碳技术研究院有限公司 | A kind of construction method of the pollutant in coalmine neighborhood system model based on RED-MOS |
| CN112558941A (en) * | 2020-12-22 | 2021-03-26 | 上海上实龙创智能科技股份有限公司 | DDD-based micro-service request processing method, system, device and medium |
| CN114185695A (en) * | 2021-11-26 | 2022-03-15 | 中国汽车技术研究中心有限公司 | Method and system for loosely coupled data processing based on industrial APP microservices |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117389542A (en) * | 2023-09-06 | 2024-01-12 | 苏州数设科技有限公司 | Industrial software construction method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115658020B (en) | 2024-02-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102242138B1 (en) | Digital twin based piping design modeling device and method | |
| Liu et al. | Benchmarking and optimization of robot motion planning with motion planning pipeline | |
| EP2369513A2 (en) | Methods and systems for constructing multi-dimensional data models for distribution networks | |
| CN101366031B (en) | Method and device for simulating bending of a tube | |
| JP2020532814A (en) | Manufacturing design correction system | |
| KR19990023526A (en) | Modeling method and apparatus of material processing system | |
| EP4113390B1 (en) | Method for processing data, and electronic device | |
| JP7634731B2 (en) | Method and apparatus for updating an object detection model | |
| CN115658020B (en) | Domain model construction method and device, storage medium and electronic equipment | |
| Yun et al. | Digital twin model construction of robot and multi-object under stacking environment for grasping planning | |
| CN114782627A (en) | Three-dimensional model collision detection method and device, electronic equipment and medium | |
| US20240111922A1 (en) | System and method for managing simulation artifacts | |
| KR101986890B1 (en) | Method and Device for registering information and modeling ontology for searching smart factory | |
| EP4044111A1 (en) | Design assistance device, design assistance method, and design assistance program | |
| WO2021154251A1 (en) | Automatic simplification of a rigid-body simulation | |
| JP5897912B2 (en) | Wire harness analysis device, wire harness analysis method, and wire harness analysis program | |
| US20050228804A1 (en) | Analysis model producing/assisting apparatus | |
| EP4123495A1 (en) | Cylindrical collision simulation using specialized rigid body joints | |
| Ma et al. | Motion planning for deformable linear objects under multiple constraints | |
| CN116252294A (en) | Robot dynamic parameter identification method and device, electronic equipment and storage medium | |
| US20220100181A1 (en) | Wiring diagram manager and emulator | |
| CN110147619A (en) | A kind of Assembly And Disassembly method, device and equipment | |
| Rathod et al. | A Python-Based GUI Approach for Efficient Component Design of Compound Die for Composite Material: 3D and 2D CAD Modeling. | |
| Fasanella et al. | Advanced Deviation Analysis Visualization for BIM in Heritage Environment | |
| US20250256400A1 (en) | A method and a system for detecting possible collisions of objects in an industrial manufacturing environment |
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 |