Class model construction method and device based on SVG technology
By using an SVG-based class model construction method and leveraging an SVG rendering engine for intelligent construction, the inefficiency of existing technologies is solved, enabling efficient and convenient structured class model construction and improving the standardization and applicability of the models.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN COMTOP INFORMATION TECH
- Filing Date
- 2022-10-08
- Publication Date
- 2026-06-09
AI Technical Summary
Existing software model design methods are inefficient and lack convenience, relying mainly on manual semantic analysis and unstructured design products, resulting in insufficient design efficiency and convenience.
An SVG-based class model construction method is adopted. By monitoring class model construction information, the construction requirements are determined, and the target class model is intelligently constructed according to the construction content. The SVG rendering engine is used to realize automated primitive rendering and structured data model construction.
It improves the convenience and efficiency of class model construction, reduces development costs, and the constructed model is structured data, which improves standardization and referenceability.
Smart Images

Figure CN115543271B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of class model construction technology, and in particular to a class model construction method and apparatus based on SVG technology. Background Technology
[0002] With the rapid development of human technology, software is being used more and more widely in people's daily lives, and the demand for software design and development is also gradually increasing. However, the existing software class model design methods mainly involve analyzing business scenario requirements, manually performing semantic analysis to break down business entities, attributes, relationships, and other related operations; using design software such as PPT, WORD, EXCEL, and EA to output the business entities broken down during semantic analysis into unstructured design products such as graphics and text; submitting the design products to a version control repository for archiving; and designers and developers delivering the design results. This approach results in low efficiency and convenience in software class model design. Therefore, providing a method that can improve the convenience and efficiency of software class model construction is particularly important. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a class model construction method and apparatus based on SVG technology, which can improve the convenience and efficiency of class model construction.
[0004] To address the aforementioned technical problems, the first aspect of this invention discloses a class model construction method based on SVG technology, the method comprising:
[0005] Monitor class model construction information, and determine the class model construction content based on the class model construction information;
[0006] Based on the content of the class model construction, determine whether the current situation corresponding to the class model construction information meets the set construction requirements;
[0007] When the judgment result is yes, the target class model is constructed based on the class model construction information and the class model construction content.
[0008] As an optional implementation, in the first aspect of the present invention, the step of constructing a target class model based on the class model construction information and the class model construction content includes:
[0009] Based on the content of the class model construction, determine the number of subclass models to be constructed, and based on the number and the content of the class model construction, filter out the target requirement information from the pre-set set of construction requirement information.
[0010] Based on the target requirement information and the class model construction content, at least one subclass model is constructed, and based on the quantity, all the subclass models and the class model construction information, the target class model is constructed.
[0011] Among them, all the sub-models include one or more of the following: class primitive model, service primitive model, data structure primitive model, enumeration primitive model, exception primitive model and other primitive models;
[0012] And, the step of constructing the target class model based on the quantity, all the subclass models, and the class model construction information includes:
[0013] Based on the pre-defined configuration information, determine whether there is a first subclass model among all the subclass models that meets the set definition conditions, and obtain the first judgment result;
[0014] Based on the first judgment result, determine the definition configuration information corresponding to all the subclass models;
[0015] The target class model is constructed based on the defined configuration information, the quantity, all the subclass models, and the class model construction information.
[0016] As an optional implementation, in the first aspect of the present invention, determining the definition configuration information corresponding to all the subclass models based on the first determination result includes:
[0017] When the first judgment result is yes, obtain the definition requirement information corresponding to the first subclass model, and perform a definition configuration operation on the first subclass model according to the definition requirement information and the set definition configuration conditions to obtain the first definition configuration information corresponding to the first subclass model; filter out the second definition configuration information corresponding to all subclass models other than the first subclass model from the historical definition configuration information; determine the definition configuration information corresponding to all subclass models according to the first definition configuration information and the second definition configuration information.
[0018] When the first judgment result is negative, the target definition configuration information corresponding to all the sub-class models is filtered out from the historical definition configuration information and used as the definition configuration information corresponding to all the sub-class models.
[0019] And, the step of constructing the target class model based on the defined configuration information, the quantity, all the subclass models, and the class model construction information includes:
[0020] Based on the defined configuration information and the class model construction information, determine whether there is a second sub-class model that satisfies the attribute configuration conditions among all the sub-class models, and obtain a second determination result;
[0021] When the second judgment result is yes, obtain the inheritance pop-up configuration information corresponding to the second subclass model, and perform a pop-up configuration operation on the second subclass model according to the inheritance pop-up configuration information and the pop-up configuration requirements corresponding to the second subclass model to obtain a second subclass model with completed pop-up configuration, so as to update the subclass model; determine the pop-up configuration information corresponding to the second subclass model with completed pop-up configuration, and construct the target class model according to the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information;
[0022] When the second judgment result is negative, the operation of constructing the target class model is performed based on the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information.
[0023] As an optional implementation, in the first aspect of the present invention, the step of constructing a target class model based on the pop-up configuration information, the definition configuration information, the quantity, all the subclass models, and the class model construction information includes:
[0024] When the number is less than the number threshold, the target class model is constructed based on all the subclass models and the class model construction information;
[0025] When the quantity is greater than or equal to the quantity threshold, the basic connection type corresponding to each pair of sub-class models is determined based on the pop-up configuration information, the definition configuration information, the quantity, all sub-class models, and the class model construction information; all basic connection types and the set model connection conditions are analyzed to obtain the overall connection situation corresponding to all sub-class models; when the overall connection is used to indicate that all sub-class models meet the connection conditions, the target class model is constructed based on all basic connection types, the pop-up configuration information, the definition configuration information, all sub-class models, and the class model construction information.
[0026] As an optional implementation, in the first aspect of the present invention, when the overall connection is used to represent that all the subclass models satisfy the connection conditions, the step of constructing the target class model based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models, and the class model construction information includes:
[0027] Determine whether there is a target connection type among all the basic connection types that meets the set connection response conditions;
[0028] When the judgment result is yes, determine the associated attribute information corresponding to the target connection type, and perform a configuration response operation based on the associated attribute information and the target connection type to obtain the target connection type that has completed the configuration response, so as to update the basic connection type; and construct the target class model based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models and the class model construction information.
[0029] When the judgment result is negative, the target class model is constructed based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models, and the class model construction information.
[0030] As an optional implementation, in the first aspect of the present invention, the step of analyzing all the basic connection types and the set model connection conditions to obtain the overall connection situation corresponding to all the sub-type models includes:
[0031] Determine the scenario setting information corresponding to the current situation, and based on the scenario setting information, all the basic connection types, and the set model connection conditions, determine the adversarial nature corresponding to all the basic connection types;
[0032] Determine whether the adversarial strength is less than or equal to a preset adversarial threshold. If the determination result is yes, determine that the overall connection situation corresponding to all the sub-class models is that all the sub-class models meet the connection condition.
[0033] When it is determined that the adversarial nature is equal to the adversarial threshold, the overall connection situation corresponding to all the sub-class models is determined to be that all the sub-class models do not meet the connection conditions, and a connection type adjustment operation is performed based on the overall connection situation to update the basic connection type.
[0034] As an optional implementation, in the first aspect of the present invention, after constructing the target class model based on the class model construction information and the class model construction content, the method further includes:
[0035] When a plugin conversion instruction corresponding to the target class model is detected, the plugin information to be converted is determined according to the plugin conversion instruction; the plugin information to be converted includes one or more of the following: domain model configuration information, name configuration information, and attribute configuration information.
[0036] By analyzing the information of the plugin to be converted and the corresponding information of the target class model, the degree of fusion between the plugin to be converted and the target class model is obtained.
[0037] Determine whether the fusion degree is greater than or equal to a preset fusion degree threshold. If the determination result is yes, perform a plugin conversion operation on the target class model according to the plugin information to be converted and the plugin to be converted to obtain a new target class model.
[0038] A second aspect of the present invention discloses a class model construction apparatus based on SVG technology, the apparatus comprising:
[0039] The monitoring module is used to monitor information related to the construction of class models.
[0040] The determination module is used to determine the content of class model construction based on the class model construction information;
[0041] The judgment module is used to determine whether the current situation corresponding to the class model construction information meets the set construction requirements based on the class model construction content.
[0042] The construction module is used to construct the target class model based on the class model construction information and the class model construction content when the judgment module determines that the current situation meets the construction requirements.
[0043] As an optional implementation, in the second aspect of the present invention, the method by which the construction module constructs the target class model based on the class model construction information and the class model construction content specifically includes:
[0044] Based on the content of the class model construction, determine the number of subclass models to be constructed, and based on the number and the content of the class model construction, filter out the target requirement information from the pre-set set of construction requirement information.
[0045] Based on the target requirement information and the class model construction content, at least one subclass model is constructed, and based on the quantity, all the subclass models and the class model construction information, the target class model is constructed.
[0046] Among them, all the sub-models include one or more of the following: class primitive model, service primitive model, data structure primitive model, enumeration primitive model, exception primitive model and other primitive models;
[0047] Furthermore, the specific methods by which the construction module constructs the target class model based on the quantity, all the subclass models, and the class model construction information include:
[0048] Based on the pre-defined configuration information, determine whether there is a first subclass model among all the subclass models that meets the set definition conditions, and obtain the first judgment result;
[0049] Based on the first judgment result, determine the definition configuration information corresponding to all the subclass models;
[0050] The target class model is constructed based on the defined configuration information, the quantity, all the subclass models, and the class model construction information.
[0051] As an optional implementation, in the second aspect of the present invention, the method by which the construction module determines the definition configuration information corresponding to all the subclass models based on the first determination result specifically includes:
[0052] When the first judgment result is yes, obtain the definition requirement information corresponding to the first subclass model, and perform a definition configuration operation on the first subclass model according to the definition requirement information and the set definition configuration conditions to obtain the first definition configuration information corresponding to the first subclass model; filter out the second definition configuration information corresponding to all subclass models other than the first subclass model from the historical definition configuration information; determine the definition configuration information corresponding to all subclass models according to the first definition configuration information and the second definition configuration information.
[0053] When the first judgment result is negative, the target definition configuration information corresponding to all the sub-class models is filtered out from the historical definition configuration information and used as the definition configuration information corresponding to all the sub-class models.
[0054] Furthermore, the specific methods by which the construction module constructs the target class model based on the defined configuration information, the quantity, all the subclass models, and the class model construction information include:
[0055] Based on the defined configuration information and the class model construction information, determine whether there is a second sub-class model that satisfies the attribute configuration conditions among all the sub-class models, and obtain a second determination result;
[0056] When the second judgment result is yes, obtain the inheritance pop-up configuration information corresponding to the second subclass model, and perform a pop-up configuration operation on the second subclass model according to the inheritance pop-up configuration information and the pop-up configuration requirements corresponding to the second subclass model to obtain a second subclass model with completed pop-up configuration, so as to update the subclass model; determine the pop-up configuration information corresponding to the second subclass model with completed pop-up configuration, and construct the target class model according to the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information;
[0057] When the second judgment result is negative, the operation of constructing the target class model is performed based on the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information.
[0058] As an optional implementation, in the second aspect of the present invention, the method by which the construction module constructs the target class model based on the pop-up configuration information, the definition configuration information, the quantity, all the subclass models, and the class model construction information specifically includes:
[0059] When the number is less than the number threshold, the target class model is constructed based on all the subclass models and the class model construction information;
[0060] When the quantity is greater than or equal to the quantity threshold, the basic connection type corresponding to each pair of sub-class models is determined based on the pop-up configuration information, the definition configuration information, the quantity, all sub-class models, and the class model construction information; all basic connection types and the set model connection conditions are analyzed to obtain the overall connection situation corresponding to all sub-class models; when the overall connection is used to indicate that all sub-class models meet the connection conditions, the target class model is constructed based on all basic connection types, the pop-up configuration information, the definition configuration information, all sub-class models, and the class model construction information.
[0061] As an optional implementation, in the second aspect of the present invention, when the overall connection is used to represent that all the subclass models satisfy the connection conditions, the construction module constructs the target class model based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models, and the class model construction information in a specific manner including:
[0062] Determine whether there is a target connection type among all the basic connection types that meets the set connection response conditions;
[0063] When the judgment result is yes, determine the associated attribute information corresponding to the target connection type, and perform a configuration response operation based on the associated attribute information and the target connection type to obtain the target connection type that has completed the configuration response, so as to update the basic connection type; and construct the target class model based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models and the class model construction information.
[0064] When the judgment result is negative, the target class model is constructed based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models, and the class model construction information.
[0065] As an optional implementation, in the second aspect of the present invention, the method by which the construction module analyzes all the basic connection types and the set model connection conditions to obtain the overall connection situation corresponding to all the sub-class models specifically includes:
[0066] Determine the scenario setting information corresponding to the current situation, and based on the scenario setting information, all the basic connection types, and the set model connection conditions, determine the adversarial nature corresponding to all the basic connection types;
[0067] Determine whether the adversarial strength is less than or equal to a preset adversarial threshold. If the determination result is yes, determine that the overall connection situation corresponding to all the sub-class models is that all the sub-class models meet the connection condition.
[0068] When it is determined that the adversarial nature is equal to the adversarial threshold, the overall connection situation corresponding to all the sub-class models is determined to be that all the sub-class models do not meet the connection conditions, and a connection type adjustment operation is performed based on the overall connection situation to update the basic connection type.
[0069] As an optional implementation, in a second aspect of the present invention, the determining module is further configured to, after the construction module constructs the target class model based on the class model construction information and the class model construction content, and when a plugin conversion instruction corresponding to the target class model is detected, determine the plugin information to be converted based on the plugin conversion instruction; the plugin information to be converted includes one or more of domain model configuration information, name configuration information, and attribute configuration information;
[0070] The device further includes:
[0071] The analysis module is used to analyze the information of the plugin to be converted and the corresponding information of the target class model to obtain the degree of fusion between the plugin to be converted and the target class model corresponding to the information of the plugin to be converted;
[0072] The judgment module is also used to determine whether the degree of fusion is greater than or equal to a preset degree of fusion threshold.
[0073] The plugin conversion module is used to perform a plugin conversion operation on the target class model to obtain a new target class model when the judgment module determines that the fusion degree is greater than or equal to the fusion degree threshold.
[0074] A third aspect of the present invention discloses another class model construction apparatus based on SVG technology, the apparatus comprising:
[0075] Memory containing executable program code;
[0076] A processor coupled to the memory;
[0077] The processor calls the executable program code stored in the memory to execute the class model construction method based on SVG technology disclosed in the first aspect of the present invention.
[0078] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the class model construction method based on SVG technology disclosed in the first aspect of the present invention.
[0079] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0080] In this embodiment of the invention, class model construction information is monitored, and the content of class model construction is determined based on this information. Based on the content of class model construction, it is determined whether the current situation corresponding to the class model construction information meets the set construction requirements. When the determination result is yes, the target class model is constructed based on the class model construction information and the content of class model construction. It is evident that implementing this invention can intelligently construct target types based on class model construction information and the determined class model construction content. Using an SVG rendering engine as the core, it achieves intelligent class model construction functionality applicable to various class model construction scenarios, which is beneficial for improving the convenience and efficiency of software class model construction, thereby reducing the human, material, and time costs of class model construction development. Furthermore, the constructed target class model is a structured data model, which is beneficial for improving the standardization and structure of the class model, and thus for improving the applicability and referenceability of the class model. Attached Figure Description
[0081] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0082] Figure 1 This is a flowchart illustrating a class model construction method based on SVG technology disclosed in an embodiment of the present invention;
[0083] Figure 2 This is a flowchart illustrating another class model construction method based on SVG technology disclosed in an embodiment of the present invention;
[0084] Figure 3 This is a schematic diagram of the structure of a class model construction device based on SVG technology disclosed in an embodiment of the present invention;
[0085] Figure 4 This is a schematic diagram of another class model building device based on SVG technology disclosed in an embodiment of the present invention;
[0086] Figure 5This is a schematic diagram of another class model construction device based on SVG technology disclosed in an embodiment of the present invention;
[0087] Figure 6 This is a schematic diagram of the general rendering engine architecture design of an SVG technology-based class model construction method disclosed in an embodiment of the present invention;
[0088] Figure 7 This is a schematic diagram of the class model primitive definition process of a class model construction method based on SVG technology disclosed in an embodiment of the present invention;
[0089] Figure 8 This is a schematic diagram related to the JSONSchema-based SVG construction technology of a class model construction method based on SVG technology disclosed in an embodiment of the present invention. Detailed Implementation
[0090] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0091] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0092] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0093] This invention discloses a class model construction method and apparatus based on SVG technology. It can intelligently construct target types based on class model construction information and determined class model construction content. Using an SVG rendering engine as its core, it achieves intelligent class model construction functionality applicable to various class model construction scenarios. This improves the convenience and efficiency of software class model construction, thereby reducing the manpower, material resources, and time costs of class model development. Furthermore, the constructed target class model is a structured data model, which improves the standardization and structure of the class model, thus enhancing its applicability and referenceability. Detailed descriptions follow.
[0094] Example 1
[0095] Please see Figure 1 , Figure 1 This is a flowchart illustrating a class model construction method based on SVG technology disclosed in an embodiment of the present invention. Figure 1 The described method can be applied to a class model building apparatus based on SVG technology, wherein the apparatus may include a server, which may be a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 1 As shown, this class model construction method based on SVG technology includes the following operations:
[0096] 101. Monitor class model construction information and determine the content of class model construction based on the class model construction information.
[0097] Optionally, the class model construction information can be any information related to the class model to be constructed, such as the requirements information of the class model to be constructed, the functional information of the class model to be constructed, the configuration definition information of the class model to be constructed, the relevant information of the class model construction trigger instruction, the format information of the class model to be constructed, the user information of the class model to be constructed, the applicable scenario information of the class model to be constructed, and the permission information of the class model to be constructed, etc., which are not limited in this embodiment of the invention.
[0098] Optionally, the content of the class model construction can be one or more of the following: the primitive content of the class model, the configuration definition content of the class model, the functional and business scenario content of the class model, the module attribute content of the class model, and the format content of the class model. This embodiment of the invention does not limit the content.
[0099] 102. Based on the content of the class model construction, determine whether the current situation corresponding to the class model construction information meets the set construction requirements.
[0100] Further, optionally, when it is determined that the current situation does not meet the construction requirements, step 101 above can be executed again immediately or after a set interval.
[0101] Optionally, when the system detects that the user triggers the corresponding class model construction instruction, and / or the system detects that the current time setting condition for constructing the class model is met, and / or the system detects that there is no existing class model that can be called as the class model to be constructed, and / or when the system determines that the construction urgency of the class model to be constructed meets the urgency condition, etc., it can be determined that the current situation corresponding to the class model construction information meets the construction requirements. This embodiment of the invention does not impose any limitations.
[0102] 103. When it is determined that the current situation meets the construction requirements, the target class model is constructed based on the class model construction information and class model construction content.
[0103] Optionally, the class model construction method involved in this invention mainly adopts the primitive automatic rendering technology of the SVG general rendering engine. Furthermore, the architecture design diagram of the SVG general rendering engine can be found here. Figure 6 As shown; furthermore, the SVG universal rendering engine is based on the source data model defined by the universal JSON Schema specification. For related diagrams illustrating the construction of the SVG universal rendering engine based on JSON Schema, please refer to... Figure 8 As shown.
[0104] Optionally, the design source data (e.g., JSON format) corresponding to the target class model can be persisted to a repository (e.g., a shared disk). Optionally, offline export operations can also be performed to export files in a specified format. The export format can be one or more of the following: JSON file format, editable bitmap file format (.png), and editable vector file format (.svg), etc., without limitation in this embodiment of the invention. Developers can quickly deliver the class model construction results through offline parsing based on structured file format data. Optionally, the target class model can be obtained through online construction and analysis by multiple users.
[0105] It should be noted that the operation steps mentioned in the embodiments of the present invention can also be used to construct class models by detecting user dragging and dropping elements and connecting elements on the canvas. Furthermore, element information and connection type information are predefined, and elements and connections are registered and set in the designer canvas.
[0106] As can be seen, the class model construction method based on SVG technology described in the embodiments of the present invention can intelligently construct target types according to class model construction information and determined class model construction content. With the SVG rendering engine as the core, it realizes intelligent class model construction function applicable to various class model construction scenarios, which is conducive to improving the convenience and efficiency of software class model construction, thereby reducing the manpower, material resources and time costs of class model construction development. In addition, the constructed target class model is a structured data model, which is conducive to improving the standardization and structure of the class model, and thus improving the applicability and referenceability of the class model.
[0107] In an optional embodiment, the process of constructing the target class model based on the class model construction information and the class model construction content may include:
[0108] Based on the content of the class model construction, determine the number of subclass models to be constructed, and based on the number and the content of the class model construction, select the target requirement information from the pre-defined set of construction requirement information.
[0109] Based on the target requirements and class model construction content, at least one subclass model is constructed, and based on the quantity, all subclass models, and class model construction information, the target class model is constructed.
[0110] Among them, all sub-models include one or more of the following: class primitive model, service primitive model, data structure primitive model, enumeration primitive model, exception primitive model, and other primitive models.
[0111] Optionally, before constructing the target class model, one or more of the following primitive models can be predefined: class primitive model, service primitive model, data structure primitive model, enumeration primitive model, exception primitive model, and other primitive models.
[0112] Optionally, the class model primitive definition process is as follows: primitive attribute definition → attribute editing UI definition → interaction event definition (optional) → shortcut key definition → rendering to generate primitive and component information. For a detailed flowchart of the class model primitive definition process, please refer to [link / reference]. Figure 7 As shown.
[0113] As can be seen, this optional embodiment can first determine the subclass model, and then construct the target class model based on the number of subclass models, class model construction information, and subclass models. Constructing the target class model based on the subclass models is beneficial to improving the feasibility and rationality of the target class model construction method, and thus beneficial to improving the accuracy and reliability of the constructed target class model.
[0114] In another optional embodiment, the process of constructing the target class model based on the quantity, all subclass models, and class model construction information may include:
[0115] Based on the pre-defined configuration information, determine whether there is a first subclass model among all subclass models that meets the defined conditions, and obtain the first judgment result;
[0116] Based on the first judgment result, determine the definition configuration information corresponding to all subclass models;
[0117] Based on the defined configuration information, quantity, all subclass models, and class model construction information, the target class model is constructed.
[0118] As can be seen, this optional embodiment can determine the definition configuration information of the subclass model based on the first judgment result, and further combine the definition configuration information and other previously mentioned information to construct the class model. This is beneficial to improving the efficiency and rationality of the determination of the definition configuration information, as well as the effectiveness and accuracy of the determined definition configuration information. In addition, it enriches the construction factors of the target class model, which is beneficial to improving the comprehensiveness and rationality of the class model construction method, and thus beneficial to improving the accuracy and reliability of the constructed class model.
[0119] In another optional embodiment, determining the definition configuration information corresponding to all subclass models based on the first determination result may include:
[0120] When the first judgment result is yes, obtain the definition requirement information corresponding to the first subclass model, and perform definition configuration operation on the first subclass model according to the definition requirement information and the set definition configuration conditions to obtain the first definition configuration information corresponding to the first subclass model; filter out the second definition configuration information corresponding to all subclass models other than the first subclass model from the historical definition configuration information; determine the definition configuration information corresponding to all subclass models according to the first definition configuration information and the second definition configuration information.
[0121] If the first judgment result is negative, the target definition configuration information corresponding to all subclass models is selected from the historical definition configuration information and used as the definition configuration information corresponding to all subclass models.
[0122] As can be seen, this optional embodiment can provide corresponding definition configuration information determination methods for both yes and no cases in the first judgment result. By performing definition configuration operations to determine the definition configuration information and / or filtering the required definition configuration information from historical definition configuration information, it enriches the diversity of definition configuration information determination methods, improves the flexibility of definition configuration information determination methods, and thus helps to improve the comprehensiveness and rationality of definition configuration information determination methods. This is conducive to improving the efficiency of definition configuration information determination and the accuracy and reliability of the determined definition configuration information, reducing unnecessary resource waste to a certain extent, and further improving the accuracy, reliability and construction efficiency of the target class model subsequently constructed based on the definition configuration information.
[0123] In another optional embodiment, the process of constructing the target class model based on the defined configuration information, quantity, all subclass models, and class model construction information may include:
[0124] Based on the defined configuration information and class model construction information, determine whether there is a second subclass model that satisfies the attribute configuration conditions among all subclass models, and obtain the second judgment result;
[0125] When the second judgment result is yes, obtain the inheritance pop-up configuration information corresponding to the second subclass model, and perform pop-up configuration operation on the second subclass model according to the inheritance pop-up configuration information and the pop-up configuration requirements corresponding to the second subclass model to obtain the second subclass model with completed pop-up configuration, so as to update the subclass model; determine the pop-up configuration information corresponding to the second subclass model with completed pop-up configuration, and construct the target class model according to the pop-up configuration information, definition configuration information, quantity, all subclass models and class model construction information;
[0126] If the second judgment result is negative, the operation of constructing the target class model is performed based on the pop-up configuration information, definition configuration information, quantity, all subclass models and class model construction information.
[0127] Optionally, the pop-up configuration function can be implemented by using SVG engine attribute extension listener events.
[0128] Optionally, the pop-up configuration operation may include one or more of the following: class model attribute configuration operation, method configuration operation, inheritance configuration operation, and other special attribute configuration operation. This embodiment of the invention does not limit the scope of the operation.
[0129] It should be noted that when the second judgment result is negative, the corresponding pop-up configuration information can be empty, that is, no pop-up configuration settings are required.
[0130] As can be seen, this optional embodiment can provide a pop-up configuration setting method, execute pop-up configuration settings according to inherited pop-up configuration information and pop-up configuration requirements, and match the corresponding class model construction method according to the judgment result of whether there is a pop-up configuration condition. This is conducive to improving the comprehensiveness and rationality of the pop-up configuration setting method, which in turn is conducive to improving the comprehensiveness and rationality of the class model construction method. In addition, it also enriches the intelligent functions of the constructed class model, which is conducive to improving the functionality and intelligence of the constructed class model. This not only improves the user experience, but also increases the user stickiness of the class model construction method and the constructed class model using SVG technology.
[0131] In another optional embodiment, the above-mentioned construction of the target class model based on the pop-up configuration information, definition configuration information, quantity, all subclass models, and class model construction information may include:
[0132] When the number is less than the number threshold, the target class model is constructed based on the construction information of all subclass models and class models.
[0133] When the quantity is greater than or equal to the quantity threshold, the basic connection type corresponding to each pair of sub-class models is determined based on the pop-up configuration information, definition configuration information, quantity, all sub-class models and class model construction information; all basic connection types and set model connection conditions are analyzed to obtain the overall connection situation corresponding to all sub-class models; when the overall connection is used to represent that all sub-class models meet the connection conditions, the target class model is constructed based on all basic connection types, pop-up configuration information, definition configuration information, all sub-class models and class model construction information.
[0134] Optionally, the connection type may include one or more of the following: inherited connection type, implemented connection type, and associated type; this embodiment of the invention does not impose any limitation. Furthermore, the connection type is predefined before using the connection.
[0135] It should be noted that the basic connection type and the target connection type mentioned later are used to connect relationships between subclass models.
[0136] As can be seen, this optional embodiment can match the corresponding class model construction method for two cases: the quantity is less than the quantity threshold and the quantity is greater than or equal to the quantity threshold. Different construction methods correspond to different quantity cases, which helps to improve the comprehensiveness, rationality and matching of the class model construction method, thereby improving the accuracy and reliability of the constructed class model. In addition, it also helps to enrich the diversity of class model construction methods, improve the flexibility of class model construction methods, and thus improve the construction efficiency and convenience of class models.
[0137] In another optional embodiment, when the overall connection is used to represent that all subclass models satisfy the connection conditions, the above-mentioned construction of the target class model based on all basic connection types, pop-up configuration information, definition configuration information, all subclass models, and class model construction information may include:
[0138] Determine if there is a target connection type among all basic connection types that meets the set connection response conditions;
[0139] When the judgment result is yes, determine the associated attribute information corresponding to the target connection type, and perform a configuration response operation based on the associated attribute information and the target connection type to obtain the target connection type that has completed the configuration response, so as to update the basic connection type; and construct the target class model based on all basic connection types, pop-up configuration information, definition configuration information, all subclass models and class model construction information.
[0140] When the judgment result is negative, the target class model is constructed based on all basic connection types, pop-up configuration information, definition configuration information, all subclass models and class model construction information.
[0141] Optionally, the configuration response operation can be to configure response events to add and improve related attribute information, such as defining the attributes and related attributes of the connection, defining the related fields of the source model, and defining the related fields of the target class model, etc., which is not limited in this embodiment of the invention. Furthermore, the page for adding and improving related information can appear in the form of a pop-up window.
[0142] As can be seen, this optional embodiment can provide a connection response setting method. When a connection type that meets the connection response conditions exists, a configuration response operation is performed based on the associated attribute information. This helps improve the rationality and comprehensiveness of the connection response setting method, and thus helps improve the accuracy and reliability of the connection type obtained after the response setting. In addition, it can also build a class model based on the connection type that has completed the configuration response, enriching the factors for class model construction. This helps enrich the intelligent functions of the class model construction method based on SVG technology, improves the comprehensiveness and rationality of the class model construction method, and thus helps improve the intelligence, functionality and usability of the constructed class model. This not only improves the user experience, but also increases the user stickiness of the class model construction method based on SVG technology and the constructed class model.
[0143] In another optional embodiment, the above analysis of all basic connection types and set model connection conditions to obtain the overall connection situation corresponding to all sub-type models may include:
[0144] Determine the scenario setting information corresponding to the current situation, and based on the scenario setting information, all basic connection types, and the set model connection conditions, determine the adversarial nature corresponding to all basic connection types;
[0145] Determine whether the adversarial strength is less than or equal to the preset adversarial threshold. If the determination result is yes, determine that the overall connection situation of all sub-models is that all sub-models meet the connection condition.
[0146] When it is determined that the adversarial nature equals the adversarial nature threshold, the overall connection situation for all sub-models is determined to be that all sub-models do not meet the connection conditions, and a connection type adjustment operation is performed based on the overall connection situation to update the basic connection type.
[0147] For example, the connections between different subclass models need to be configured with different connection attributes, and the actual construction and applicable scenarios need to be considered, as well as connection validation and conflict handling between different primitive models. For instance, when making connections of inheritance type, it is necessary to check whether they exist and not allow circular inheritance. Another example is that connections of interface inheritance type can have multiple inheritance. Yet another example is that only class primitive models and service primitive models can implement interfaces. These are just a few examples.
[0148] As can be seen, this optional embodiment can provide a method for determining the overall connectivity situation. By comparing the adversarial nature and adversarial threshold corresponding to all basic connectivity types, the overall connectivity situation can be determined. This is beneficial to improving the comprehensiveness and rationality of the method for determining the overall connectivity situation, thereby improving the accuracy and reliability of the determined overall connectivity situation, as well as improving the efficiency of determining the overall connectivity situation. In this way, it is beneficial to improve the accuracy, reliability and construction efficiency of the class model constructed based on the overall connectivity situation and other information.
[0149] Example 2
[0150] Please see Figure 2 , Figure 2 This is a flowchart illustrating another class model construction method based on SVG technology disclosed in an embodiment of the present invention. Figure 2 The described method can be applied to a class model building apparatus based on SVG technology, wherein the apparatus may include a server, which may be a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 2 As shown, this class model construction method based on SVG technology includes the following operations:
[0151] 201. Monitor class model construction information and determine the content of class model construction based on the class model construction information.
[0152] 202. Based on the content of the class model construction, determine whether the current situation corresponding to the class model construction information meets the set construction requirements.
[0153] 203. When it is determined that the current situation meets the construction requirements, the target class model is constructed based on the class model construction information and class model construction content.
[0154] 204. When a plugin conversion instruction corresponding to the target class model is detected, determine the plugin information to be converted based on the plugin conversion instruction.
[0155] Optionally, the plugin information to be converted may include one or more of the following: domain model configuration information, name configuration information, and attribute configuration information.
[0156] 205. Analyze the information of the plugin to be converted and the corresponding information of the target class model to obtain the degree of fusion between the plugin to be converted and the target class model corresponding to the information of the plugin to be converted.
[0157] 206. Determine whether the fusionability is greater than or equal to the preset fusionability threshold.
[0158] Alternatively, when it is determined that the degree of fusion is less than the degree of fusion threshold, the plugin to be converted can be adjusted to achieve plugin conversion or the operation can be terminated.
[0159] 207. When it is determined that the fusion degree is greater than or equal to the fusion degree threshold, the target class model is converted according to the information of the plugin to be converted and the plugin to be converted, and a new target class model is obtained.
[0160] Optionally, after performing the plugin conversion operation on the target class model, the target class model can be updated or saved as a new class model. This embodiment of the invention does not impose any limitations.
[0161] In this embodiment of the invention, for other descriptions of steps 201-203, please refer to the other detailed descriptions of steps 101-103 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.
[0162] As can be seen, the embodiments of the present invention can intelligently construct target types based on class model construction information and determined class model construction content. Using the SVG rendering engine as the core, it achieves intelligent class model construction functionality applicable to various class model construction scenarios, which is beneficial to improving the convenience and efficiency of software class model construction. This helps reduce the manpower, material resources, and time costs of class model construction development. Furthermore, the constructed target class model is a structured data model, which helps improve the standardization and structure of the class model, thereby improving its applicability and referenceability. Additionally, it can provide a plugin conversion method. When the fusion degree is greater than or equal to the fusion degree threshold, a class model plugin conversion operation can be performed to update the class model or obtain a new class model. This helps improve the comprehensiveness and rationality of the SVG-based class model construction method, enriches the intelligent functions of the SVG-based class model construction method, and also helps improve the construction efficiency and convenience of the class model. This not only improves the user experience but also increases user stickiness when using the SVG-based class model construction method.
[0163] Example 3
[0164] Please see Figure 3 , Figure 3 This is a schematic diagram of a class model construction device based on SVG technology disclosed in an embodiment of the present invention. Figure 3 The described apparatus may include a server, wherein the server includes a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 3 As shown, the class model building device based on SVG technology may include:
[0165] Monitoring module 301 is used to monitor class model construction information.
[0166] The determination module 302 is used to determine the content of the class model construction based on the class model construction information.
[0167] The judgment module 303 is used to determine whether the current situation corresponding to the class model construction information meets the set construction requirements based on the content of the class model construction.
[0168] The construction module 304 is used to construct the target class model based on the class model construction information and class model construction content when the judgment module determines that the current situation meets the construction requirements.
[0169] It is evident that implementation Figure 3 The described SVG-based class model building device can intelligently build target types based on class model building information and determined class model building content. With the SVG rendering engine as the core, it realizes intelligent class model building functions applicable to various class model building scenarios, which helps to improve the convenience and efficiency of software class model building, thereby reducing the manpower, material resources and time costs of class model building development. In addition, the constructed target class model is a structured data model, which helps to improve the standardization and structure of the class model, and thus improves the applicability and referenceability of the class model.
[0170] In an optional embodiment, the construction module 304 constructs the target class model based on the class model construction information and the class model construction content in the following specific ways:
[0171] Based on the content of the class model construction, determine the number of subclass models to be constructed, and based on the number and the content of the class model construction, select the target requirement information from the pre-defined set of construction requirement information.
[0172] Based on the target requirements and class model construction content, at least one subclass model is constructed, and based on the quantity, all subclass models, and class model construction information, the target class model is constructed.
[0173] Among them, all sub-models include one or more of the following: class primitive model, service primitive model, data structure primitive model, enumeration primitive model, exception primitive model, and other primitive models.
[0174] It is evident that implementation Figure 4 The described apparatus can first determine the subclass model, and then construct the target class model based on the number of subclass models, class model construction information, and subclass models. Constructing the target class model based on the subclass models helps to improve the feasibility and rationality of the target class model construction method, and thus helps to improve the accuracy and reliability of the constructed target class model.
[0175] In another optional embodiment, the construction module 304 constructs the target class model based on the quantity, all subclass models, and class model construction information in the following specific ways:
[0176] Based on the pre-defined configuration information, determine whether there is a first subclass model among all subclass models that meets the defined conditions, and obtain the first judgment result;
[0177] Based on the first judgment result, determine the definition configuration information corresponding to all subclass models;
[0178] Based on the defined configuration information, quantity, all subclass models, and class model construction information, the target class model is constructed.
[0179] It is evident that implementation Figure 4 The described device can also determine the definition configuration information of the subclass model based on the first judgment result, and further combine the definition configuration information and other previously mentioned information to construct the class model. This is beneficial to improving the efficiency and rationality of the determination of the definition configuration information, as well as the effectiveness and accuracy of the determined definition configuration information. In addition, it enriches the construction factors of the target class model, which is beneficial to improving the comprehensiveness and rationality of the class model construction method, and thus beneficial to improving the accuracy and reliability of the constructed class model.
[0180] In yet another optional embodiment, the method by which the construction module 304 determines the definition configuration information corresponding to all subclass models based on the first determination result specifically includes:
[0181] When the first judgment result is yes, obtain the definition requirement information corresponding to the first subclass model, and perform definition configuration operation on the first subclass model according to the definition requirement information and the set definition configuration conditions to obtain the first definition configuration information corresponding to the first subclass model; filter out the second definition configuration information corresponding to all subclass models other than the first subclass model from the historical definition configuration information; determine the definition configuration information corresponding to all subclass models according to the first definition configuration information and the second definition configuration information.
[0182] If the first judgment result is negative, the target definition configuration information corresponding to all subclass models is selected from the historical definition configuration information and used as the definition configuration information corresponding to all subclass models.
[0183] It is evident that implementation Figure 4The described apparatus can also provide corresponding definition configuration information determination methods for both yes and no first judgment results. By performing definition configuration operations to determine the definition configuration information and / or filtering the required definition configuration information from historical definition configuration information, it enriches the diversity of definition configuration information determination methods, improves the flexibility of definition configuration information determination methods, and thus helps to improve the comprehensiveness and rationality of definition configuration information determination methods. This, in turn, helps to improve the efficiency of definition configuration information determination and the accuracy and reliability of the determined definition configuration information, reduces unnecessary resource waste to a certain extent, and further helps to improve the accuracy, reliability and construction efficiency of the target class model subsequently constructed based on the definition configuration information.
[0184] In yet another optional embodiment, the construction module 304 constructs the target class model based on the defined configuration information, quantity, all subclass models, and class model construction information in the following specific ways:
[0185] Based on the defined configuration information and class model construction information, determine whether there is a second subclass model that satisfies the attribute configuration conditions among all subclass models, and obtain the second judgment result;
[0186] When the second judgment result is yes, obtain the inheritance pop-up configuration information corresponding to the second subclass model, and perform pop-up configuration operation on the second subclass model according to the inheritance pop-up configuration information and the pop-up configuration requirements corresponding to the second subclass model to obtain the second subclass model with completed pop-up configuration, so as to update the subclass model; determine the pop-up configuration information corresponding to the second subclass model with completed pop-up configuration, and construct the target class model according to the pop-up configuration information, definition configuration information, quantity, all subclass models and class model construction information;
[0187] If the second judgment result is negative, the operation of constructing the target class model is performed based on the pop-up configuration information, definition configuration information, quantity, all subclass models and class model construction information.
[0188] It is evident that implementation Figure 4 The described device can also provide a pop-up configuration setting method, which executes pop-up configuration settings based on inherited pop-up configuration information and pop-up configuration requirements, and matches the corresponding class model construction method based on the judgment result of whether there is a condition that meets the pop-up configuration. This helps to improve the comprehensiveness and rationality of the pop-up configuration setting method, which in turn helps to improve the comprehensiveness and rationality of the class model construction method. Furthermore, it enriches the intelligent functions of the constructed class model, which in turn helps to improve the functionality and intelligence of the constructed class model. This not only improves the user experience, but also increases the user stickiness of the class model construction method and the constructed class model using SVG technology.
[0189] In another optional embodiment, the construction module 304 constructs the target class model based on the pop-up configuration information, definition configuration information, quantity, all subclass models, and class model construction information in the following specific ways:
[0190] When the number is less than the number threshold, the target class model is constructed based on the construction information of all subclass models and class models.
[0191] When the quantity is greater than or equal to the quantity threshold, the basic connection type corresponding to each pair of sub-class models is determined based on the pop-up configuration information, definition configuration information, quantity, all sub-class models and class model construction information; all basic connection types and set model connection conditions are analyzed to obtain the overall connection situation corresponding to all sub-class models; when the overall connection is used to represent that all sub-class models meet the connection conditions, the target class model is constructed based on all basic connection types, pop-up configuration information, definition configuration information, all sub-class models and class model construction information.
[0192] It is evident that implementation Figure 4 The described device can also match the corresponding class model construction method for two cases: the quantity is less than the quantity threshold and the quantity is greater than or equal to the quantity threshold. Different construction methods correspond to different quantity cases, which helps to improve the comprehensiveness, rationality and matching of class model construction methods, thereby improving the accuracy and reliability of the constructed class model. In addition, it also helps to enrich the diversity of class model construction methods, improve the flexibility of class model construction methods, and thus improve the construction efficiency and convenience of class models.
[0193] In another optional embodiment, when the overall connection is used to represent that all subclass models meet the connection conditions, the above-mentioned construction module 304 constructs the target class model based on all basic connection types, pop-up configuration information, definition configuration information, all subclass models, and class model construction information in the following specific ways:
[0194] Determine if there is a target connection type among all basic connection types that meets the set connection response conditions;
[0195] When the judgment result is yes, determine the associated attribute information corresponding to the target connection type, and perform a configuration response operation based on the associated attribute information and the target connection type to obtain the target connection type that has completed the configuration response, so as to update the basic connection type; and construct the target class model based on all basic connection types, pop-up configuration information, definition configuration information, all subclass models and class model construction information.
[0196] When the judgment result is negative, the target class model is constructed based on all basic connection types, pop-up configuration information, definition configuration information, all subclass models and class model construction information.
[0197] It is evident that implementation Figure 4 The described device can also provide a connection response setting method. When a connection type that meets the connection response conditions exists, a configuration response operation is performed based on the associated attribute information. This helps improve the rationality and comprehensiveness of the connection response setting method, thereby improving the accuracy and reliability of the connection type obtained after the response setting. In addition, it can also construct a class model based on the connection type that has completed the configuration response, enriching the factors for class model construction. This helps enrich the intelligent functions of the SVG-based class model construction method, improves the comprehensiveness and rationality of the class model construction method, and thus helps improve the intelligence, functionality, and usability of the constructed class model. This not only improves the user experience but also increases user stickiness when using the SVG-based class model construction method and the constructed class model.
[0198] In another optional embodiment, the construction module 304 analyzes all basic connection types and set model connection conditions to obtain the overall connection situation corresponding to all sub-type models in the following specific ways:
[0199] Determine the scenario setting information corresponding to the current situation, and based on the scenario setting information, all basic connection types, and the set model connection conditions, determine the adversarial nature corresponding to all basic connection types;
[0200] Determine whether the adversarial strength is less than or equal to the preset adversarial threshold. If the determination result is yes, determine that the overall connection situation of all sub-models is that all sub-models meet the connection condition.
[0201] When it is determined that the adversarial nature equals the adversarial nature threshold, the overall connection situation for all sub-models is determined to be that all sub-models do not meet the connection conditions, and a connection type adjustment operation is performed based on the overall connection situation to update the basic connection type.
[0202] It is evident that implementation Figure 4 The described device can also provide a method for determining the overall connectivity situation. It determines the overall connectivity situation based on the comparison between the adversarial nature and the adversarial threshold corresponding to all basic connectivity types. This helps to improve the comprehensiveness and rationality of the method for determining the overall connectivity situation, thereby improving the accuracy and reliability of the determined overall connectivity situation, as well as the efficiency of determining the overall connectivity situation. This, in turn, helps to improve the accuracy, reliability, and construction efficiency of the class model built based on the overall connectivity situation and other information.
[0203] In another optional embodiment, the determining module 302 is further configured to determine the plugin information to be converted according to the plugin conversion instruction after the building module 304 has built the target class model based on the class model construction information and the class model construction content, and when the plugin conversion instruction corresponding to the target class model is detected; the plugin information to be converted includes one or more of the following: domain model configuration information, name configuration information and attribute configuration information.
[0204] like Figure 4 As shown, the device may also include
[0205] Analysis module 305 is used to analyze the information of the plugin to be converted and the corresponding information of the target class model, and to obtain the degree of fusion between the plugin to be converted and the target class model corresponding to the information of the plugin to be converted.
[0206] The judgment module 303 is also used to determine whether the degree of fusion is greater than or equal to the preset degree of fusion threshold.
[0207] The plugin conversion module 306 is used to perform a plugin conversion operation on the target class model according to the plugin information to be converted and the plugin to be converted when the judgment module 303 determines that the fusion degree is greater than or equal to the fusion degree threshold, so as to obtain a new target class model.
[0208] It is evident that implementation Figure 4 The described device can also provide a plug-in conversion method. When the fusion degree is greater than or equal to the fusion degree threshold, a class model plug-in conversion operation can be performed to update the class model or obtain a new class model. This is beneficial to improving the comprehensiveness and rationality of the class model construction method based on SVG technology, enriching the intelligent functions of the class model construction method based on SVG technology, and also improving the construction efficiency and convenience of the class model. This not only improves the user experience but also increases user stickiness when using the class model construction method based on SVG technology.
[0209] Example 4
[0210] Please see Figure 5 , Figure 5 This is a schematic diagram of another class model construction device based on SVG technology disclosed in an embodiment of the present invention. Figure 5 The described apparatus may include a server, wherein the server includes a local server or a cloud server, and the embodiments of the present invention are not limited thereto. Figure 5 As shown, the device may include:
[0211] Memory 401 storing executable program code;
[0212] Processor 402 coupled to memory 401;
[0213] Furthermore, it may also include an input interface 403 coupled to the processor 402 and an output interface 404;
[0214] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the class model construction method based on SVG technology described in Embodiment 1 or Embodiment 2.
[0215] Example 5
[0216] This invention discloses a computer read storage medium that stores a computer program for electronic data interchange, wherein the computer program causes a computer to execute the steps in the class model construction method based on SVG technology described in Embodiment 1 or Embodiment 2.
[0217] Example 6
[0218] This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the class model construction method based on SVG technology described in Embodiment 1 or Embodiment 2.
[0219] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0220] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0221] Finally, it should be noted that the class model construction method and apparatus based on SVG technology disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A class model construction method based on SVG technology, characterized in that, The method includes: Monitor class model construction information, and determine the class model construction content based on the class model construction information; Based on the content of the class model construction, determine whether the current situation corresponding to the class model construction information meets the set construction requirements; When the judgment result is yes, the target class model is constructed based on the class model construction information and the class model construction content; And, the step of constructing the target class model based on the class model construction information and the class model construction content includes: Based on the content of the class model construction, determine the number of subclass models to be constructed, and based on the number and the content of the class model construction, filter out the target requirement information from the pre-set set of construction requirement information. Based on the target requirement information and the class model construction content, at least one subclass model is constructed, and based on the pre-set definition configuration information, it is determined whether there is a first subclass model among all the subclass models that meets the set definition conditions, and a first judgment result is obtained. When the first judgment result is yes, obtain the definition requirement information corresponding to the first subclass model, and perform a definition configuration operation on the first subclass model according to the definition requirement information and the set definition configuration conditions to obtain the first definition configuration information corresponding to the first subclass model; filter out the second definition configuration information corresponding to all subclass models other than the first subclass model from the historical definition configuration information; determine the definition configuration information corresponding to all subclass models according to the first definition configuration information and the second definition configuration information. When the first judgment result is negative, the target definition configuration information corresponding to all the sub-class models is filtered out from the historical definition configuration information and used as the definition configuration information corresponding to all the sub-class models. Based on the defined configuration information and the class model construction information, determine whether there is a second sub-class model that satisfies the attribute configuration conditions among all the sub-class models, and obtain a second determination result; When the second judgment result is yes, obtain the inheritance pop-up configuration information corresponding to the second subclass model, and perform a pop-up configuration operation on the second subclass model according to the inheritance pop-up configuration information and the pop-up configuration requirements corresponding to the second subclass model to obtain a second subclass model with completed pop-up configuration, so as to update the subclass model; determine the pop-up configuration information corresponding to the second subclass model with completed pop-up configuration, and construct the target class model according to the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information; When the second judgment result is negative, the target class model is constructed based on the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information; Among them, all the sub-models include one or more of the following: class primitive model, service primitive model, data structure primitive model, enumeration primitive model, exception primitive model and other primitive models.
2. The class model construction method based on SVG technology according to claim 1, characterized in that, The step of constructing the target class model based on the pop-up configuration information, the definition configuration information, the quantity, all the subclass models, and the class model construction information includes: When the number is less than the number threshold, the target class model is constructed based on all the subclass models and the class model construction information; When the quantity is greater than or equal to the quantity threshold, the basic connection type corresponding to each pair of sub-class models is determined based on the pop-up configuration information, the definition configuration information, the quantity, all sub-class models, and the class model construction information; all basic connection types and the set model connection conditions are analyzed to obtain the overall connection situation corresponding to all sub-class models; when the overall connection is used to indicate that all sub-class models meet the connection conditions, the target class model is constructed based on all basic connection types, the pop-up configuration information, the definition configuration information, all sub-class models, and the class model construction information.
3. The class model construction method based on SVG technology according to claim 2, characterized in that, When the overall connection is used to indicate that all the subclass models satisfy the connection conditions, the step of constructing the target class model based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models, and the class model construction information includes: Determine whether there is a target connection type among all the basic connection types that meets the set connection response conditions; When the judgment result is yes, determine the associated attribute information corresponding to the target connection type, and perform a configuration response operation based on the associated attribute information and the target connection type to obtain the target connection type that has completed the configuration response, so as to update the basic connection type; and construct the target class model based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models and the class model construction information. When the judgment result is negative, the target class model is constructed based on all the basic connection types, the pop-up configuration information, the definition configuration information, all the subclass models, and the class model construction information.
4. The class model construction method based on SVG technology according to claim 3, characterized in that, The analysis of all the basic connection types and the set model connection conditions yields the overall connection situation corresponding to all the sub-type models, including: Determine the scenario setting information corresponding to the current situation, and based on the scenario setting information, all the basic connection types, and the set model connection conditions, determine the adversarial nature corresponding to all the basic connection types; Determine whether the adversarial strength is less than or equal to a preset adversarial threshold. If the determination result is yes, determine that the overall connection situation corresponding to all the sub-class models is that all the sub-class models meet the connection condition. When it is determined that the adversarial nature is equal to the adversarial threshold, the overall connection situation corresponding to all the sub-class models is determined to be that all the sub-class models do not meet the connection conditions, and a connection type adjustment operation is performed based on the overall connection situation to update the basic connection type.
5. The class model construction method based on SVG technology according to claim 4, characterized in that, After constructing the target class model based on the class model construction information and the class model construction content, the method further includes: When a plugin conversion instruction corresponding to the target class model is detected, the plugin information to be converted is determined according to the plugin conversion instruction; the plugin information to be converted includes one or more of the following: domain model configuration information, name configuration information, and attribute configuration information. By analyzing the information of the plugin to be converted and the corresponding information of the target class model, the degree of fusion between the plugin to be converted and the target class model is obtained. Determine whether the fusion degree is greater than or equal to a preset fusion degree threshold. If the determination result is yes, perform a plugin conversion operation on the target class model according to the plugin information to be converted and the plugin to be converted to obtain a new target class model.
6. A class model construction device based on SVG technology, characterized in that, The device includes: The monitoring module is used to monitor information related to the construction of class models. The determination module is used to determine the content of class model construction based on the class model construction information; The judgment module is used to determine whether the current situation corresponding to the class model construction information meets the set construction requirements based on the class model construction content. A construction module is used to construct a target class model based on the class model construction information and the class model construction content when the judgment module determines that the current situation meets the construction requirements. Furthermore, the specific methods by which the construction module constructs the target class model based on the class model construction information and the class model construction content include: Based on the content of the class model construction, determine the number of subclass models to be constructed, and based on the number and the content of the class model construction, filter out the target requirement information from the pre-set set of construction requirement information. Based on the target requirement information and the class model construction content, at least one subclass model is constructed, and based on the pre-set definition configuration information, it is determined whether there is a first subclass model among all the subclass models that meets the set definition conditions, and a first judgment result is obtained. When the first judgment result is yes, obtain the definition requirement information corresponding to the first subclass model, and perform a definition configuration operation on the first subclass model according to the definition requirement information and the set definition configuration conditions to obtain the first definition configuration information corresponding to the first subclass model; filter out the second definition configuration information corresponding to all subclass models other than the first subclass model from the historical definition configuration information; determine the definition configuration information corresponding to all subclass models according to the first definition configuration information and the second definition configuration information. When the first judgment result is negative, the target definition configuration information corresponding to all the sub-class models is filtered out from the historical definition configuration information and used as the definition configuration information corresponding to all the sub-class models. Based on the defined configuration information and the class model construction information, determine whether there is a second sub-class model that satisfies the attribute configuration conditions among all the sub-class models, and obtain a second determination result; When the second judgment result is yes, obtain the inheritance pop-up configuration information corresponding to the second subclass model, and perform a pop-up configuration operation on the second subclass model according to the inheritance pop-up configuration information and the pop-up configuration requirements corresponding to the second subclass model to obtain a second subclass model with completed pop-up configuration, so as to update the subclass model; determine the pop-up configuration information corresponding to the second subclass model with completed pop-up configuration, and construct the target class model according to the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information; When the second judgment result is negative, the target class model is constructed based on the pop-up configuration information, the definition configuration information, the quantity, all the subclass models and the class model construction information; Among them, all the sub-models include one or more of the following: class primitive model, service primitive model, data structure primitive model, enumeration primitive model, exception primitive model and other primitive models.
7. A class model construction device based on SVG technology, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the class model construction method based on SVG technology as described in any one of claims 1-5.
8. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the class model construction method based on SVG technology as described in any one of claims 1-5.