CN117389984A - Construction method and device of industrial software object model, medium and electronic equipment - Google Patents

Construction method and device of industrial software object model, medium and electronic equipment Download PDF

Info

Publication number
CN117389984A
CN117389984A CN202311147059.9A CN202311147059A CN117389984A CN 117389984 A CN117389984 A CN 117389984A CN 202311147059 A CN202311147059 A CN 202311147059A CN 117389984 A CN117389984 A CN 117389984A
Authority
CN
China
Prior art keywords
library
level
attribute
tree
determining
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.)
Pending
Application number
CN202311147059.9A
Other languages
Chinese (zh)
Inventor
牟全臣
王佳毅
周连林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Shushe Technology Co ltd
Original Assignee
Suzhou Shushe Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Shushe Technology Co ltd filed Critical Suzhou Shushe Technology Co ltd
Priority to CN202311147059.9A priority Critical patent/CN117389984A/en
Publication of CN117389984A publication Critical patent/CN117389984A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/211Schema design and management
    • G06F16/212Schema design and management with details for data modelling support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/289Object oriented databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a construction method and a construction device of an industrial software object model, wherein the method comprises the following steps: determining a tree hierarchy of the target industrial software object; each element in the tree-level structure is correspondingly provided with an attribute library, a method library and a state library which have association relations; determining an element identifier of each element in the tree hierarchy; determining a multi-level vector structure of the target industrial software object based on the element identification and the tree hierarchy structure of each element; based on the attribute library of each element in the tree-shaped hierarchical structure, filling data into the multi-level vector structure to obtain an object model of the target industrial software object; the object model is provided with an attribute library, a method library and a state library of each element of the tree hierarchy structure, and the attribute library is updated based on the association relation under the condition of updating the method library or the state library. According to the technical scheme provided by the invention, the data interaction and information sharing capability of the model are effectively improved by establishing the association relation among the attribute library, the method library and the state library.

Description

Construction method and device of industrial software object model, medium and electronic equipment
Technical Field
The present invention relates to the technical field of industrial software, and more particularly, to a method, an apparatus, a medium, and an electronic device for constructing an industrial software object model.
Background
Industrial software is a tie linking traditional industrial production with modern informatization, is a load bearing for intelligent manufacturing, and has been deeply integrated into industrial design and manufacturing flow. Under the large background of gradual transformation and upgrading in manufacturing industry, the importance degree of industrial software is continuously improved, the complexity degree of industrial objects is increased, the construction requirement on an industrial software object model is increased, however, the object model constructed by the current construction method of the industrial software object model often has the problem of poor data interaction capability, and the requirement of an industrial system is difficult to meet.
Disclosure of Invention
The invention provides a construction method and device of an industrial software object model, a computer readable storage medium and electronic equipment, and aims to solve the technical problem that the data interaction capability of the object model constructed in the prior art is poor.
According to a first aspect of the present invention, there is provided a method for constructing an industrial software object model, comprising:
determining a tree hierarchy of the target industrial software object; each element in the tree hierarchy structure corresponds to an attribute library, a method library and a state library, and the attribute library, the method library and the state library of the same element have an association relation;
Determining element identifiers of each element in the tree hierarchy, wherein the element identifiers of the lower elements comprise element identifiers of the upper elements, and the upper elements and the lower elements are in different hierarchies and have inclusion relations;
determining a multi-level vector structure of the target industrial software object based on the element identification of each element and the tree hierarchy;
based on the attribute library of each element in the tree-shaped hierarchical structure, filling data into the multi-level vector structure to obtain an object model of the target industrial software object; the object model is provided with the attribute library, the method library and the state library of each element of the tree hierarchy structure, and the attribute library is updated based on the association relation under the condition that the method library is updated or the state library is updated.
Optionally, the determining the multi-level vector structure of the target industrial software object based on the element identification and the tree hierarchy of each element includes:
determining vector expression information of each level of the tree hierarchy based on the element identification of each element and the tree hierarchy;
and determining a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree-shaped hierarchical structure.
Optionally, the determining the tree hierarchy of the target industrial software object includes:
determining a root element and a first-level element of the target industrial software object, wherein the first-level element is a sub-element of the root element;
constructing a first level and a second level of the tree-shaped hierarchical structure based on the root element and the first level element;
taking the second level as a first current level, and constructing a next current level based on a next level subelement under the condition that the current level element of the current level exists the next level subelement; and under the condition that the current level element of the current level does not have the next level sub-element, obtaining the constructed tree-shaped level structure.
Optionally, before the step of determining the element identity of each element in the tree hierarchy, the method further comprises:
constructing the attribute library, the method library and the state library for each element;
and representing the same element in the attribute library, the method library and the state library by the same field information to determine the association relationship among the attribute library, the method library and the state library.
Optionally, the building the attribute library, the method library and the state library for each element includes:
Constructing a basic model attribute library, wherein the basic model attribute library is used for establishing a peer-to-peer relationship between different field information;
acquiring an original attribute library, an original method library and an original state library;
and carrying out field correction on the original attribute library, the original method library and the original state library based on the basic model attribute library to obtain an attribute library, a method library and a state library of each element.
Optionally, for the upper and lower level elements which are in different levels and have inclusion relations, the attribute library of the lower level element has inheritance relations with the attribute library of the upper level element; in the case of an attribute library update of an upper level element, the attribute library of the lower level element is updated.
According to a second aspect of the present invention, there is provided an apparatus for constructing an industrial software object model, comprising:
the first structure determining module is used for determining a tree-shaped hierarchical structure of the target industrial software object; each element in the tree hierarchy structure corresponds to an attribute library, a method library and a state library, and the attribute library, the method library and the state library of the same element have an association relation;
the second structure determining module is used for determining element identifiers of each element in the tree-shaped hierarchical structure, and the element identifiers of the lower elements comprise element identifiers of the upper elements, wherein the upper elements and the lower elements are in different levels and have inclusion relations;
A third structure determination module for determining a multi-level vector structure of the target industrial software object based on the element identification of each element and the tree hierarchy;
the object model determining module is used for filling data into the multi-level vector structure based on the attribute library of each element in the tree-shaped hierarchical structure to obtain an object model of the target industrial software object; the object model is provided with the attribute library, the method library and the state library of each element of the tree hierarchy structure, and the attribute library is updated based on the association relation under the condition that the method library is updated or the state library is updated.
An expression information determining unit configured to determine vector expression information of each level of the tree hierarchy based on the element identification of each element and the tree hierarchy;
and the vector structure determining unit is used for determining a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relation of the tree-shaped hierarchical structure.
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 construction method of an industrial software object model.
According to a fourth aspect of the present invention, there is provided an 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 industrial software object model.
Compared with the prior art, the construction method and device of the industrial software object model, the computer readable storage medium and the electronic equipment provided by the invention at least comprise the following beneficial effects:
the technical scheme of the invention determines a tree hierarchy structure for a target industrial software object, wherein the tree hierarchy structure comprises a plurality of elements, and each element is provided with an attribute library, a method library and a state library. The attribute library of a certain element comprises basic attributes of the element, wherein the basic attributes are used for indicating characteristic information of the element; the method library of a certain element comprises an industrial process or a specific algorithm corresponding to the element; the state library of a certain element comprises the current state of the element. And for the same element, establishing the association relation of the element in the attribute library, the method library and the state library. And then determining element identifications of each element in the tree-shaped hierarchical structure, wherein the element identifications are used for distinguishing different elements, and for the upper and lower elements which are in different levels and have inclusion relations, the element identifications of the lower elements comprise the element identifications of the upper elements so that the relation among the elements can be accurately identified according to the element identifications. Further, according to each element of the tree hierarchy structure and name information of each element, determining a multi-level vector structure of the target industrial software object, and according to an attribute library of each element in the tree hierarchy structure, performing data filling on the multi-level vector structure to obtain an object model corresponding to the target industrial software object, wherein the object model is provided with an attribute library, a method library and a state library of each element of the tree hierarchy structure, and under the condition of updating the method library or updating the state library, the attribute library can be updated according to the association relation. That is to say, through establishing the association relation among the attribute library, the method library and the state library, the association of the fracture database is avoided, the data interaction capability and the information sharing capability of the model are effectively improved, and through accurately identifying the element identifier, a multi-level vector structure with normal grammar is constructed according to the element identifier and the tree-shaped hierarchical structure, the multi-level vector structure is a unified expression specification template, the universality is good, repeated modeling can be avoided, the design period is shortened, and the design cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of a method for building an industrial software object model according to an exemplary embodiment of the present invention;
FIG. 2 is a schematic diagram I of a tree hierarchy in a method for constructing an object model of industrial software according to an exemplary embodiment of the present invention;
FIG. 3 is a schematic diagram II of a tree hierarchy in a method for constructing an object model of industrial software according to an exemplary embodiment of the present invention;
FIG. 4 is a schematic diagram of vector expression information in a method for constructing an object model of industrial software according to an exemplary embodiment of the present invention;
FIG. 5 is a schematic diagram of a multi-level vector structure in a method for constructing an object model of industrial software according to an exemplary embodiment of the present invention;
FIG. 6 is a schematic diagram of an apparatus for building an object model of industrial software according to an exemplary embodiment of the present invention;
Fig. 7 is a block diagram of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by one of ordinary skill in the art without creative efforts, based on the embodiments of the present invention are within the protection scope of the present embodiments.
Summary of The Invention
Industrial software is a tie linking traditional industrial production with modern informatization, is a load bearing for intelligent manufacturing, and has been deeply integrated into industrial design and manufacturing flow. Under the large background of gradual transformation and upgrading in manufacturing industry, the importance degree of industrial software is continuously improved, the complexity degree of industrial objects is increased, and the construction requirement on an industrial software object model is increased, however, the current construction method of the industrial software object model is usually aimed at a single field and a single task, the information requirements of each stage of the whole life cycle of an industrial system are difficult to support, the model data exchange and information sharing capability is poor, and the data island problem is obvious. Meanwhile, in the construction process of the model, the repeated modeling phenomenon is prominent due to poor universality of the model, so that the industrial software is high in design cost, long in period and low in quality.
The technical scheme provided by the application determines a tree hierarchy structure for a target industrial software object, wherein the tree hierarchy structure comprises a plurality of elements, and each element is provided with an attribute library, a method library and a state library. The attribute library of a certain element comprises basic attributes of the element, wherein the basic attributes are used for indicating characteristic information of the element; the method library of a certain element comprises an industrial process or a specific algorithm corresponding to the element; the state library of a certain element comprises the current state of the element. And for the same element, establishing the association relation of the element in the attribute library, the method library and the state library. And then determining element identifications of each element in the tree-shaped hierarchical structure, wherein the element identifications are used for distinguishing different elements, and for the upper and lower elements which are in different levels and have inclusion relations, the element identifications of the lower elements comprise the element identifications of the upper elements so that the relation among the elements can be accurately identified according to the element identifications. Further, according to each element of the tree hierarchy structure and name information of each element, determining a multi-level vector structure of the target industrial software object, and according to an attribute library of each element in the tree hierarchy structure, performing data filling on the multi-level vector structure to obtain an object model corresponding to the target industrial software object, wherein the object model is provided with an attribute library, a method library and a state library of each element of the tree hierarchy structure, and under the condition of updating the method library or updating the state library, the attribute library can be updated according to the association relation. That is to say, through establishing the association relation among the attribute library, the method library and the state library, the association of the fracture database is avoided, the data interaction capability and the information sharing capability of the model are effectively improved, and through accurately identifying the element identifier, a multi-level vector structure with normal grammar is constructed according to the element identifier and the tree-shaped hierarchical structure, the multi-level vector structure is a unified expression specification template, the universality is good, repeated modeling can be avoided, the design period is shortened, and the design cost is reduced.
Exemplary method
Fig. 1 is a flow chart of a method for constructing an industrial software object model according to an exemplary embodiment of the present invention, which at least includes the following steps:
step 11, determining a tree hierarchy of the target industrial software object; each element in the tree hierarchy structure corresponds to an attribute library, a method library and a state library, and the attribute library, the method library and the state library of the same element have an association relation.
The target industrial software object aims at an industrial system, such as a pipe bending machine system, the number of the industrial systems can be one or a plurality of industrial systems, and when the target industrial software object aims at a plurality of industrial systems, the association relation exists among the plurality of industrial systems.
The tree hierarchy structure comprises a plurality of elements, one element is a node of the tree hierarchy structure, the node can be a detachable node or an undetachable node, different elements of the tree hierarchy structure can be in the same tree hierarchy or different tree hierarchies, other nodes are connected below the detachable node, namely, the detachable node exists in the next hierarchy, the undetachable node does not exist in the next hierarchy, and the next hierarchy of the detachable node can comprise the detachable node and/or the undetachable node.
Illustratively, as shown in FIG. 2, the tree hierarchy includes n+1 levels altogether, namely level 0, level 1, level 2, level n, where level 0 includes 1 element, namely a, and level 1 includes a 0 、a 1 、a b0 Equal elements, level 2 comprising a b00 、a b01 、a b0b1 Equal elements, the nth level including a b0…0 、a b0…1 、a b0…bn-1 And the like. Further, the tree hierarchy has a hierarchical relationship, and the upper and lower adjacent two-level elements have a containing relationship, that is, the lower-level element is a sub-element of a part of the upper-level elements, such as a of level 2 b00 、a b01 、a b0b1 The element being a in the upper level b0 Sub-elements of the element.
Each element in the tree hierarchy has a corresponding attribute library, method library, and state library. Wherein the attribute library contains industrial object attribute information such as: numbering, name, type, department, responsible person, price, characteristics, affiliated relationship and other contents; the method library comprises method behaviors corresponding to the operation of the elements, such as: implementation, specific algorithm, action behavior, etc.; the state library contains the initial state of the element, the intermediate state of the operation by the specific behavior method in the method library and the final presented result state.
The same element has an association relation among the attribute library, the method library and the state library, and the association relation is used for carrying out data interaction and data sharing so as to keep the uniformity of data in the attribute library, the method library and the state library and ensure the timely updating of the data.
In some embodiments, the step 11 determining the tree hierarchy of the target industrial software object includes:
step 111, determining a root element and a first-level element of the target industrial software object, wherein the first-level element is a sub-element of the root element.
And step 112, constructing a first level and a second level of the tree-shaped hierarchical structure based on the root element and the first level element.
Step 113, taking the second level as a first current level, and constructing a next current level based on a next level subelement under the condition that the current level element of the current level exists the next level subelement; and under the condition that the current level element of the current level does not have the next level sub-element, obtaining the constructed tree-shaped level structure.
In this embodiment, when the tree hierarchy structure is constructed, a root element is determined first, where the root element may be used to indicate an industrial system, then a sub-element of the root element, that is, a first level element, is determined, the root element is taken as a first level of the tree hierarchy structure, the first level element is placed at a level next to the first level corresponding to the root element, and according to a containing relationship between the first level element and the root element, a connection relationship between the root element and the first level element is determined, so as to construct a first level and a second level.
Further, determining a next-stage sub-element of the second level, namely a second-stage element, if the second-stage element exists, determining a connection relationship between the first-stage element and the second-stage element according to the inclusion relationship between the first-stage element and the second-stage element, and constructing a third level. And further determining the next-stage subelement of the third level, and continuously and circularly carrying out subelement confirmation and level construction processes until the cognitive domain of the current industrial software is complete, namely, the position of the next-stage subelement is not present, and determining a complete tree-shaped level structure.
Illustratively, the bender system is used as a root element.
Further, the sub-units corresponding to the pipe bender system, namely sub-elements, are used as first-stage elements, including the pipe fitting, the pipe bender and the robot, and from fig. 3, the topological relation between the pipe bender system and the pipe fitting, the pipe bender and the robot can be seen, so that a first level and a second level of the tree-shaped level structure are obtained.
Further, the sub-unit corresponding to the pipe bending machine and the sub-unit of the robot are used as the second-stage elements, the sub-unit of the pipe bending machine comprises a die, a swinging and bending device and a support, the sub-unit of the robot comprises a hand grip, an arm and a base, a topological structure between two three stages of the tree structure shown in fig. 3 is formed, and a third level of the tree-shaped hierarchical structure is obtained.
Further, the three-stage swinging and bending device and the rotation, swinging arm, main clamp, guide clamp device of the subunits of the swinging and bending device and the robot arm and the J1, J2, J3, J4, J5 and J6 arms of the subunits of the robot arm form a topological structure between three and four stages to obtain a fourth level of a tree-shaped hierarchical structure, at the moment, the whole pipe bender system model reaches a complete state, establishment of the tree-shaped hierarchical structure model is completed, and the tree-shaped hierarchical structure of the pipe bender system shown in figure 3 is established.
In some embodiments, the method further comprises:
and 15, constructing the attribute library, the method library and the state library for each element.
And step 16, representing the same elements in the attribute library, the method library and the state library by the same field information to determine the association relationship among the attribute library, the method library and the state library.
In this embodiment, an attribute library, a method library and a state library are constructed for each element in the tree hierarchy, and the same element in the attribute library, the method library and the state library is represented by using the same field information, that is, the attribute library, the method library and the state library have the same field information, and the association relationship among the attribute library, the method library and the state library can be established through the same field information.
Specifically, the attribute library includes field names in the method library and the state library, but does not include specific behaviors of the method library and specific states of the state library, and the attribute library forms a mapping relation with the method library and the state library only through the fields. Illustratively, the attribute library includes a of FIG. 2 0 .. when field information such as a is included in the method library and the state library, a is included in the method library 0 .. the field information. That is, when a certain field information is present in the attribute library, there is a method corresponding to the same field information in the method library as well, and since the state of the object will change with the execution of the method, the state library will contain the same attribute information as the corresponding method in the method library, i.e., the same field information.
Specifically, the initial state in the state library is obtained from the attribute library, the result state is mapped by a method with field information in the method library to obtain the result state, and further, the result state is added to the attribute library with the same field elements by searching the elements with the same field as the method, and the result state contains the data information after the object is executed, so that the update of the attribute library can be completed. Therefore, through establishing the association relation among the attribute library, the method library and the state library, the data exchange and the data sharing among different databases can be realized, and the problem of data island is effectively solved.
In some embodiments, the step 15 builds the attribute library, the method library, and the state library for each element, including:
and 151, constructing a basic model attribute library, wherein the basic model attribute library is used for establishing the peer-to-peer relationship between different field information.
In step 152, an original attribute library, an original method library, and an original state library are constructed.
And 153, performing field correction on the original attribute library, the original method library and the original state library based on the basic model attribute library to obtain an attribute library, a method library and a state library of each element.
Specifically, the domain expert uniformly describes the elements with different fields and the same value (for example, the names of the same product in each module are different, the names of the same method are different) according to the extracted common characteristics of the elements, namely, establishing the peer-to-peer relationship of different field information, and adding the field information with the peer-to-peer relationship into the basic model attribute library.
After the basic model attribute library is obtained, the basic model attribute library is utilized to carry out field correction on the original attribute library, the original method library and the original state library, wherein the original attribute library refers to the attribute library before field correction, the original method library refers to the method library before field correction, and the original state library refers to the state library before field correction. And field correction is carried out, namely, different fields representing the same value are represented by using unified fields, so that the subsequent rapid data processing is facilitated, and the data processing efficiency is improved.
Illustratively, field a and field K are substantially the same, but because of the habits of different staff members, field a exists in the original attribute library, field K exists in the original method library, and field K exists in the original state library. The base plate model attribute library has the field a=field K, so that the basic model attribute library can be used for carrying out field correction on the original attribute library, the original method library and the original state library, if a main field which is uniformly represented is determined for the field a and the field K, such as the field a, the field a in the original attribute library is kept unchanged when the field correction is carried out, the field K in the original method library is modified into the field a, and the field K in the original state library is modified into the field a, thereby realizing the uniform representation of the field a and the field K. It should be noted that, the main fields of the field a and the field K may not be the same as the field a or the field K, and the determined main fields may collectively represent the field a and the field K.
In some embodiments, for a superior element and a subordinate element at different levels and having an inclusion relationship, the attribute library of the subordinate element has an inheritance relationship with the attribute library of the superior element; in the case of an attribute library update of an upper level element, the attribute library of the lower level element is updated.
In this embodiment, not only the association relationship among the attribute library, the method library and the state library of a single element is established, but also the inheritance relationship of the attribute libraries of the upper and lower elements is established, that is, the content in the attribute library of the upper element is stored in the attribute library of the lower element, and in the case of updating the attribute library of the upper element, the attribute library of the lower element is updated together, so that the synchronism of the attributes of the upper and lower elements is ensured.
Step 12, determining the element identification of each element in the tree-shaped hierarchical structure, wherein the element identifications of the lower elements comprise the element identifications of the upper elements, and the upper elements and the lower elements are in different levels and have inclusion relations.
The element identifiers are used for distinguishing different elements in the tree-shaped hierarchical structure, the element identifiers at the same hierarchy are different, and the element identifiers at the same hierarchy are sequentially changed, such as sequentially increasing from top to bottom. The element identifications of the lower level elements include the element identifications of the upper level elements.
Illustratively, as shown in FIG. 2, the elements of the root element are identified as a, and the elements of the first level element are identified as a 0 、a 1 、a b0 Wherein the element identifications of the first level elements include the element identifications of the root element and a at the same level 0 、a 1 、a b0 The digital portion of the element identification is incremented in turn. Based on the identifier extension operation, the element identifier of the sub-element can contain the element representation of the upper-level element, the sub-element is related to the upper-level element through the element identifier, when the upper-level element is executed by a specific method in the method library, the state in the element attribute library is changed, the state of the element attribute library is updated, and the attribute of the sub-element related to the element attribute library is updated. Therefore, according to the attribute library, the method library and the state library, each element in the upper topological relation can be passedUpdates the lower elements.
Step 13, determining a multi-level vector structure of the target industrial software object based on the element identification of each element and the tree hierarchy.
The mathematical expression of the tree-shaped hierarchical structure of the multi-level vector structure has normalization and universality, and the number of the hierarchical layers of the multi-level vector structure is the same as that of the tree-shaped hierarchical structure.
Specifically, after determining the element identifier of each element, combining the element identifier with the elements of the tree hierarchy structure, and expressing the element identifier with each level of the vector to obtain a multi-level vector structure.
In some embodiments, the step 13 determines a multi-level vector structure of the target industrial software object based on the element identification and the tree hierarchy of each element, including:
Step 131, determining vector expression information of each level of the tree hierarchy based on the element identification of each element and the tree hierarchy.
Step 132, determining a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree hierarchy structure.
In this embodiment, the vector expression information of each hierarchy is determined by dividing according to the hierarchy of the tree hierarchy. The tree-shaped hierarchical structure corresponding to different levels has different level positions and level elements and different vector expression information. After the vector expression information of each level is determined, the vector expression information of each level is sequentially arranged according to the level relation of the tree-shaped level structure, and a multi-level vector structure of the target industrial software object is obtained.
Specifically, the vector expression information of one hierarchy may be as follows:
wherein: i is the level of the vector
j i =0,...,b i-1 Is the subscript of the i-th level vector
b i-1 Length of the ith stage
FIG. 4 shows vector representation information for each level, the first level elements in FIG. 4 including a 0 、a j1 、a b0 In the case of (a), the vector expression information of the first hierarchy is [ a0, aj1, abo ]]。
Illustratively, FIG. 5 shows a multi-level vector structure with a tree-like hierarchical structure as shown in FIG. 3. After the tree hierarchy shown in fig. 3 is constructed, determining an element identifier of each element in the tree hierarchy, e.g. determining that an element identifier of the pipe bender system is a unit 0 The pipe fitting being a unit 1 The pipe bending machine is a unit 2 Robot is unit 3 The mould being a unit 21 The swinging and bending device is a unit 22 The support being a unit 23 The hand being the unit 31 The arms being units 32 The base is a unit 33 The rotating means being a unit 221 The swing arm device is a unit 222 The main clamping device is a unit 223 The guide clamp device is a unit 224 The J1 arm being a unit 321 The J2 arm being a unit 322 The J3 arm being a unit 323 The J4 arm being a unit 324 The J5 arm being a unit 325 The J6 arm being a unit 326 Then, according to the hierarchical relation between the element identification and the tree-shaped hierarchical structure, determining the vector expression information of the first hierarchy as [ unit ] 0 Tube bending machine system]The vector expression information of the second level is [ unit ] 1 Tube fitting, unit 2 Tube bending machine, unit 3 Robot =]The vector expression information of the third level is [ unit ] 21 =die, unit 22 Device for bending, unit 23 Support, unit 31 =hand grip, unit 32 Arm, unit 33 Base =]The fourth level of vector representation information is [ unit ] 221 =rotating device, unit 222 Swing arm device, unit 223 Main clamp device, unit 224 Guide clamp device, singleMeta 321 =j1 arm, unit 322 =j2 arm, unit 323 =j3 arm, unit 324 =j4 arm, unit 325 =j5 arm, unit 326 =j6 arm ]. The vector expression information of the first level, the vector expression information of the second level, the vector expression information of the third level and the vector expression information of the fourth level are further arranged according to the level sequence, and a multi-level vector structure shown in fig. 5 is obtained, wherein the multi-level vector structure has normalization and high universality.
Step 14, based on the attribute library of each element in the tree-shaped hierarchical structure, filling data into the multi-level vector structure to obtain an object model of the target industrial software object; the object model is provided with the attribute library, the method library and the state library of each element of the tree hierarchy structure, and the attribute library is updated based on the association relation under the condition that the method library is updated or the state library is updated.
In this embodiment, the constructed multi-level vector structure is a data template with unified expression, and the attribute libraries of the elements store relevant features of the elements, such as specific element values, so that the multi-level vector structure can be filled with data according to the attribute library of each element in the tree-shaped hierarchical structure to obtain an object model of the target industrial software object, and in this step, data filling is mainly performed to fill the constructed data template with a true value to obtain an object model adapted to the target industrial software object of the current construction.
Further, the object model has an attribute library, a method library and a state library of each element of the tree hierarchy structure, and in the case of method library update or state library update, the attribute library is updated based on the association relationship. Illustratively, when performing an industrial process, such as: the straight pipe is bent by 90 degrees, the attribute of the pipe bending robot and the pipe fitting can be automatically updated through the constructed attribute library, the method library and the state library, and the updated result data is displayed on software.
In the above-described embodiment, a tree hierarchy is determined for a target industrial software object, the tree hierarchy including a plurality of elements, each element having an attribute library, a method library, and a state library. The attribute library of a certain element comprises basic attributes of the element, wherein the basic attributes are used for indicating characteristic information of the element; the method library of a certain element comprises an industrial process or a specific algorithm corresponding to the element; the state library of a certain element comprises the current state of the element. And for the same element, establishing the association relation of the element in the attribute library, the method library and the state library. And then determining element identifications of each element in the tree-shaped hierarchical structure, wherein the element identifications are used for distinguishing different elements, and for the upper and lower elements which are in different levels and have inclusion relations, the element identifications of the lower elements comprise the element identifications of the upper elements so that the relation among the elements can be accurately identified according to the element identifications. Further, according to each element of the tree hierarchy structure and name information of each element, determining a multi-level vector structure of the target industrial software object, and according to an attribute library of each element in the tree hierarchy structure, performing data filling on the multi-level vector structure to obtain an object model corresponding to the target industrial software object, wherein the object model is provided with an attribute library, a method library and a state library of each element of the tree hierarchy structure, and under the condition of updating the method library or updating the state library, the attribute library can be updated according to the association relation. That is to say, through establishing the association relation among the attribute library, the method library and the state library, the association of the fracture database is avoided, the data interaction capability and the information sharing capability of the model are effectively improved, and through accurately identifying the element identifier, a multi-level vector structure with normal grammar is constructed according to the element identifier and the tree-shaped hierarchical structure, the multi-level vector structure is a unified expression specification template, the universality is good, repeated modeling can be avoided, the design period is shortened, and the design cost is reduced.
Exemplary apparatus
Based on the same conception as the embodiment of the method, the embodiment of the invention also provides a device for constructing the industrial software object model.
FIG. 6 is a schematic structural diagram of an apparatus for building an object model of industrial software according to an exemplary embodiment of the present invention, including:
a first structure determination module 61 for determining a tree hierarchy of the target industrial software object; each element in the tree hierarchy structure corresponds to an attribute library, a method library and a state library, and the attribute library, the method library and the state library of the same element have an association relation;
a second structure determining module 62, configured to determine an element identifier of each element in the tree hierarchy, where the element identifiers of the lower elements include element identifiers of the upper elements, and the upper elements and the lower elements are in different levels and have inclusion relationships;
a third structure determination module 63 for determining a multi-level vector structure of the target industrial software object based on the element identification of each element and the tree hierarchy;
an object model determining module 64, configured to perform data filling on the multi-level vector structure based on the attribute library of each element in the tree-shaped hierarchical structure, so as to obtain an object model of the target industrial software object; the object model is provided with the attribute library, the method library and the state library of each element of the tree hierarchy structure, and the attribute library is updated based on the association relation under the condition that the method library is updated or the state library is updated.
In an exemplary embodiment of the present invention, the third structure determining module includes:
an expression information determining unit configured to determine vector expression information of each level of the tree hierarchy based on the element identification of each element and the tree hierarchy;
and the vector structure determining unit is used for determining a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relation of the tree-shaped hierarchical structure.
In an exemplary embodiment of the present invention, the first structure determining module includes:
the sub-element determining unit is used for determining a root element and a first-level element of the target industrial software object, wherein the first-level element is a sub-element of the root element;
a first construction unit, configured to construct a first level and a second level of the tree-shaped hierarchical structure based on the root element and the first level element;
a second construction unit, configured to construct a next current level based on a next-level subelement in the case that the current-level subelement of the current level exists with the second level as a first current level; and under the condition that the current level element of the current level does not have the next level sub-element, obtaining the constructed tree-shaped level structure.
In an exemplary embodiment of the invention, the apparatus further comprises:
the database construction module is used for constructing the attribute library, the method library and the state library for each element;
and the relation determining module is used for representing the same element in the attribute library, the method library and the state library by the same field information so as to determine the association relation among the attribute library, the method library and the state library.
In an exemplary embodiment of the present invention, the database construction module includes:
the attribute library construction unit is used for constructing a basic model attribute library, and the basic model attribute library is used for establishing the peer-to-peer relationship between different field information;
the original data acquisition unit is used for acquiring an original attribute library, an original method library and an original state library;
and the field correction unit is used for carrying out field correction on the original attribute library, the original method library and the original state library based on the basic model attribute library to obtain an attribute library, a method library and a state library of each element.
In an exemplary embodiment of the present invention, for upper and lower elements at different levels and having an inclusion relationship, an attribute library of the lower element has an inheritance relationship with an attribute library of the upper element; in the case of an attribute library update of an upper level element, the attribute library of the lower level element is updated.
Exemplary electronic device
Fig. 7 illustrates a block diagram of an electronic device according to an embodiment of the invention.
As shown in fig. 7, the electronic device 70 includes one or more processors 71 and memory 72.
The processor 71 may be a Central Processing Unit (CPU) or other form of processing unit having data processing 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) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 71 to implement the methods of building an industrial software object model and/or other desired functions of the various embodiments of the present invention described above.
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 forms of connection mechanisms (not shown).
Of course, only some of the components of the electronic device 70 that are relevant to the present invention are shown in fig. 7 for simplicity, components such as buses, input/output interfaces, etc. 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
In a sixth aspect, embodiments of the invention may be a computer program product, in addition to the above-described methods and apparatuses, comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the method of constructing an industrial software object model according to the various embodiments of the invention described in the "exemplary methods" section of this specification.
The computer program product may write program code for performing operations of 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, 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, which when executed by a processor, cause the processor to perform the steps in the method of constructing an industrial software object model according to the various embodiments of the present invention described in the "exemplary methods" section above in this specification.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is 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 would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk 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 in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present invention are merely examples and not intended to be limiting, and these advantages, benefits, effects, etc. are not to be considered as essential to the various embodiments of the present invention. Furthermore, the specific details of the invention described above are for purposes of illustration and understanding only, and are not intended to be limiting, as the invention may be practiced with the specific details described above.
The block diagrams of the devices, apparatuses, devices, systems referred to in the present invention are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
It is also noted that in the apparatus, devices and methods of the present invention, the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects 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 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. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (10)

1. A method for building an industrial software object model, comprising:
determining a tree hierarchy of the target industrial software object; each element in the tree hierarchy structure corresponds to an attribute library, a method library and a state library, and the attribute library, the method library and the state library of the same element have an association relation;
determining element identifiers of each element in the tree hierarchy, wherein the element identifiers of the lower elements comprise element identifiers of the upper elements, and the upper elements and the lower elements are in different hierarchies and have inclusion relations;
determining a multi-level vector structure of the target industrial software object based on the element identification of each element and the tree hierarchy;
based on the attribute library of each element in the tree-shaped hierarchical structure, filling data into the multi-level vector structure to obtain an object model of the target industrial software object; the object model is provided with the attribute library, the method library and the state library of each element of the tree hierarchy structure, and the attribute library is updated based on the association relation under the condition that the method library is updated or the state library is updated.
2. The method of claim 1, wherein the determining the multi-level vector structure of the target industrial software object based on the element identification and the tree hierarchy of each element comprises:
determining vector expression information of each level of the tree hierarchy based on the element identification of each element and the tree hierarchy;
and determining a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree-shaped hierarchical structure.
3. The method of claim 1, wherein the determining the tree hierarchy of the target industrial software object comprises:
determining a root element and a first-level element of the target industrial software object, wherein the first-level element is a sub-element of the root element;
constructing a first level and a second level of the tree-shaped hierarchical structure based on the root element and the first level element;
taking the second level as a first current level, and constructing a next current level based on a next level subelement under the condition that the current level element of the current level exists the next level subelement; and under the condition that the current level element of the current level does not have the next level sub-element, obtaining the constructed tree-shaped level structure.
4. The method of claim 1, wherein prior to the step of determining the element identification for each element in the tree hierarchy, the method further comprises:
constructing the attribute library, the method library and the state library for each element;
and representing the same element in the attribute library, the method library and the state library by the same field information to determine the association relationship among the attribute library, the method library and the state library.
5. The method of claim 4, wherein said building the property library, the method library, and the state library for each element comprises:
constructing a basic model attribute library, wherein the basic model attribute library is used for establishing a peer-to-peer relationship between different field information;
acquiring an original attribute library, an original method library and an original state library;
and carrying out field correction on the original attribute library, the original method library and the original state library based on the basic model attribute library to obtain the attribute library, the method library and the state library of each element.
6. The method of claim 1, wherein the attribute library of a lower level element has an inheritance relationship with the attribute library of an upper level element for upper and lower level elements at different levels and having inclusion relationships; in the case of an attribute library update of an upper level element, the attribute library of the lower level element is updated.
7. An apparatus for constructing an object model of industrial software, comprising:
the first structure determining module is used for determining a tree-shaped hierarchical structure of the target industrial software object; each element in the tree hierarchy structure corresponds to an attribute library, a method library and a state library, and the attribute library, the method library and the state library of the same element have an association relation;
the second structure determining module is used for determining element identifiers of each element in the tree-shaped hierarchical structure, and the element identifiers of the lower elements comprise element identifiers of the upper elements, wherein the upper elements and the lower elements are in different levels and have inclusion relations;
a third structure determination module for determining a multi-level vector structure of the target industrial software object based on the element identification of each element and the tree hierarchy;
the object model determining module is used for filling data into the multi-level vector structure based on the attribute library of each element in the tree-shaped hierarchical structure to obtain an object model of the target industrial software object; the object model is provided with the attribute library, the method library and the state library of each element of the tree hierarchy structure, and the attribute library is updated based on the association relation under the condition that the method library is updated or the state library is updated.
8. The apparatus of claim 7, wherein the third structure determination module comprises:
an expression information determining unit configured to determine vector expression information of each level of the tree hierarchy based on the element identification of each element and the tree hierarchy;
and the vector structure determining unit is used for determining a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relation of the tree-shaped hierarchical structure.
9. A computer-readable storage medium storing a computer program for executing the construction method of the industrial software object model according to any one of the preceding claims 1-6.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for building an industrial software object model according to any one of the preceding claims 1-6.
CN202311147059.9A 2023-09-06 2023-09-06 Construction method and device of industrial software object model, medium and electronic equipment Pending CN117389984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311147059.9A CN117389984A (en) 2023-09-06 2023-09-06 Construction method and device of industrial software object model, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311147059.9A CN117389984A (en) 2023-09-06 2023-09-06 Construction method and device of industrial software object model, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117389984A true CN117389984A (en) 2024-01-12

Family

ID=89462011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311147059.9A Pending CN117389984A (en) 2023-09-06 2023-09-06 Construction method and device of industrial software object model, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117389984A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1364262A (en) * 1999-05-26 2002-08-14 富士通株式会社 Network, element management system
JP2011154653A (en) * 2010-01-28 2011-08-11 Nippon Telegr & Teleph Corp <Ntt> Data modelling method, device, and program
US20190340272A1 (en) * 2018-05-02 2019-11-07 doTERRA Holdings, LLC Systems and related methods for updating attributes of nodes and links in a hierarchical data structure
US20200183817A1 (en) * 2018-12-10 2020-06-11 Sap Se Combinatorial testing of software for multi-level data structures
CN114297201A (en) * 2021-12-31 2022-04-08 北京索为系统技术股份有限公司 Data processing method and device of multistage association database and electronic equipment
CN115017158A (en) * 2022-05-31 2022-09-06 武汉联影医疗科技有限公司 Node information query method
CN115329504A (en) * 2022-10-10 2022-11-11 南京国睿信维软件有限公司 BOM construction method based on complex product structure
CN115760013A (en) * 2022-12-07 2023-03-07 建信金融科技有限责任公司 Operation and maintenance model construction method and device, electronic equipment and storage medium
CN115794067A (en) * 2022-11-07 2023-03-14 苏州数设科技有限公司 Industrial software generation method and device, electronic equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1364262A (en) * 1999-05-26 2002-08-14 富士通株式会社 Network, element management system
JP2011154653A (en) * 2010-01-28 2011-08-11 Nippon Telegr & Teleph Corp <Ntt> Data modelling method, device, and program
US20190340272A1 (en) * 2018-05-02 2019-11-07 doTERRA Holdings, LLC Systems and related methods for updating attributes of nodes and links in a hierarchical data structure
US20200183817A1 (en) * 2018-12-10 2020-06-11 Sap Se Combinatorial testing of software for multi-level data structures
CN114297201A (en) * 2021-12-31 2022-04-08 北京索为系统技术股份有限公司 Data processing method and device of multistage association database and electronic equipment
CN115017158A (en) * 2022-05-31 2022-09-06 武汉联影医疗科技有限公司 Node information query method
CN115329504A (en) * 2022-10-10 2022-11-11 南京国睿信维软件有限公司 BOM construction method based on complex product structure
CN115794067A (en) * 2022-11-07 2023-03-14 苏州数设科技有限公司 Industrial software generation method and device, electronic equipment and readable storage medium
CN115760013A (en) * 2022-12-07 2023-03-07 建信金融科技有限责任公司 Operation and maintenance model construction method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
向新;陈德焜;李良;: "基于FLEX和MDX的Web-OLAP设计及实现", 微计算机应用, no. 03, 15 March 2011 (2011-03-15) *

Similar Documents

Publication Publication Date Title
JP6065008B2 (en) Control device
EP0921478A2 (en) Transformation of marked up documents
KR101627769B1 (en) Apparatus and method of transforming text type of plc control program into common type of plc control program
CN111324577A (en) Method and device for reading and writing Yml file
CN113111058A (en) Database processing method and device
CN115169568A (en) Quantum calculation processing method and device and electronic equipment
CN117389984A (en) Construction method and device of industrial software object model, medium and electronic equipment
KR102153259B1 (en) Data domain recommendation method and method for constructing integrated data repository management system using recommended domain
KR102098255B1 (en) System and method for consolidating knowledge based on knowledge embedding
CN116992092A (en) Method and device for establishing flow model, storage medium and terminal equipment
Eiden et al. Supporting semantic PLM by using a lightweight engineering metadata mapping engine
JP3099621B2 (en) CAD system for standard parts database
Ridjanovic et al. Defining database dynamics with attribute grammars
CN110502476B (en) Part retrieval and renaming method based on CAD system
CN114328486A (en) Data quality checking method and device based on model
US10585861B2 (en) Overlay-based file tagging using virtual file systems
CN111897832A (en) Model deployment method, device and readable storage medium
JP2519760B2 (en) Access method in data processor
US20230045022A1 (en) System and method for describing a component in a computer-aided design (cad) environment
Schilberg et al. Simulation and interoperability in the planning phase of production processes
CN113591398B (en) Intelligent operation batch method and device based on deep reinforcement learning and electronic equipment
EP4131051A1 (en) System and method for describing a component in a computer-aided design (cad) environment
US8849866B2 (en) Method and computer program product for creating ordered data structure
CN117389983A (en) Method and device for constructing flow-oriented data warehouse
CN115658020A (en) Domain model construction method and device, storage medium and electronic equipment

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