CN113536451A - Method and device for generating meta-model, electronic equipment and storage medium - Google Patents

Method and device for generating meta-model, electronic equipment and storage medium Download PDF

Info

Publication number
CN113536451A
CN113536451A CN202110225579.1A CN202110225579A CN113536451A CN 113536451 A CN113536451 A CN 113536451A CN 202110225579 A CN202110225579 A CN 202110225579A CN 113536451 A CN113536451 A CN 113536451A
Authority
CN
China
Prior art keywords
product
information
elements
behavior
sub
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
CN202110225579.1A
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.)
Shanghai Digital Design Technology Co ltd
Original Assignee
Shanghai Digital Design 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 Shanghai Digital Design Technology Co ltd filed Critical Shanghai Digital Design Technology Co ltd
Priority to CN202110225579.1A priority Critical patent/CN113536451A/en
Publication of CN113536451A publication Critical patent/CN113536451A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Automation & Control Theory (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method, a device, electronic equipment and a storage medium for generating a meta-model, wherein the method comprises the following steps: establishing a plurality of preset elements; determining associated sub information in each element, wherein each element comprises at least one piece of sub information, and the associated sub information is common sub information in at least two elements; establishing an association relation between the elements according to the association sub-information; and generating a meta-model based on each element and the association relation. The method can solve the problem of generating the meta-model in the technical field of airplane processing.

Description

Method and device for generating meta-model, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of airplane processing, in particular to a method and a device for generating a meta-model, electronic equipment and a storage medium.
Background
Currently, the development model of software is usually object-oriented or process-oriented. With the rapid development of computer science and technology, the functions of industrial models are more and more powerful, and systems are more and more complex. If the traditional object-oriented or process-oriented software development mode is used for modeling, the modeling workload of the industrial model is huge, and particularly in the same technical field, a large amount of repeated work can exist among the industrial models.
In order to solve the above problems, a meta-model based software development model is proposed. First, a meta-model is defined in a certain domain, and then, using the meta-model, any desired specific model can be built in the technical domain. Because the meta-model defines the elements used for modeling in the field and the incidence relation among the elements, the workload efficiency of modeling based on the meta-model is high.
How to generate the meta-model in the technical field of airplane processing is a problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a meta-model, electronic equipment and a storage medium, and aims to solve the problem of generating the meta-model in the technical field of airplane processing.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for generating a meta model, including:
establishing a plurality of preset elements, wherein the preset elements comprise product elements, characteristic elements, behavior elements and state elements, the product elements comprise basic attribute information of the product, the characteristic elements comprise material information of the product, the behavior elements comprise action information of the product, and the state elements comprise state information of the product;
determining associated sub information in each element, wherein each element comprises at least one piece of sub information, and the associated sub information is common sub information in at least two elements;
establishing an association relation between elements according to the association sub-information;
and generating a meta-model based on the elements and the association relation.
Optionally, the step of determining the associated sub information in each element includes:
determining first association sub-information of the product element and the feature element, wherein the first association sub-information is shared by the product element and the feature element, and the first association sub-information comprises an identification code of the product;
determining second associated sub-information of the characteristic elements and the state elements, wherein the second associated sub-information is shared by the characteristic elements and the state elements, and the second associated sub-information comprises identification codes of product materials;
and determining third associated sub-information of the behavior element and the state element, wherein the third associated sub-information is shared by the behavior element and the state element, and the third associated sub-information comprises the identification code of the product behavior.
Optionally, the step of establishing an association relationship between the elements according to the association sub-information includes:
establishing an association relation between the product elements and the feature elements according to the first association sub-information;
establishing an association relation between the characteristic elements and the state elements according to the second association sub information;
and establishing an association relation between the behavior element and the state element according to the third association sub information.
Optionally, the identification code of the product includes a product ID; the identification code of the product material includes a product material ID; the identification code of the product behavior comprises a product behavior ID;
the product element also includes a product type and a product grade; the characteristic elements also include a product material type and a product ID; the status element further comprises a product status ID, a product status type, a product behavior ID, and a product material ID; the behavior elements also include a product behavior type and a product behavior level.
Optionally, the preset elements further include personnel elements; the personnel element includes personnel information for the product;
before the step of establishing the association relationship between the elements according to the association sub-information, the method further comprises:
and respectively determining fourth associated sub-information of the personnel element, the product element, the characteristic element, the action element and the state element, wherein the fourth associated sub-information is shared by the personnel element, the product element, the characteristic element, the action element and the state element, and the fourth associated sub-information comprises the identification code of the user.
Optionally, before the step of generating the meta-model based on the elements and the association relationship, the method further includes:
and respectively establishing association relations among the personnel elements, the product elements, the feature elements, the behavior elements and the state elements according to the fourth association sub information.
Optionally, the behavior element includes action information of a product taking the time as a main line; the behavior elements comprise time data and behavior data;
the time data comprises a time ID, a time grade and a time type, and the behavior data comprises a behavior ID, a behavior type, a behavior grade and an associated time ID; the time data and the behavior data are associated by a time ID.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a meta model, including:
the system comprises a first establishing module, a second establishing module and a third establishing module, wherein the first establishing module is used for establishing a plurality of preset elements, the preset elements comprise product elements, characteristic elements, behavior elements and state elements, the product elements comprise basic attribute information of a product, the characteristic elements comprise material information of the product, the behavior elements comprise action information of the product, and the state elements comprise state information of the product;
the first determining module is used for determining associated sub information in each element, wherein each element comprises at least one piece of sub information, and the associated sub information is common sub information in at least two elements;
the second establishing module is used for determining associated sub information in each element, wherein each element comprises at least one piece of sub information, and the associated sub information is common sub information in at least two elements;
and the generating module is used for generating the meta-model based on the elements and the association relation.
Optionally, the determining module includes a first determining submodule and a second determining submodule;
the first determining sub-module is used for determining second associated sub-information of the characteristic elements and the state elements, the second associated sub-information is shared by the characteristic elements and the state elements, and the second associated sub-information comprises identification codes of product materials;
and the second determining submodule is used for determining third associated sub-information of the behavior elements and the state elements, the third associated sub-information is shared by the behavior elements and the state elements, and the third associated sub-information comprises the identification codes of the product behaviors.
Optionally, the second establishing module includes a first establishing submodule, a second establishing submodule, and a third establishing submodule;
the first establishing submodule is used for establishing an association relation between the product elements and the characteristic elements according to the first association sub-information;
the second establishing submodule is used for establishing an incidence relation between the characteristic element and the state element according to the second incidence sub-information;
and the third establishing submodule is used for establishing the association relationship between the behavior element and the state element according to the third association sub information.
Optionally, the identification code of the product includes a product ID; the identification code of the product material includes a product material ID; the identification code of the product behavior comprises a product behavior ID; the product element also includes a product type and a product grade; the characteristic elements also include a product material type and a product ID; the status element further comprises a product status ID, a product status type, a product behavior ID, and a product material ID; the behavior elements also include a product behavior type and a product behavior level.
Optionally, the preset elements further include personnel elements; the personnel element includes personnel information for the product; the device still includes: a second determination module;
the second determining module is used for respectively determining fourth associated sub-information of the personnel element, the product element, the feature element, the behavior element and the state element, wherein the fourth associated sub-information is shared by the personnel element, the product element, the feature element, the behavior element and the state element, and the fourth associated sub-information comprises the identification code of the user.
Optionally, the apparatus further comprises: a third establishing module;
and the third establishing module is used for respectively establishing the association relation between the personnel element and the product element, between the personnel element and the characteristic element and between the personnel element and the behavior element and between the personnel element and the status element according to the fourth association sub information.
Optionally, the behavior element includes action information of a product taking the time as a main line; the behavior elements comprise time data and behavior data;
the time data comprises a time ID, a time grade and a time type, and the behavior data comprises a behavior ID, a behavior type, a behavior grade and an associated time ID; the time data and the behavior data are associated by a time ID.
In a third aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of generating a meta-model as in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the steps of the method for generating a meta-model according to the first aspect.
The embodiment of the invention defines the meta-model which can be applied to the technical field of airplane processing by establishing the preset product elements, the preset characteristic elements, the preset behavior elements and the preset state elements and the incidence relations among the elements, so that research personnel can establish any needed industrial model in the technical field of airplane processing based on the meta-model, time and labor are saved, and the modeling efficiency is high.
The above description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments 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 that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flow chart of steps in one embodiment of the present invention
Fig. 2A is a schematic structural diagram of a behavior element in the present invention.
FIG. 2B is a diagram illustrating an association relationship between elements of the present invention.
FIG. 3 is a flow chart of steps in yet another embodiment of the present invention.
FIG. 4 is a schematic diagram of another association relationship between elements in the present invention.
Fig. 5 is a schematic structural diagram of an apparatus for generating a meta model according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making an invasive task, are within the scope of the present invention.
In one embodiment, a method of generating a meta-model is presented. Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an embodiment of the present invention. As shown in fig. 1, generating the meta-model may include the steps of:
step 101, establishing a plurality of preset elements.
The preset elements may include product elements, feature elements, behavior elements, and status elements.
In this step, elements required for generating the meta-model are specifically preset product elements, feature elements, behavior elements, and state elements.
First, a specific description is given of preset product elements.
The product element may include basic attribute information of the product. Specifically, the product element may include the following sub-information:
the identification code of the product, the product Name (Name), the product Type (Type), the product Level (Level), the product Parameter (Parameter), the start time (StartTime) and end time (EndTime) of the product existence, and the like.
In addition, since one product may include a plurality of sub-products, the internal organizational relationship of the product, that is, the topology between the product and the sub-products, may be embodied by the level of the product.
It can be understood that, since the meta-model is not specific to an object, the basic attribute information related to the product can be recorded through a set of parameters, that is, the basic attribute information of the product.
Then, specific description is made for preset feature elements:
the characteristic element may include material information of the product. Specifically, the feature element may include the following sub information:
the product material identification code, the product material Name (Name), the product material Type (Type), the product material Parameter (Parameter), the start time (StartTime) and end time (EndTime) of the product material existence, the product identification code corresponding to the product material, and the like.
Next, the preset behavior elements are specifically explained:
the behavior element may include action information of the product. Specifically, the behavior element may include the following sub information:
the identification code of the product behavior, the Name of the product behavior, the Type of the product behavior (Type), the Parameter of the product behavior (Parameter), the Level of the product behavior (Level), the start time (StartTime) and the end time (EndTime) of the existence of the product behavior.
Optionally, in order to better reflect the product behavior, the behavior element may include action information of the product taking the time as a main line, that is, the behavior element may specifically include time data and behavior data.
The time of day data may be defined prior to defining the behavior data. The time data specifically includes an identification code of the time, a time Name (Name), a time Level (Level), a time Type (Type), a time Parameter (Parameter), and a start time (StartTime) and an end time (EndTime) of the time. The time Level (Level) may represent the order of the time.
Correspondingly, the behavior data specifically includes an identification code of the product behavior, a product behavior Name (Name), a product behavior Type (Type), a product behavior Parameter (Parameter), a product behavior Level (Level), a start time (StartTime) and an end time (EndTime) of the existence of the product behavior, and an identification code of an associated time.
It can be understood that the time data and the behavior data in the behavior element are associated by the identification code of the time.
Referring to fig. 2A, fig. 2A is a schematic structural diagram of a behavior element in the present invention. In the behavior element, the time data is a main line and can be extended infinitely in the transverse direction, and the longitudinal direction is an infinite expansion of the behavior data.
For example, in the design process of an airplane, CAD design is often performed first and then CAE analysis is performed according to the sequence, and CAE analysis is further classified into load analysis, strength analysis, fatigue analysis, and the like.
Finally, the preset state elements are specifically explained as follows:
the status element may include status information of the product. Specifically, the status element may include the following sub information:
the identification code of the product state, the Name of the product state (Name), the Type of the product state (Type), the Parameter of the product state (Parameter), the starting time (StartTime) and the ending time (EndTime) of the existence of the product state, and the identification code of the product behavior and the identification code of the product material corresponding to the product state.
It should be noted that, since the product behavior can directly generate the change of the product state, the state element includes the identification code of the product behavior that causes the change of the state. In addition, since a change in the state of the product may directly cause a change in the characteristics of the product, an identification code of the product material in the characteristic element that changes due to the change in the state may be included in the state element.
It should be noted that, since the product status changes with the product behavior, the product status can be divided into an initial status and an end status.
In specific implementation, the identification code of the product may be information that can uniquely specify a certain product, such as a product ID, a product code, and the like; the identification code of the product material can be information which can uniquely specify a certain product material, such as product material ID, product material code and the like; the identification code of the product behavior can be information which can uniquely specify a certain product behavior, such as a product behavior ID, a product behavior code and the like.
And 102, determining the associated sub information in each element.
Each element comprises at least one piece of sub information, and the associated sub information is the common sub information of at least two elements.
Specifically, the product elements include the following sub-information: product ID, product Name (Name), product Type (Type), product Level (Level), product Parameter (Parameter), start time (StartTime) and end time (EndTime) of product presence, and the like.
The feature elements include the following sub-information: product material ID, product material Name (Name), product material Type (Type), product material Parameter (Parameter), start time (StartTime) and end time (EndTime) of product material existence, and the identification code of the product corresponding to the product material.
The behavior element includes the following sub-information: product behavior ID, product behavior Name (Name), product behavior Type (Type), product behavior Parameter (Parameter), product behavior Level (Level), start time (StartTime) and end time (EndTime) for which the product behavior exists.
The status element includes the following sub-information: the product state identification method comprises the following steps of identifying the product state, Name (Name), Type (Type) of the product state, Parameter (Parameter) of the product state, starting time (StartTime) and ending time (EndTime) of the existence of the product state, and identification codes of product behaviors and product materials corresponding to the product state.
Of course, the required sub information can be added to each element according to actual situations.
Optionally, step 102 may specifically include:
determining first association sub information of the product element and the feature element, wherein the first association sub information is common to the product element and the feature element, and the first association sub information comprises an identification code of the product;
determining second associated sub-information of the characteristic elements and the state elements, wherein the second associated sub-information is common to the characteristic elements and the state elements, and the second associated sub-information comprises identification codes of product materials;
and determining third associated sub-information of the behavior element and the state element, wherein the third associated sub-information is shared by the behavior element and the state element, and the third associated sub-information comprises the identification code of the product behavior.
Specifically, the sub information shared between the product element and the feature element is an identification code of the product, that is, the first associated sub information is an identification code of the product, the sub information shared between the feature element and the state element is an identification code of the product material, that is, the second associated sub information is an identification code of the product material, the sub information shared between the behavior element and the state element is an identification code of the product behavior, that is, the third associated sub information is an identification code of the product behavior. It can be seen that two elements of the four elements have common sub-information.
And 103, establishing an association relation between the elements according to the association sub information.
In this step, the association relationship among the product elements, the feature elements, the state elements, and the behavior elements is established according to the association sub information determined in step 102.
Optionally, step 103 may specifically include:
establishing an association relation between the product elements and the feature elements according to the first association sub-information;
establishing an association relation between the characteristic elements and the state elements according to the second association sub information;
and establishing an association relation between the behavior element and the state element according to the third association sub information.
The first associated sub-information is an identification code of a product, the second associated sub-information is an identification code of a product material, and the third associated sub-information is an identification code of a product behavior.
Specifically, the product elements and the feature elements can be associated by the identification codes of the products, the feature elements and the state elements can be associated by the identification codes of the product materials, and the behavior elements and the state elements can be associated by the identification codes of the product behaviors.
As can be seen, the four elements may respectively establish an association relationship through the first association sub-information, the second association sub-information, and the third association sub-information.
Referring to fig. 2B, fig. 2B is a schematic diagram of an association relationship between elements in the present invention. As shown in FIG. 2B, the product element is associated with a feature element, the feature element is associated with a status element, and the behavior element is associated with a status element.
And 104, generating a meta-model based on the elements and the association relation.
In this step, a meta model is generated based on the elements established in step 101 and the association relationship between the elements established in step 103.
It can be seen that, because the elements established in step 101 and the association relationship established in step 103 are set for the technical field of aircraft processing, the meta-model established in this embodiment can be applied to the technical field of aircraft processing, and research and development personnel establish various industrial models in the technical field of aircraft processing based on the meta-model, thereby saving time and labor and improving modeling efficiency.
In yet another embodiment, a method of generating a metamodel is presented. Referring to fig. 3, fig. 3 is a flow chart illustrating steps of another embodiment of the present invention. As shown in fig. 3, generating the meta-model may include the steps of:
step 301, establishing a preset product element, a preset feature element, a preset behavior element, a preset state element and a preset personnel element.
Since each element in the meta-model, whether it is a product element, a feature element, a behavior element or a status element, needs to be managed by personnel, compared with step 101 in fig. 1, the preset element in this step is added with a personnel element.
The following is a detailed description of the preset product elements:
the personnel element may include user information for the product. Specifically, the person element may include the following sub-information:
the identification code of the person, the Name of the person (Name), the contact address of the person, the Department of the person (Department), the start time (StartTime) and end time (EndTime) of the person's effect, and the like. The contact Address of the person may include a Phone number (Phone) of the person and an Address (Address) of the person.
Otherwise, reference may be made to the relevant description in step 101.
Step 302, determining the associated sub-information of the product element, the feature element, the behavior element, the state element and the personnel element.
Specifically, the person element includes the following sub information: the identification code of the person, the Name of the person (Name), the Phone of the person (Phone), the contact Address of the person (Address), the Department of the person (Department), the start time (StartTime) and end time (EndTime) of the person in effect, etc.
Compared with the step 102, the identification code of the person can be added in four elements except the person element in the step.
Specifically, the product elements include the following sub-information: product ID, product Name (Name), product Type (Type), product Level (Level), product Parameter (Parameter), person identification code, start time (StartTime) and end time (EndTime) of product presence, and the like.
The feature elements include the following sub-information: product material ID, product material Name (Name), product material Type (Type), product material Parameter (Parameter), person identification code, start time (StartTime) and end time (EndTime) of product material existence, and identification code of product corresponding to the product material.
The behavior element includes the following sub-information: product behavior ID, product behavior Name (Name), product behavior Type (Type), product behavior Parameter (Parameter), product behavior Level (Level), person identification code, start time (StartTime) and end time (EndTime) of the presence of the product behavior.
The status element includes the following sub-information: the product state identification comprises a product state ID, a product state Name (Name), a product state Type (Type), a product state Parameter (Parameter), an identification code of a person, a start time (StartTime) and an end time (EndTime) of the existence of the product state, and an identification code of a product behavior and an identification code of a product material corresponding to the product state.
Optionally, in addition to determining the association sub-information among the product element, the feature element, the state element, and the behavior element, this step may further include:
and respectively determining fourth associated sub-information of the personnel element and the product element, the characteristic element, the action element and the state element, wherein the fourth associated sub-information is shared by the personnel element and the product element, the characteristic element, the action element and the state element, and the fourth associated sub-information comprises the identification code of the personnel.
The identification code of the person may be a person id (user id), a person code, or the like, which can uniquely determine the identification information of a certain person.
Step 303, establishing an association relationship among the product elements, the feature elements, the behavior elements, the state elements and the personnel elements according to the association sub information.
In this step, the association relationship among the product element, the feature element, the status element, the behavior element, and the personnel element is established according to the association sub-information determined in step 302.
Reference may be made to the description of establishing the association relationship between the product element, the feature element, the status element and the behavior element in step 103.
Optionally, in this step, besides establishing the association relationship among the product elements, the feature elements, the state elements, and the behavior elements, the method may further include:
and respectively establishing association relations among the personnel elements, the product elements, the feature elements, the behavior elements and the state elements according to the fourth association sub information.
Specifically, the product elements, the feature elements, the behavior elements and the state elements can be associated with the personnel elements through the identification codes of the personnel. In this way, the person element can establish an association relationship with the product element, the characteristic element, the behavior element and the status element through the first association sub information, the second association sub information, the third association sub information and the fourth association sub information, respectively.
Referring to fig. 4, fig. 4 is a schematic diagram of another association relationship between elements in the present invention. As shown in fig. 4, the product element is associated with the feature element, the feature element is associated with the status element, the behavior element is associated with the status element, and the personnel element is associated with the product element, the feature element, the status element, and the behavior element.
And 304, generating a meta-model based on the product elements, the feature elements, the behavior elements, the state elements and the personnel elements and the incidence relations among the product elements, the feature elements, the behavior elements, the state elements and the personnel elements.
In this step, a meta model is generated based on the elements established in step 301 and the association relationship between the elements established in step 303.
It can be seen that, because the elements established in step 301 and the association relationship established in step 303 are set for the technical field of aircraft processing, the meta-model established in this embodiment can be applied to the technical field of aircraft processing, and research and development personnel establish various industrial models in the technical field of aircraft processing based on the meta-model, thereby saving time and labor and improving modeling efficiency. In addition, because the meta-model established by the embodiment comprises personnel elements, the functions are richer, and the use is more convenient.
It should be noted that after the meta-model is built, the configuration can be implemented through the user view interface as a specific model. The meta-model defines the most general and basic elements, and when applied to a specific product, a complete product module can be generated according to specific characteristics of the product.
For example, in the case of a bender, the geometric properties of the various components of the machine tool, as well as the Y, B, C, R and material properties of the tube, need to be supplemented. The attributes are supplemented through a user operation interface, the attributes are stored in a database after being supplemented, and the database and the meta-model are mutually supplemented to form a finished product model. It can also be understood that generic fixable attributes are written in the meta-model in a class-wise manner, and variable attributes are configured in the database through an interface. In the rebound analysis of the bent pipe, the diameter of the pipe, the thickness of the pipe and the material of the pipe are input, and a rebound angle is output through the calculation of a rebound algorithm.
The modeling process of the meta-model is explained below by taking the example of establishing a strength analysis model for a certain skin of the fuselage in the design stage of the aircraft by using the meta-model established by the invention:
product parameters (parameters) in the product elements may include coordinates of points of the skin, thickness of the skin, etc., as well as information of the frames and stringers on the edges; the product material parameters (Parameter) in the characteristic elements may include metal material data, profile data, etc. of the skin; the load working condition elements comprise whether the plate is fixedly supported by four edges or simply supported by four edges and the like; the time Name (Name) in the time data of the behavior element can comprise a design stage, a manufacturing stage, an operation and maintenance stage and the like, and the product behavior parameters (Parameter) in the behavior data can comprise strength analysis data, fatigue analysis data and the like; the product condition parameters (parameters) of the condition elements may include force, stress, safety margin, cracks, fissures, and the like.
In this way, structural strength analysis can be performed using models built based on metamodels, with aluminum material as the material of the skin, during the design phase of the skin, and the results generated by the analysis.
Another embodiment provides an apparatus for generating a meta-model. Referring to fig. 5, fig. 5 is a schematic structural diagram of an apparatus for generating a meta model according to an embodiment of the present invention. As shown in fig. 5, the apparatus for generating a meta model includes: a first establishing module 501, a first determining module 502, a second establishing module 503 and a generating module 504, wherein:
the first establishing module 501 is configured to establish a plurality of preset elements, where the preset elements include a product element, a feature element, a behavior element, and a status element, the product element includes basic attribute information of a product, the feature element includes material information of the product, the behavior element includes action information of the product, and the status element includes status information of the product.
A first determining module 502, configured to determine associated sub information in each element, where each element includes at least one piece of sub information, and the associated sub information is sub information common to at least two elements.
A second establishing module 503, configured to establish an association relationship between the elements according to the association sub information.
A generating module 504, configured to generate a meta-model based on each element and the association relationship.
Optionally, the first determining module 502 includes a first determining submodule and a second determining submodule;
the first determining sub-module is used for determining second associated sub-information of the characteristic elements and the state elements, the second associated sub-information is shared by the characteristic elements and the state elements, and the second associated sub-information comprises identification codes of product materials;
and the second determining submodule is used for determining third associated sub-information of the behavior elements and the state elements, the third associated sub-information is shared by the behavior elements and the state elements, and the third associated sub-information comprises the identification codes of the product behaviors.
Optionally, the second establishing module 503 includes a first establishing submodule, a second establishing submodule, and a third establishing submodule;
the first establishing submodule is used for establishing an association relation between the product elements and the characteristic elements according to the first association sub-information;
the second establishing submodule is used for establishing an incidence relation between the characteristic element and the state element according to the second incidence sub-information;
and the third establishing submodule is used for establishing the association relationship between the behavior element and the state element according to the third association sub information.
Optionally, the identification code of the product includes a product ID; the identification code of the product material includes a product material ID; the identification code of the product behavior comprises a product behavior ID; the product element also includes a product type and a product grade; the characteristic elements also include a product material type and a product ID; the status element further comprises a product status ID, a product status type, a product behavior ID, and a product material ID; the behavior elements also include a product behavior type and a product behavior level.
Optionally, the preset elements further include personnel elements; the personnel element includes personnel information for the product; the device still includes: a second determination module 505;
the second determining module 505 is configured to determine fourth associated sub-information of the person element and the product element, the feature element, the behavior element, and the status element, where the fourth associated sub-information is common to the person element and the product element, the feature element, the behavior element, and the status element, and the fourth associated sub-information includes an identification code of the user.
Optionally, the apparatus further comprises: a third establishing module 506;
a third establishing module 506, configured to respectively establish association relationships between the person element and the product element, the feature element, the behavior element, and the status element according to the fourth association sub-information.
Optionally, the behavior element includes action information of a product taking the time as a main line; the behavior elements comprise time data and behavior data;
the time data comprises a time ID, a time grade and a time type, and the behavior data comprises a behavior ID, a behavior type, a behavior grade and an associated time ID; the time data and the behavior data are associated by a time ID.
The device for generating a meta-model according to the embodiment of the present invention can implement each process implemented in the method embodiments of fig. 1 to 4, and is not described herein again to avoid repetition.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement each process of the above method embodiment for generating a meta model, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the method for generating a meta-model, and can achieve the same technical effect, and in order to avoid repetition, the description of the process is not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor 610, and power supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and transmitting signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic device 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling up data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may manage charging, discharging, and power consumption management functions.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that many more modifications and variations can be made without departing from the spirit of the invention and the scope of the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of generating a meta-model, comprising:
establishing a plurality of preset elements, wherein the preset elements comprise product elements, characteristic elements, behavior elements and state elements, the product elements comprise basic attribute information of a product, the characteristic elements comprise material information of the product, the behavior elements comprise action information of the product, and the state elements comprise state information of the product;
determining associated sub information in each element, wherein each element comprises at least one piece of sub information, and the associated sub information is common sub information in at least two elements;
establishing an association relation between the elements according to the association sub-information;
and generating a meta-model based on each element and the association relation.
2. The method of claim 1, wherein the step of determining the associated sub-information in each of the elements comprises:
determining first association sub-information of the product element and the feature element, wherein the first association sub-information is common to the product element and the feature element, and the first association sub-information comprises an identification code of a product;
determining second associated sub-information of the characteristic element and the state element, wherein the second associated sub-information is common to the characteristic element and the state element, and the second associated sub-information comprises an identification code of a product material;
determining third associated sub-information of the behavior element and the state element, wherein the third associated sub-information is shared by the behavior element and the state element, and the third associated sub-information comprises an identification code of a product behavior.
3. The method according to claim 2, wherein the step of establishing the association relationship between the elements according to the association sub-information comprises:
establishing an association relation between the product element and the feature element according to the first association sub-information;
establishing an association relation between the feature element and the state element according to the second association sub-information;
and establishing an association relation between the behavior element and the state element according to the third association sub information.
4. The method of claim 2, wherein the identification code of the product comprises a product ID; the identification code of the product material comprises a product material ID; the identification code of the product behavior comprises a product behavior ID;
the product element further includes a product type and a product grade; the characteristic elements further comprise a product material type and a product ID; the status element further comprises a product status ID, a product status type, a product behavior ID, and a product material ID; the behavior elements also include a product behavior type and a product behavior level.
5. The method of any one of claims 1 to 4, wherein the predetermined elements further comprise personnel elements; the personnel element comprises personnel information of the product;
before the step of establishing an association relationship between the elements according to the association sub-information, the method further includes:
and respectively determining fourth associated sub-information of the personnel element and the product element, the feature element, the behavior element and the state element, wherein the fourth associated sub-information is common to the personnel element and the product element, the feature element, the behavior element and the state element, and the fourth associated sub-information comprises the identification code of the user.
6. The method of claim 5, wherein prior to the step of generating a meta-model based on each of the elements and the associations, the method further comprises:
and respectively establishing association relations among the personnel element, the product element, the feature element, the behavior element and the state element according to the fourth association sub information.
7. The method of claim 1,
the behavior element comprises action information of a product taking a moment as a main line; the behavior elements comprise time of day data and behavior data;
the time data comprises a time ID, a time grade and a time type, and the behavior data comprises a behavior ID, a behavior type, a behavior grade and an associated time ID; the time data and the behavior data are associated by the time ID.
8. An apparatus for generating a meta-model, comprising:
the system comprises a first establishing module, a second establishing module and a third establishing module, wherein the first establishing module is used for establishing a plurality of preset elements, the preset elements comprise product elements, characteristic elements, behavior elements and state elements, the product elements comprise basic attribute information of a product, the characteristic elements comprise material information of the product, the behavior elements comprise action information of the product, and the state elements comprise state information of the product;
the first determining module is used for determining associated sub information in each element, wherein each element comprises at least one piece of sub information, and the associated sub information is common sub information in at least two elements;
a second establishing module, configured to determine associated sub information in each of the elements, where each element includes at least one piece of sub information, and the associated sub information is common sub information in at least two of the elements;
and the generating module is used for generating a meta-model based on each element and the incidence relation.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method of generating a meta-model according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of generating a meta-model according to any of the claims 1 to 7.
CN202110225579.1A 2021-03-01 2021-03-01 Method and device for generating meta-model, electronic equipment and storage medium Pending CN113536451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110225579.1A CN113536451A (en) 2021-03-01 2021-03-01 Method and device for generating meta-model, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110225579.1A CN113536451A (en) 2021-03-01 2021-03-01 Method and device for generating meta-model, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113536451A true CN113536451A (en) 2021-10-22

Family

ID=78094541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110225579.1A Pending CN113536451A (en) 2021-03-01 2021-03-01 Method and device for generating meta-model, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113536451A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245128A (en) * 2019-06-18 2019-09-17 北京明略软件***有限公司 Method for building up and device, storage medium, the electronic device of meta-model
CN111930360A (en) * 2020-07-09 2020-11-13 西北工业大学 Method and device for realizing dynamic interactive modeling tool
CN112099784A (en) * 2020-08-18 2020-12-18 西安合科软件有限公司 Model creation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245128A (en) * 2019-06-18 2019-09-17 北京明略软件***有限公司 Method for building up and device, storage medium, the electronic device of meta-model
CN111930360A (en) * 2020-07-09 2020-11-13 西北工业大学 Method and device for realizing dynamic interactive modeling tool
CN112099784A (en) * 2020-08-18 2020-12-18 西安合科软件有限公司 Model creation method and device

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN110971423B (en) Group creation method and electronic device
CN108984066B (en) Application icon display method and mobile terminal
CN111130989B (en) Information display and sending method and electronic equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN110866038A (en) Information recommendation method and terminal equipment
CN111610903A (en) Information display method and electronic equipment
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN108536349B (en) Icon management method and mobile terminal
CN111028686B (en) Image processing method, image processing apparatus, electronic device, and medium
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN109933196B (en) Screen control method and device and terminal equipment
CN111522613A (en) Screen capturing method and electronic equipment
CN111309390A (en) Method for acquiring configuration information and electronic equipment
CN108021315B (en) Control method and mobile terminal
CN112364473A (en) Data processing method and device, electronic equipment and storage medium
CN111163227B (en) Sharing method and electronic equipment
CN111200648B (en) Service calling method, device, terminal equipment and storage medium
CN115695309B (en) Access control list rule configuration method and device, electronic equipment and storage medium
CN110780795A (en) Screen capturing method and electronic equipment
CN111045588B (en) Information viewing method and electronic equipment
CN113536451A (en) Method and device for generating meta-model, electronic equipment and storage medium
CN109358792B (en) Display object selection method and terminal
CN108803987B (en) Application program deleting method and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211022