Modeling method and device based on relationship and relationship labeling, electronic equipment and storage medium

By building optional association relationships between elements in the modeling system and configuring pages, creating annotated association relationships, the problems of cumbersome configuration and single logic in traditional modeling methods are solved, and more flexible and rich association relationship configuration is achieved.

CN120179248AActive Publication Date: 2025-06-20BEIJING TONGYU ZHICHENG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510639036.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2025-06-20
Estimated Expiration
2045-05-19

AI Technical Summary

Technical Problem

When creating association relationships between primitives, the configuration is complicated, and the meaning and logic of the configuration association relationship are single, and the triggering conditions are poor.

Method used

By displaying the starting element to be connected and the ending element to be connected in the graphical user interface of the modeling system, and building an optional association relationship between them, establish an initial association relationship in response to the connection operation, and then configure the type and trigger conditions of the association relationship in the configuration page to create an annotated association relationship.

Benefits of technology

The configuration process of association relationships is simplified, the diversity and logical richness of association relationships are increased, and the flexibility of trigger conditions is improved, alleviating the problems of cumbersome configuration and logical singleness in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120179248A_ABST
    Figure CN120179248A_ABST
Patent Text Reader

Abstract

The invention provides a modeling method and device based on a relation and relation annotation, electronic equipment and a storage medium, and belongs to the technical field of graphical models.In the method, an optional incidence relation between a to-be-connected starting primitive and a to-be-connected terminating primitive is built in a modeling system, so that it is not needed to establish the incidence relation before the incidence relation is established, and the modeling efficiency is improved. In addition, after the initial association relationship is established, a configuration page of the initial association relationship is displayed, and the type and the trigger condition of the initial association relationship are configured, so that the association relationship with the label is obtained, the meaning and the logic of the association relationship with the label are richer, and the accuracy of the association relationship with the label is improved. And the triggering condition can be configured, namely the triggering condition is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of graphical models, and in particular, to a modeling method, device, electronic device, and storage medium based on relationships and relationship annotations. Background Art

[0002] In the existing model, the association relationships are configured first, and the information represented by each association relationship is specified; then the association relationships are used to connect the graphic elements to express specific logic. The specific technical solution diagram is as Figure 1 shown.

[0003] Configure association relationships: Configure each association relationship that needs to be used in sequence, and specify its display style and expression meaning; Drag and connect graphic elements: On the layer where the association relationship needs to be established, use the mouse to drag from one graphic element to another to create an association relationship; Select an association relationship: According to the different types of graphic elements at both ends of the connection, select different types of association relationships to express different meanings and logics.

[0004] The existing technical solutions for association relationships mainly have the following two problems: (1) If you want the association relationship to express more diverse and complex logics, a relatively cumbersome configuration process needs to be carried out before establishing the association relationship; (2) The meanings and logics expressed by the configured association relationships are relatively single, and the association relationships are triggered when the data changes.

[0005] In summary, in the traditional modeling method, when creating the association relationship between graphic elements, there are technical problems of cumbersome configuration, single meaning and logic of the configured association relationship, and poor flexibility of the triggering condition. Summary of the Invention

[0006] In view of this, an object of the present invention is to provide a modeling method, device, electronic device, and storage medium based on relationships and relationship annotations, so as to alleviate the technical problems of cumbersome configuration, single meaning and logic of the configured association relationship, and poor flexibility of the triggering condition when creating the association relationship between graphic elements in the traditional modeling method.

[0007] In a first aspect, an embodiment of the present invention provides a modeling method based on relationships and relationship annotations. The starting graphic element to be connected and the ending graphic element to be connected are displayed through the graphical user interface of the modeling system. The optional association relationships between the starting graphic element to be connected and the ending graphic element to be connected are already built in the modeling system. The method includes: Responding to a connection operation of the starting graphic element to be connected to the ending graphic element to be connected, an initial association relationship is established between the starting graphic element to be connected and the ending graphic element to be connected; In response to the end of the connection operation, display a configuration page for the initial association relationship in the graphical user interface, where the configuration page includes: the types of each association relationship in the optional association relationships, and the trigger conditions corresponding to each association relationship; In response to the configuration operation on the configuration page, create an annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive, and then obtain a model composed of the to-be-connected start primitive, the to-be-connected end primitive, and the annotated association relationship, where the annotated association relationship is used to represent the type and trigger condition of the association relationship configured in the configuration operation.

[0008] Further, the method further includes: In response to the selection operation on the annotated association relationship, display a modification page for the annotated association relationship; In response to the modification operation on the modification page, create a modified annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive.

[0009] Further, the trigger conditions include: object generation, object change, and object disappearance.

[0010] Further, the modification page includes: relationship probability, optional types, and logical judgment.

[0011] Further, the method further includes: In response to the deduction operation on the model, perform the deduction operation on the model.

[0012] Further, the method further includes: In response to the deletion operation on the annotated association relationship, delete the annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive.

[0013] In a second aspect, an embodiment of the present invention further provides a modeling device based on relationships and relationship annotations. The to-be-connected start primitive and the to-be-connected end primitive are displayed through the graphical user interface of the modeling system, and the optional association relationships between the to-be-connected start primitive and the to-be-connected end primitive are built in the modeling system. The device includes: A establishing unit, configured to establish an initial association relationship between the to-be-connected start primitive and the to-be-connected end primitive in response to the connection operation of the to-be-connected start primitive to the to-be-connected end primitive; A display unit, configured to, in response to the end of the connection operation, display, on the graphical user interface, a configuration page for the initial association relationship, where the configuration page includes: types of the association relationships in the optional association relationships, and trigger conditions corresponding to the association relationships; A creation unit, configured to, in response to a configuration operation on the configuration page, create an annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive, so as to obtain a model composed of the to-be-connected start primitive, the to-be-connected end primitive, and the annotated association relationship, where the annotated association relationship is used to represent the type and trigger condition of the association relationship configured in the configuration operation.

[0014] Further, the apparatus is further configured to: In response to a selection operation on the annotated association relationship, display a modification page for the annotated association relationship; In response to a modification operation on the modification page, create a modified annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, the steps of the method according to any one of the first aspects are implemented.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to execute the method according to any one of the first aspects.

[0017] In an embodiment of the present invention, a modeling method based on relationships and relationship annotations is provided. The starting element to be connected and the ending element to be connected are displayed through the graphical user interface of the modeling system. Optional association relationships between the starting element to be connected and the ending element to be connected are already built into the modeling system. The method includes: responding to a connection operation from the starting element to be connected to the ending element to be connected, and establishing an initial association relationship between the starting element to be connected and the ending element to be connected; responding to the end of the connection operation, and displaying a configuration page for the initial association relationship on the graphical user interface, where the configuration page includes: types of each association relationship in the optional association relationships, and triggering conditions corresponding to each association relationship; responding to a configuration operation on the configuration page, and creating an annotated association relationship between the starting element to be connected and the ending element to be connected, thereby obtaining a model composed of the starting element to be connected, the ending element to be connected, and the annotated association relationship, where the annotated association relationship is used to represent the type and triggering conditions of the association relationship configured in the configuration operation. From the above description, it can be seen that in the modeling method based on relationships and relationship annotations of the present invention, optional association relationships between the starting element to be connected and the ending element to be connected are already built into the modeling system. In this way, there is no need to perform a cumbersome process of configuring association relationships before establishing an association relationship. In addition, after the initial association relationship is established, a configuration page for the initial association relationship will be displayed to configure the type and triggering conditions of the initial association relationship, thereby obtaining an annotated association relationship. The meaning and logic of the annotated association relationship are richer, and the triggering conditions can also be configured, that is, the triggering conditions are more flexible, alleviating the technical problems in traditional modeling methods, such as cumbersome configuration, single meaning and logic of the configured association relationships, and poor flexibility of triggering conditions. Description of the Drawings

[0018] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0019] Figure 1 Flowchart of the traditional modeling method provided by the embodiment of the present invention; Figure 2 Flowchart of a modeling method based on relationships and relationship annotations provided by the embodiment of the present invention; Figure 3 Schematic diagram of establishing an initial association relationship provided by the embodiment of the present invention; Figure 4 Schematic diagram of the configuration page of the initial association relationship provided by the embodiment of the present invention; Figure 5 A schematic diagram of an associated relationship with annotations provided by an embodiment of the present invention; Figure 6 A schematic diagram of a modified page of an associated relationship with annotations provided by an embodiment of the present invention; Figure 7 A schematic diagram of a modeling device based on relationships and relationship annotations provided by an embodiment of the present invention; Figure 8 A schematic diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0020] Next, the technical solutions of the present invention will be clearly and completely described in conjunction with the embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0021] In traditional modeling methods, when creating an associated relationship between graphic elements, the configuration is cumbersome, and the meaning and logic of the configured associated relationship are single, and the trigger condition has poor flexibility.

[0022] Based on this, in the modeling method based on relationships and relationship annotations of the present invention, optional associated relationships between the starting graphic element to be connected and the ending graphic element to be connected are built-in in the modeling system. In this way, there is no need to perform a cumbersome process of configuring the associated relationship before establishing the associated relationship. In addition, after the initial associated relationship is established, a configuration page for the initial associated relationship will be displayed to configure the type and trigger condition of the initial associated relationship, thereby obtaining an associated relationship with annotations. The meaning and logic of the associated relationship with annotations are richer, and the trigger condition can also be configured, that is, the trigger condition is more flexible.

[0023] To facilitate the understanding of this embodiment, first, a modeling method based on relationships and relationship annotations disclosed in the embodiments of the present invention will be introduced in detail.

[0024] Embodiment 1: According to an embodiment of the present invention, an embodiment of a modeling method based on relationships and relationship annotations is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0025] Figure 2 is a flowchart of a modeling method based on relationships and relationship annotations according to an embodiment of the present invention, as Figure 2As shown, the method includes the following steps: Step S202, in response to a connection operation for connecting a starting primitive to be connected to an ending primitive to be connected, establish an initial association relationship between the starting primitive to be connected and the ending primitive to be connected; In an alternative embodiment of the present invention, the starting primitive to be connected and the ending primitive to be connected are displayed through a graphical user interface of a modeling system, and optional association relationships between the starting primitive to be connected and the ending primitive to be connected are built in the modeling system.

[0026] Specifically, the above-mentioned starting primitive to be connected and ending primitive to be connected can be obtained by the user dragging and dropping primitives in the primitives built in the modeling system into the graphical user interface. The above-mentioned primitives can specifically include objects and processes. The above-mentioned connection operation can specifically be a drag operation, that is, by dragging the starting primitive to be connected to the ending primitive to be connected, an initial association relationship is established between the starting primitive to be connected and the ending primitive to be connected. As Figure 3 shown, the above-mentioned connection operation can also be a double-click operation. Specifically, first double-click on the starting primitive to be connected, and then double-click on the ending primitive to be connected, thereby establishing an initial association relationship between the starting primitive to be connected and the ending primitive to be connected. Of course, the above-mentioned connection operation can also be a single-click operation or a right-click operation. The embodiments of the present invention do not specifically limit the above-mentioned connection operation.

[0027] In addition, the above-mentioned primitives and association relationships are pre-programmed in the modeling system through a modeling language, and they have specific meanings and can be deduced and run later.

[0028] Step S204, in response to the end of the connection operation, display a configuration page of the initial association relationship in the graphical user interface. Among them, the configuration page includes: the types of each association relationship in the optional association relationships, and the trigger conditions corresponding to each association relationship; Specifically, if the connection operation is a drag operation, then the end of the connection operation is the end of the drag operation, that is, after dragging to the ending primitive to be connected and releasing the left mouse button, a configuration page of the initial association relationship will be displayed in the graphical user interface. As Figure 4 shown, the above-mentioned configuration page includes: the types of each association relationship in the optional association relationships, and the trigger conditions corresponding to each association relationship. As Figure 4 shown, the types include: conditional relationship, call relationship, unidirectional tagged relationship, bidirectional tagged relationship, and also include the symbols of each type of association relationship. The above-mentioned trigger conditions are the Figure 4 events in.

[0029] Step S206: In response to the configuration operation on the configuration page, create an annotated association relationship between the starting element to be connected and the ending element to be connected, thereby obtaining a model composed of the starting element to be connected, the ending element to be connected, and the annotated association relationship. The annotated association relationship is used to represent the type and trigger conditions of the association relationship configured in the configuration operation.

[0030] Specifically, according to the scenario requirements, the user can select different association relationships and check which event (i.e., trigger condition) triggers the association relationship, complete the configuration operation on the configuration page, and then create an annotated association relationship between the starting element to be connected and the ending element to be connected, obtaining a model composed of the starting element to be connected, the ending element to be connected, and the annotated association relationship. As Figure 5 shown, the annotated association relationship is used to express a specific logic (i.e., the call logic, which is displayed through the association relationship ontology, i.e., Figure 5 the arrow style in), and when this association relationship is triggered by what event (i.e., Figure 5 a and v in), indicating that it is triggered when the object is generated or the object changes).

[0031] In an embodiment of the present invention, a modeling method based on relationships and relationship annotations is provided. The starting element to be connected and the ending element to be connected are displayed through the graphical user interface of the modeling system. Optional association relationships between the starting element to be connected and the ending element to be connected are already built into the modeling system. The method includes: responding to a connection operation from the starting element to be connected to the ending element to be connected, establishing an initial association relationship between the starting element to be connected and the ending element to be connected; responding to the end of the connection operation, displaying a configuration page for the initial association relationship on the graphical user interface, where the configuration page includes: the types of each association relationship in the optional association relationships and the triggering conditions corresponding to each association relationship; responding to a configuration operation on the configuration page, creating an annotated association relationship between the starting element to be connected and the ending element to be connected, and thus obtaining a model composed of the starting element to be connected, the ending element to be connected, and the annotated association relationship, where the annotated association relationship is used to represent the type and triggering conditions of the association relationship configured in the configuration operation. Through the above description, it can be seen that in the modeling method based on relationships and relationship annotations of the present invention, optional association relationships between the starting element to be connected and the ending element to be connected are already built into the modeling system. In this way, there is no need to perform a cumbersome process of configuring association relationships before establishing the association relationship. In addition, after the initial association relationship is established, a configuration page for the initial association relationship will be displayed to configure the type and triggering conditions of the initial association relationship, and thus an annotated association relationship is obtained. The meaning and logic of the annotated association relationship are richer, and the triggering conditions can also be configured, that is, the triggering conditions are more flexible, alleviating the technical problems in traditional modeling methods, such as cumbersome configuration, single meaning and logic of the configured association relationship, and poor flexibility of the triggering conditions when creating association relationships between elements.

[0032] The above content briefly introduces the modeling method based on relationships and relationship annotations of the present invention. The following will describe the specific content involved in detail.

[0033] In an alternative embodiment of the present invention, the method further includes the following steps: (1) Responding to a selection operation on the annotated association relationship, displaying a modification page for the annotated association relationship; Specifically, after obtaining the annotated association relationship, the annotated association relationship can be clicked to be selected, and then a modification page for the annotated association relationship is displayed. As Figure 6 shown, the page on the right is the modification page.

[0034] (2) Responding to a modification operation on the modification page, creating a modified annotated association relationship between the starting element to be connected and the ending element to be connected.

[0035] Specifically, as Figure 6As shown in the figure, after setting the relationship probability to 0.5 and the logical judgment to (>10) on the modification page, a modified annotated association relationship is created between the starting primitive to be connected and the ending primitive to be connected. The modified annotated association relationship is marked with the relationship probability and the logical judgment, that is, by adding annotations to the association relationship, more abundant meanings and logics are expressed.

[0036] In an alternative embodiment of the present invention, the triggering conditions include: object generation, object change, and object disappearance.

[0037] In an alternative embodiment of the present invention, the modification page includes: relationship probability, optional type, and logical judgment.

[0038] In an alternative embodiment of the present invention, the method further includes the following steps: Respond to the deduction operation for the model and perform the deduction operation on the model.

[0039] In an alternative embodiment of the present invention, the method further includes the following steps: Respond to the deletion operation for the annotated association relationship and delete the annotated association relationship between the starting primitive to be connected and the ending primitive to be connected.

[0040] Specifically, the user can first select the above-mentioned annotated association relationship, and then click the delete key (such as the delete key), and the annotated association relationship can be deleted to re-select the association relationship.

[0041] The modeling method based on relationships and relationship annotations of the present invention can concisely express more semantics and logics in the modeling scenario by creating an initial association relationship and setting annotations (types, events, relationship probabilities, logical judgments, etc.) for the initial association relationship according to the scenario. The user can check different annotations when creating the association relationship to endow the association relationship with more meanings and triggering conditions; and after creating the annotated association relationship, the attributes of the annotated association relationship can also be modified to add more identifiers (i.e., annotations) to express more semantics and logics, that is, on the premise of ensuring convenience and simplicity, more semantics and expressible logics are provided for the association relationship.

[0042] In the method of the present invention, the user can express the logical relationship between different primitives more richly. By adding identifiers to the association relationship, the types of logics that the association relationship can express can be further improved.

[0043] Embodiment 2: An embodiment of the present invention further provides a modeling device based on relationships and relationship annotations. This modeling device based on relationships and relationship annotations is mainly used to execute the modeling method based on relationships and relationship annotations provided in Embodiment 1 of the present invention. The following is a specific introduction to the modeling device based on relationships and relationship annotations provided in the embodiments of the present invention.

[0044] Figure 7 is a schematic diagram of a modeling device based on relationships and relationship annotations according to an embodiment of the present invention, as Figure 7 shown. The device mainly includes: a establishing unit 10, a display unit 20, and a creating unit 30, where: The establishing unit is configured to respond to a connection operation for connecting a starting primitive to be connected to a terminating primitive to be connected, and establish an initial association relationship between the starting primitive to be connected and the terminating primitive to be connected. The display unit is configured to respond to the end of the connection operation and display a configuration page of the initial association relationship in a graphical user interface. The configuration page includes: the types of each association relationship in the optional association relationships, and the triggering conditions corresponding to each association relationship. The creating unit is configured to respond to a configuration operation for the configuration page, create an annotated association relationship between the starting primitive to be connected and the terminating primitive to be connected, and then obtain a model composed of the starting primitive to be connected, the terminating primitive to be connected, and the annotated association relationship. The annotated association relationship is used to represent the type and triggering conditions of the association relationship configured in the configuration operation.

[0045] In an embodiment of the present invention, a modeling device based on relationships and relationship annotations is provided. The starting element to be connected and the ending element to be connected are displayed through the graphical user interface of the modeling system. Optional association relationships between the starting element to be connected and the ending element to be connected are already built into the modeling system. The device includes: responding to a connection operation from the starting element to be connected to the ending element to be connected, establishing an initial association relationship between the starting element to be connected and the ending element to be connected; responding to the end of the connection operation, displaying a configuration page for the initial association relationship on the graphical user interface, where the configuration page includes: the types of each association relationship in the optional association relationships and the triggering conditions corresponding to each association relationship; responding to a configuration operation on the configuration page, creating an annotated association relationship between the starting element to be connected and the ending element to be connected, and then obtaining a model composed of the starting element to be connected, the ending element to be connected, and the annotated association relationship, where the annotated association relationship is used to represent the type and triggering conditions of the association relationship configured in the configuration operation. From the above description, it can be seen that in the modeling device based on relationships and relationship annotations of the present invention, optional association relationships between the starting element to be connected and the ending element to be connected are already built into the modeling system. In this way, there is no need to perform a cumbersome process of configuring association relationships before establishing the association relationship. In addition, after the initial association relationship is established, a configuration page for the initial association relationship will be displayed to configure the type and triggering conditions of the initial association relationship, and then an annotated association relationship is obtained. The meaning and logic of the annotated association relationship are richer, and the triggering conditions can also be configured, that is, the triggering conditions are more flexible, alleviating the technical problems in traditional modeling methods where the configuration is cumbersome, the meaning and logic of the configured association relationship are single, and the triggering conditions have poor flexibility.

[0046] Optionally, the device is further configured to: respond to a selection operation on the annotated association relationship, display a modification page for the annotated association relationship; respond to a modification operation on the modification page, and create a modified annotated association relationship between the starting element to be connected and the ending element to be connected.

[0047] Optionally, the triggering conditions include: object generation, object change, and object disappearance.

[0048] Optionally, the modification page includes: relationship probability, optional types, and logical judgment.

[0049] Optionally, the device is further configured to: respond to a deduction operation on the model, and perform a deduction operation on the model.

[0050] Optionally, the device is further configured to: respond to a deletion operation on the annotated association relationship, and delete the annotated association relationship between the starting element to be connected and the ending element to be connected.

[0051] The device provided by the embodiments of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding contents in the foregoing method embodiments.

[0052] As Figure 8 shown, an electronic device 600 provided by an embodiment of the present application includes: a processor 601, a memory 602, and a bus. The memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device runs, the processor 601 communicates with the memory 602 through the bus. The processor 601 executes the machine-readable instructions to perform the steps of the modeling method based on relationships and relationship annotations as described above.

[0053] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memory and processor, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, it can execute the above-mentioned modeling method based on relationships and relationship annotations.

[0054] The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 601 or the instructions in software form. The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it can also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by the hardware decoding processor, or executed by a combination of the hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, register, etc. This storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and combines its hardware to complete the steps of the above method.

[0055] Corresponding to the above-mentioned modeling method based on relationships and relationship annotations, an embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and run by a processor, the computer-executable instructions cause the processor to run the steps of the above-mentioned modeling method based on relationships and relationship annotations.

[0056] The modeling device based on relationships and relationship annotations provided by the embodiments of the present application can be specific hardware on a device or software or firmware installed on the device, etc. For the device provided by the embodiments of the present application, the implementation principle and the technical effects produced are the same as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the foregoing-described systems, devices, and units can all refer to the corresponding processes in the above method embodiments, and will not be repeated here.

[0057] In the embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of the devices or units can be in an electrical, mechanical, or other form.

[0058] For another example, the flowcharts and block diagrams in the drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0059] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0060] In addition, each functional unit in the embodiments provided in this application may be integrated into a processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

[0061] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the modeling method based on relationships and relationship annotations described in each embodiment of this application. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROM for short), random access memories (RAM for short), magnetic disks, or optical discs.

[0062] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0063] Finally, it should be noted that: the above-mentioned embodiments are only specific implementation manners of this application, used to illustrate the technical solution of this application, rather than limiting it. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed in this application can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. A modeling method based on relationships and relationship annotations, characterized in that: The method includes: displaying the start primitive to be connected and the end primitive to be connected by a graphical user interface of the modeling system, wherein the modeling system has a built-in optional association relationship between the start primitive to be connected and the end primitive to be connected. In response to a connection operation of the to-be-connected start primitive to the to-be-connected end primitive, an initial association relationship is established between the to-be-connected start primitive and the to-be-connected end primitive; In response to the end of the connection operation, displaying a configuration page of the initial association relationship on the graphical user interface, wherein the configuration page includes: the type of each association relationship in the optional association relationships and the triggering condition corresponding to each association relationship; In response to a configuration operation on the configuration page, an annotated association relationship is created between the starting graphic element to be connected and the ending graphic element to be connected, thereby obtaining a model consisting of the starting graphic element to be connected, the ending graphic element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and triggering conditions of the association relationship configured in the configuration operation.

2. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation on the annotated association relationship, displaying a modification page for the annotated association relationship; In response to a modification operation on the modification page, a modified annotated association relationship is created between the start graphic element to be connected and the end graphic element to be connected.

3. The method according to claim 1, characterized in that: The trigger conditions include: object generation, object change and object disappearance.

4. The method according to claim 2, characterized in that: The modification page includes: relationship probability, optional type and logical judgment.

5. The method according to claim 1, characterized in that The method further comprises: In response to a simulation operation for the model, the model is simulated and run.

6. The method according to claim 1, characterized in that The method further comprises: In response to a deletion operation on the annotated association relationship, the annotated association relationship between the to-be-connected start primitive and the to-be-connected end primitive is deleted.

7. A modeling device based on relationships and relationship annotations, characterized in that: The graphical user interface of the modeling system is used to display the starting primitive to be connected and the ending primitive to be connected, wherein the modeling system has a built-in optional association relationship between the starting primitive to be connected and the ending primitive to be connected, and the device includes: An establishing unit, configured to establish an initial association relationship between the start primitive to be connected and the end primitive to be connected in response to a connection operation from the start primitive to be connected to the end primitive to be connected; A display unit, configured to display a configuration page of the initial association relationship on the graphical user interface in response to the end of the connection operation, wherein the configuration page includes: a type of each association relationship in the optional association relationships and a trigger condition corresponding to each association relationship; A creation unit is used to respond to a configuration operation on the configuration page, create an annotated association relationship between the start element to be connected and the end element to be connected, and then obtain a model composed of the start element to be connected, the end element to be connected and the annotated association relationship, wherein the annotated association relationship is used to characterize the type and trigger condition of the association relationship configured in the configuration operation.

8. The device according to claim 7, characterized in that The device is also used for: In response to a selection operation on the annotated association relationship, displaying a modification page for the annotated association relationship; In response to a modification operation on the modification page, a modified annotated association relationship is created between the start graphic element to be connected and the end graphic element to be connected.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Business process management method and device, electronic equipment and storage medium

    CN111695827A

  • Custom method and device of primitives, storage medium and computer equipment

    CN115730096A

  • Data updating method and system for associated primitives in graphical interface

    CN119203282A

  • Page rendering method, execution engine and page construction method

    CN119938033A

  • Logic layering-based primitive rendering method and apparatus, device and storage medium

    WO2024045293A1