Anchor visual modeling method and device, electronic equipment and storage medium

By determining and displaying anchor element in the visual interactive interface, the problem of unclear anchor relationship types in the existing modeling methods is solved, and the automatic configuration and intuitive recognition of anchor element is realized, which improves modeling efficiency and accuracy.

CN120255870AActive Publication Date: 2025-07-04BEIJING TONGYU ZHICHENG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510406786.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-07-04
Estimated Expiration
2045-04-02

AI Technical Summary

Technical Problem

The existing modeling methods do not clearly define the type of relationship between anchor points and primitives, which leads to the need to manually configure anchor points in simulation deduction, and can only conduct conceptual modeling, lacking intuition and consistency.

Method used

Using object-oriented modeling technology, by reading and defining model and relationship types in the visual interactive interface, using a mapping table to determine the corresponding anchor primitives, and displaying process primitives carrying anchor information in the canvas area, including single input, single output, and input and output anchor primitives, clarifying the anchor primitives and connection rules for each relationship type.

Benefits of technology

It realizes intuitive identification and automatic configuration of anchor element, reduces human errors, improves modeling efficiency and accuracy, and saves time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120255870A_ABST
    Figure CN120255870A_ABST
Patent Text Reader

Abstract

The invention provides a visual modeling method and device for an anchor point, electronic equipment and a storage medium, and the method comprises the steps: responding to a first display operation of a user on a target process primitive of a target process in a primitive region in a visual interaction interface; reading each definition model corresponding to the target process, each associated object and a target relation type of a relation between the target process from a database, and determining a target anchor point primitive corresponding to the target relation type and corresponding anchor point information; the target anchor point primitives are arranged on the target process primitives, and target process primitive components are displayed in a canvas area of the visual interaction interface. According to the method, time is saved, and the possibility of human errors is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of visualization modeling technology. Specifically, it relates to a visualization modeling method, device, electronic device, and storage medium for anchor points. Background Art

[0002] In existing modeling methods, UML or SysML each has its own unique anchor point implementation solution. The application design of anchor points mainly focuses on the positioning, association, and interaction accuracy, clarity, and consistency of the model. In UML, the anchor point is the connection point and key point of the relationship between graphic elements, reflecting the relationship between graphic elements. The position of the anchor point clearly shows the interaction point between graphic elements. By using standardized anchor point symbols and markings to represent the relationships between different graphic elements, the consistency and readability of the model are ensured, facilitating communication and collaboration among subsequent developers. In SysML, the anchor point is more used for system-level modeling. Through the anchor point, the functional requirements and interaction relationships between system components are reflected, achieving loose coupling and high cohesion between system components, and effectively guiding the flexibility and reusability of the system. The anchor point of this modeling method is conceptual. If simulation deduction is required, code needs to be edited in the anchor point to clarify the anchor point relationship and logic.

[0003] However, the inventor found that in existing modeling methods, the relationship type represented by the anchor point between graphic elements is not clear, nor is the execution logic of the anchor point. In simulation deduction, business personnel need to coordinate with developers to manually configure the code of the anchor point, and only conceptual modeling can be performed. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a visualization modeling method, device, electronic device, and storage medium for anchor points, so as to clarify that each relationship type has a corresponding specific anchor point graphic element, which can intuitively identify the interaction method between components, and at the same time reduce the need for manual anchor point configuration, not only saving time but also reducing the possibility of human errors.

[0005] In a first aspect, a method for visual modeling of an anchor point is provided, which is applied to a language for object - oriented object - relationship process modeling and in a modeling tool created using object - oriented modeling techniques. The modeling tool includes a database that stores a definition model for describing the interaction relationship between a process and associated objects related thereto, established based on the object - relationship process modeling technique. The method may include: in response to a first display operation of a target process primitive in a primitive area on a visual interaction interface by a user, reading from the database each definition model corresponding to the target process, as well as each associated object related to the target process and the target relationship type of the relationship between the target process in the corresponding definition model; based on a stored mapping table between different relationship types and different anchor - point primitives, determining the target anchor - point primitive corresponding to the target relationship type and the corresponding anchor - point information; the target anchor - point primitive includes a single - input - type anchor - point primitive, a single - output - type anchor - point primitive, and an input - output - type anchor - point primitive; the corresponding anchor - point information includes the relationship type represented by the corresponding target anchor - point primitive and the parameter name of the associated object connected by the corresponding target anchor - point primitive; on the target process primitive, arranging the target anchor - point primitive and displaying a target process primitive component in a canvas area of the visual interaction interface, where the target process primitive component is the target process primitive carrying the target anchor - point primitive.

[0006] In a possible implementation, the corresponding anchor - point information further includes the usage rules of the target anchor - point primitive; the usage rule of the single - input - type anchor - point primitive is to connect to one associated object or one output - type anchor - point primitive; the usage rule of the single - output - type anchor - point primitive is to make one or more outward calls, connect to only one associated object, or connect to multiple input - type anchor - point primitives; the usage rule of the input - output - type anchor - point primitive is to connect to one associated object, not allow connection to other anchor - point primitives, and not allow outward calls.

[0007] In a possible implementation, the process primitive is an oval primitive; the anchor - point primitive is a primitive composed of a circular area with a target length as the radius and a relationship icon within the circular area; one relationship icon represents one relationship semantics.

[0008] In a possible implementation, arranging the target anchor - point primitive on the target process primitive includes: obtaining the number of target anchor - point primitives corresponding to the target relationship type; arranging the number of target anchor - point primitives on the target process primitive according to a configured anchor - point layout rule, where the circular contour line of the target anchor - point primitive intersects the elliptical contour line of the target process primitive at a point.

[0009] In a possible implementation, the method further includes: in response to a user's movement operation on any target anchor point primitive in the target process primitive component in the canvas area, updating the position of the target anchor point primitive on the elliptical contour line.

[0010] In a possible implementation, the method further includes: based on the stored anchor point configuration rules, displaying the target anchor point primitive in the canvas area in a non-hidden display mode, and displaying the anchor point information of the target anchor point primitive in the canvas area in a hidden display mode; in response to a user's second display operation on the target anchor point primitive in the canvas area in the visual interaction interface, displaying corresponding anchor point information around the target anchor point primitive.

[0011] In a possible implementation, the method further includes: based on the stored process configuration rules, setting a display control of the definition model of the target process on the selection box of the target process primitive; in response to a user's third display operation on the display control in the canvas area, switching the current canvas area to a new canvas area, and displaying the definition view corresponding to the definition model of the target process and the target process primitive component in the new canvas area to check whether the target anchor point primitive carried by the target process primitive component is consistent with the relationship type in the definition view of the target process; in response to a user's exit display operation on the definition view of the target process in the canvas area, switching the new canvas area back to the current canvas area.

[0012] In a second aspect, there is provided a visualization modeling device for anchor points. In a modeling tool created by using object-oriented modeling techniques based on an object relationship process modeling language, the modeling tool includes a database that stores definition models for describing the interaction relationships between processes and associated objects related thereto established based on the object relationship process modeling technology. The device may include:

[0013] A reading unit, configured to, in response to a user's first display operation on a target process primitive in the primitive area in the visual interaction interface, read each definition model corresponding to the target process from the database, and the target relationship type of the relationship between each associated object related to the target process and the target process in the corresponding definition model;

[0014] A determining unit, configured to determine a target anchor point primitive corresponding to the target relationship type and corresponding anchor point information based on a mapping table of different relationship types and different anchor point primitives stored; the target anchor point primitive includes a single-input type anchor point primitive, a single-output type anchor point primitive, and an input-output type anchor point primitive; the corresponding anchor point information includes the relationship type represented by the corresponding target anchor point primitive and the parameter name of the associated object connected by the corresponding target anchor point primitive;

[0015] A layout unit for laying out the target anchor primitive on the target process primitive;

[0016] A display unit for displaying a target process primitive component in the canvas area of the visual interaction interface, where the target process primitive component is a target process primitive carrying a target anchor primitive.

[0017] In a third aspect, an electronic device is provided. The electronic device includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0018] The memory is used to store a computer program;

[0019] The processor, when executing the program stored on the memory, implements the method steps described in any one of the first aspects above.

[0020] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method steps described in any one of the first aspects above.

[0021] The method for visual modeling of anchors provided in the embodiments of the present application is applied to a modeling tool created using object-oriented modeling techniques based on an object relationship process modeling language for object-oriented. The modeling tool includes a database that stores a definition model established based on object relationship process modeling technology for describing the interaction relationship between a process and its related associated objects. The method includes: in response to a first display operation of a target process primitive in the primitive area of the visual interaction interface by the user, reading each definition model corresponding to the target process from the database, and the target relationship type between each associated object related to the target process and the target process in the corresponding definition model; based on a mapping table stored for different relationship types and different anchor primitives, determining the target anchor primitive corresponding to the target relationship type and the corresponding anchor information; the target anchor primitive includes a single-input type anchor primitive, a single-output type anchor primitive, and an input-output type anchor primitive; the corresponding anchor information includes the relationship type represented by the corresponding target anchor primitive and the parameter name of the associated object connected by the corresponding target anchor primitive; laying out the target anchor primitive on the target process primitive, and displaying a target process primitive component in the canvas area of the visual interaction interface, where the target process primitive component is a target process primitive carrying a target anchor primitive. This method clearly defines that each relationship type has a corresponding specific anchor primitive, can intuitively identify the interaction method between components, and at the same time reduces the need for manual configuration of anchors, which not only saves time but also reduces the possibility of human errors. Description of the Drawings

[0022] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.

[0023] Figure 1 A schematic flowchart of a method for visual modeling of an anchor point provided by an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a visual interaction interface provided by an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a component for displaying a temporary process 1 provided by an embodiment of the present application;

[0026] Figure 4 Another schematic diagram of a component for displaying a temporary process 1 provided by an embodiment of the present application;

[0027] Figure 5 Another schematic diagram of a component of a temporary process 1 provided by an embodiment of the present application;

[0028] Figure 6 Another schematic diagram of a component for displaying a temporary process 1 provided by an embodiment of the present application;

[0029] Figure 7 A schematic structural diagram of a device for visual modeling of an anchor point provided by an embodiment of the present application;

[0030] Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0031] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application. Unless otherwise defined, the technical terms or scientific terms used in the present application should have the ordinary meaning understood by those with ordinary skills in the technical field to which the present invention belongs. The "first", "second" and similar terms used in the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. The terms such as "including" or "comprising" mean that the elements or objects appearing before the term cover the elements or objects listed after the term and their equivalents, without excluding other elements or objects. The terms such as "upper", "lower", "left" and "right" are only used to represent relative positional relationships. When the absolute position of the object to be described changes, the relative positional relationship may also change accordingly.

[0032] For the convenience of understanding, the nouns involved in the embodiments of the present application are explained below:

[0033] A language for object-oriented object, relationship, and process modeling in systems engineering, which breaks down the barriers between knowledge models, computer languages, and natural languages, connects systems engineering, software engineering, and knowledge engineering, enables seamless connection among computers, AI, and humans based on the same language, lays a foundation for the accumulation, utilization, and dissemination of knowledge, and promotes a qualitative leap in the breadth, depth, and efficiency of knowledge utilization.

[0034] Object: An entity or instance in a system.

[0035] Relationship: A bond connecting two or more objects or processes, describing the dependence and interaction between things.

[0036] Process: A unit with specific inputs, outputs, and operation logics, representing a certain function or behavior.

[0037] Anchor point: When a process is used, the connection point on the process profile line that connects to an object, helping to manage and display relationships.

[0038] Relationship anchor point: When a process is used, for each type of relationship established in the corresponding definition view, the corresponding anchor points should be displayed on the profile line of the used process. The icon of the anchor point can intuitively indicate the type of the associated relationship, and use a solid line to associate the anchor point with the relevant object. The anchor point can effectively reflect the interaction relationship between the process and the object, and at the same time simplifies the complexity of the diagram - the arrows or icons of the relationship are no longer displayed on the line, and only connected by a solid line to keep the model clear and tidy.

[0039] Definition view: A view used to describe and display the structure of things.

[0040] Definition view of a process: The definition view of a process is a view used to describe and display the process definition structure, which is equivalent to the expansion of the process. Only associated objects related to the process will appear in the definition view of the process. At the same time, the view type and path are indicated in the title.

[0041] The visual modeling method of the anchor point provided by the embodiments of the present application can be applied to an object-oriented object relationship process modeling language and a modeling tool created by using object-oriented modeling techniques. The modeling tool may include a database that stores a definition model established based on object relationship process modeling technology and used to describe the interaction relationship between a process and its associated objects. The visual modeling method of the anchor point provided by the embodiments of the present application enables the clear display of the relationship between graphic elements during the modeling process, and realizes the accurate connection of the relationship between an object and a process by connecting the anchor points. Among them, the displayed definition model is called a definition view.

[0042] In the visual modeling method provided by the present application, different graphic elements are respectively configured for processes, objects, and relationships. Among them, the process graphic element representing a process is an oval graphic element; the object graphic element representing an object is a rectangular graphic element; the relationship graphic element representing different relationship types is also called an anchor point graphic element, which is a graphic element composed of a circular area with a target length as the radius and a relationship icon within the circular area. One relationship icon represents one relationship semantics. The relationship types may include consumption relationship, production relationship, input influence relationship, output influence relationship, two-way influence relationship, state transition relationship, state transition relationship pair, conditional relationship, dominant relationship, and call relationship, etc.

[0043] In an example, the relationship types may include consumption relationship, production relationship, input influence relationship, output influence relationship, two-way influence relationship, state transition relationship, state transition relationship pair, conditional relationship, and dominant relationship. The anchor point graphic elements of the corresponding relationship types can be shown in Table 1.

[0044] Table 1

[0045]

[0046] As can be seen from Table 1, the relationship icon of the consumption relationship is a hollow arrow, and its anchor primitive is composed of a circular area and a hollow arrow within the circular area; the relationship icon of the production relationship is a solid arrow, and its anchor primitive is composed of a circular area and a solid arrow within the circular area; the relationship icon of the input influence relationship is a semi-hollow arrow on one side, and its anchor primitive is composed of a circular area and a semi-hollow arrow on one side within the circular area; the relationship icon of the output influence relationship is a semi-solid arrow on one side, and its anchor primitive is composed of a circular area and a semi-solid arrow on one side within the circular area; the relationship icon of the two-way influence relationship is a semi-hollow arrow on one side and a semi-hollow arrow on the other side, and its anchor primitive is composed of a circular area and a semi-hollow arrow on one side and a semi-hollow arrow on the other side within the circular area; the relationship icon of the state transition relationship is a fan-shaped hollow arrow, and its anchor primitive is composed of a circular area and a fan-shaped hollow arrow within the circular area.

[0047] The preferred embodiments of the present application will be described below in conjunction with the accompanying drawings of the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. And without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0048] Figure 1 It is a schematic flow chart of a visualization modeling method for an anchor provided by an embodiment of the present application. As Figure 1 shown, the method may include:

[0049] Step S110, in response to a first display operation on the target process primitive of the target process in the primitive area of the visualization interaction interface by the user, read each definition model corresponding to the target process from the database, and each associated object related to the target process and the target relationship type of the relationship between the target process in the corresponding definition model.

[0050] As Figure 2 shown, the visualization interaction interface may include a primitive area, a canvas area, and a configuration area. The primitive area may be set within the canvas area or may be separately set on one side of the canvas area. The present application does not make a limitation here. Different objects and different processes in the form of primitives are set in the primitive area. After the user performs the above operation on a primitive in the primitive area, the canvas area will display this primitive. For example, the user drags the process primitive a in the canvas area to the canvas area for display. In the configuration area, parameter configuration can be performed on the process primitive a displayed in the canvas area.

[0051] Among them, the first display operation may be a display operation performed on the target process to call the target process, or a display operation performed on the target process to view the definition view of the target process. Specifically, the first display operation by the user on the target process primitive in the primitive area may include, but is not limited to, operations such as clicking, dragging, and selecting.

[0052] Step S120: Based on the mapping table of different relationship types and different anchor graphic elements stored, determine the target anchor graphic element corresponding to the target relationship type and the corresponding anchor information.

[0053] Among them, the corresponding anchor information may include the relationship type represented by the corresponding target anchor graphic element, the parameter name of the associated object connected by the corresponding target anchor graphic element, and the usage rule of the target anchor graphic element.

[0054] Since in the mapping table of different relationship types and different anchor graphic elements stored, one relationship type corresponds to one relationship icon, that is, one type of anchor graphic element, the target anchor graphic element corresponding to the target relationship type and the corresponding anchor information can be determined.

[0055] Furthermore, the target anchor graphic element may include a single-input type anchor graphic element (such as input influence relationship), a single-output type anchor graphic element (such as output influence relationship), and an input-output type anchor graphic element (such as two-way influence relationship). Among them, the usage rule of the single-input type anchor graphic element is to connect with one associated object or one output type anchor graphic element; the usage rule of the single-output type anchor graphic element is to make one or more outward calls, connect only with one associated object, or connect with multiple input type anchor graphic elements; the usage rule of the input-output type anchor graphic element is to connect with one associated object, not allow connecting other anchor graphic elements, and not allow outward calls.

[0056] Step S130: On the target process graphic element, layout the target anchor graphic element and display the target process graphic element component in the canvas area of the visual interaction interface.

[0057] Among them, the target process graphic element component is the target process graphic element carrying the target anchor graphic element.

[0058] In specific implementation, after obtaining the target relationship type of the relationship between each associated object and the target process in each definition model, the number of target anchor graphic elements corresponding to the target relationship type in all definition models can be obtained; then, according to the configured anchor layout rule, layout these numbers of target anchor graphic elements on the target process graphic element, where the circular contour line of the target anchor graphic element intersects with the elliptical contour line of the target process graphic element. For example, Figure 3As shown, the canvas area includes a temporary process 1, an associated object a of string type, and a class process 1. On the temporary process 1, the target anchor primitive is laid out, and the temporary process 1 component is displayed in the canvas area. At this time, the displayed temporary process 1 component carries the temporary process 1 of 5 target anchor primitives. Among them, the relationship types represented by the 5 target anchor primitives from left to right are dominant relationship, consumption relationship, conditional relationship, input influence relationship, and two-way influence relationship. Among them, in the figure, the associated object a is represented by a rectangle, and different attributes of the object are represented by adding different annotations at different positions inside the rectangle. The triangle in the upper left corner represents the class of the associated object a, P represents the associated object, and the string indicates that the associated object a is a class of string.

[0059] Furthermore, the anchor layout rule may include a configured layout method, and this layout method may be equal arc length distribution, or angular interval distribution, or other distribution methods. For angular interval distribution, according to the configured interval angle, these numbers of target anchor primitives are laid out on the target process primitive. The acquisition method of the interval angle can be expressed as: φi = 2πi / n (i = 0, 1,..., n - 1), φi ∈ [0, 2π); for equal arc length distribution: calculate the perimeter of the elliptical contour line of the target process primitive, and then divide this perimeter equally according to the number of target anchor primitives to be laid out to obtain the same number of elliptical contour line segments; layout one target anchor primitive in each elliptical contour line segment.

[0060] It should be noted that this application can customize the distribution method according to specific requirements, such as the number of anchors and / or density, etc. For example, if the number of target anchor primitives is even, symmetric layout is performed on the elliptical contour line.

[0061] Furthermore, the anchor layout rule may also include a rule that the circular areas of any two anchor primitives to be laid out do not completely overlap, and the circular areas of all anchor primitives are of the same size.

[0062] In some embodiments, based on actual needs, the user can update the position of the anchor primitive in the target process primitive component. Specifically, in response to the user's moving operation on any target anchor primitive in the target process primitive component in the canvas area, the position of the target anchor primitive on the elliptical contour line is updated.

[0063] In some embodiments, based on the stored anchor configuration rule, the target anchor primitive is displayed in the canvas area in a non-hidden display manner, and the anchor information of the target anchor primitive is displayed in the canvas area in a hidden display manner; in response to the user's second display operation on the target anchor primitive in the canvas area in the visual interaction interface, such as moving the mouse to, the corresponding anchor information is displayed around the target anchor primitive. Continuing with the above example, for Figure 3Display the temporary process 1 component. If the user moves the cursor to the temporary process 1 component, corresponding anchor information will be displayed around each target anchor primitive, such as the relationship type and the parameter names of the associated objects, as Figure 4 shown. It can be understood that the displayed anchor information can be only the parameter names of the associated objects.

[0064] In some embodiments, based on the stored process configuration rules, a display control for the definition model of the target process is set on the selection box of the target process primitive; the selection box is the smallest rectangular box that is displayed outside the corresponding target process primitive after the corresponding target process primitive is selected. As Figure 5 shown, after the temporary process 1 is selected by the cursor, a dotted selection box can be displayed, and a display control for the definition model related to the temporary process 1 is set on the selection box.

[0065] In response to the user's third display operation on the display control in the canvas area, such as clicking, double-clicking, etc., the current canvas area is switched to a new canvas area, and the definition view corresponding to the definition model of the target process and the target process primitive component are displayed in the new canvas area to check whether the target anchor primitive carried by the target process primitive component is consistent with the relationship type in the definition view of the target process, that is, other primitives in the current canvas area except the target process primitive component will be hidden; continuing with the above example, in Figure 5 after showing the dotted selection box and the display control for the definition model related to the temporary process 1 on the selection box, after the user triggers the display control, the canvas area will display the definition view related to the temporary process 1 and the temporary process 1 component, as Figure 6 shown. At this time, since the cursor is not on the temporary process 1 component, the displayed temporary process 1 component is as Figure 3 shown.

[0066] In response to the user's exit display operation on the definition view of the target process in the canvas area, such as the operation of clicking on the blank area of the new canvas area, the new canvas area is switched back to the current canvas area, that is, the content of the canvas area to be displayed will be Figure 3 displayed.

[0067] It can be understood that a close display control related to the temporary process 1 can be set on the selection box, that is, the exit display operation at this time is the operation of triggering the close display control.

[0068] Alternatively, in response to a fourth display operation performed by the user on the target process primitive in the target process primitive component in the canvas area, such as an operation on the blank area of the target process primitive, the current canvas area is switched to a new canvas area, and the definition view of the target process and the target process primitive component are displayed in the new canvas area to check whether the target anchor primitive carried by the target process primitive component is consistent with the relationship type in the definition view corresponding to the definition model of the target process, that is, other primitives in the current canvas area except the target process primitive component will be hidden; in response to the user's exit display operation on the definition view of the target process in the canvas area, such as an operation of clicking on the blank area of the new canvas area, the new canvas area is switched back to the current canvas area.

[0069] The method provided in this application facilitates passing actual parameters to the corresponding process when calling any process, and then executing the process. And the user can quickly understand the parameter types of the objects required by the corresponding process according to the anchor primitive, truly making the implicit rules of the modeling process call explicit.

[0070] Corresponding to the above method, an embodiment of this application also provides a visual modeling device for anchors, as Figure 7 shown. The device includes:

[0071] A reading unit 710, configured to read, in response to a first display operation performed by the user on the target process primitive of the target process in the primitive area of the visual interaction interface, each definition model corresponding to the target process, as well as each associated object related to the target process and the target relationship type of the relationship between the target process in the corresponding definition model, from the database;

[0072] A determining unit 720, configured to determine, based on a mapping table of different relationship types and different anchor primitives stored, the target anchor primitive corresponding to the target relationship type and the corresponding anchor information; the target anchor primitive includes a single-input anchor primitive, a single-output anchor primitive, and an input-output anchor primitive; the corresponding anchor information includes the relationship type represented by the corresponding target anchor primitive and the parameter name of the associated object connected by the corresponding target anchor primitive;

[0073] A layout unit 730, configured to layout the target anchor primitive on the target process primitive;

[0074] A display unit 740, configured to display a target process primitive component in the canvas area of the visual interaction interface, where the target process primitive component is a target process primitive carrying a target anchor primitive.

[0075] The functions of the functional units of the visual modeling device for anchors provided in the above embodiments of this application can be implemented by the above method steps. Therefore, the specific working processes and beneficial effects of each unit in the visual modeling device for anchors provided in the embodiments of this application will not be elaborated here.

[0076] An embodiment of the present application also provides an electronic device, such as Figure 8 shown, including a processor 810, a communication interface 820, a memory 830, and a communication bus 840. Among them, the processor 810, the communication interface 820, and the memory 830 complete communication with each other through the communication bus 840.

[0077] The memory 830 is used to store computer programs;

[0078] When the processor 810 is used to execute the program stored on the memory 830, the following steps are implemented:

[0079] In response to a first display operation of a target process diagram element of a target process in a diagram element area on a visual interaction interface by a user, read each definition model corresponding to the target process, as well as each associated object related to the target process and the target relationship type of the relationship between the target process in the corresponding definition model from a database;

[0080] Based on a mapping table of different relationship types and different anchor diagram elements stored, determine a target anchor diagram element corresponding to the target relationship type and corresponding anchor information; the target anchor diagram element includes a single-input type anchor diagram element, a single-output type anchor diagram element, and an input-output type anchor diagram element; the corresponding anchor information includes the relationship type represented by the corresponding target anchor diagram element and the parameter name of the associated object connected by the corresponding target anchor diagram element;

[0081] On the target process diagram element, layout the target anchor diagram element, and display a target process diagram element component in a canvas area of the visual interaction interface, where the target process diagram element component is a target process diagram element carrying the target anchor diagram element.

[0082] The communication bus mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0083] The communication interface is used for communication between the above-mentioned electronic device and other devices.

[0084] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.

[0085] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0086] Since the implementation manners and beneficial effects of the various devices of the electronic device in the above embodiments can be seen from Figure 1 the steps in the embodiments shown, therefore, the specific working process and beneficial effects of the electronic device provided in the embodiments of the present application will not be repeated here.

[0087] In another embodiment provided by the present application, a computer-readable storage medium is further provided. Instructions are stored in the computer-readable storage medium. When it runs on a computer, it causes the computer to execute the visual modeling method of the anchor point described in any one of the above embodiments.

[0088] In another embodiment provided by the present application, a computer program product containing instructions is further provided. When it runs on a computer, it causes the computer to execute the visual modeling method of the anchor point described in any one of the above embodiments.

[0089] Those skilled in the art should understand that the embodiments in the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the embodiments in the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments in the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.

[0090] Embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate a means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0091] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction means that implements the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0093] Although the preferred embodiments in the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they know the basic creative concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0094] Obviously, those skilled in the art can make various changes and variations to the embodiments in the embodiments of the present application without departing from the spirit and scope of the embodiments in the embodiments of the present application. Thus, if these modifications and variations of the embodiments in the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalent technologies, the embodiments of the present application are also intended to include these changes and variations.

Claims

1. A visualization modeling method for an anchor point, characterized in that Applied to a language for object - oriented object - relationship process modeling, in a modeling tool created by using object - oriented modeling techniques, the modeling tool includes a database, and the database stores a definition model established based on the object - relationship process modeling technology for describing the interaction relationship between a process and related associated objects. The method includes: In response to a first display operation of a target process graphic primitive in the graphic primitive area of the visualization interaction interface by the user, read each definition model corresponding to the target process from the database, and the target relationship types between each associated object related to the target process and the target process in the corresponding definition model; Based on a mapping table stored for different relationship types and different anchor graphic primitives, determine the target anchor graphic primitive corresponding to the target relationship type and the corresponding anchor information; the target anchor graphic primitive includes a single - input - type anchor graphic primitive, a single - output - type anchor graphic primitive, and an input - output - type anchor graphic primitive; the corresponding anchor information includes the relationship type represented by the corresponding target anchor graphic primitive and the parameter name of the associated object connected by the corresponding target anchor graphic primitive; On the target process graphic primitive, layout the target anchor graphic primitive, and display a target process graphic primitive component in the canvas area of the visualization interaction interface, where the target process graphic primitive component is the target process graphic primitive carrying the target anchor graphic primitive.

2. The method according to claim 1, wherein The corresponding anchor information further includes the usage rules of the target anchor graphic primitive; The usage rule of the single - input - type anchor graphic primitive is to connect with one associated object or one output - type anchor graphic primitive; The usage rule of the single - output - type anchor graphic primitive is to make one or more outward calls, connect only with one associated object, or connect with multiple input - type anchor graphic primitives; The usage rule of the input - output - type anchor graphic primitive is to connect with one associated object, not allow connection with other anchor graphic primitives, and not allow outward calls.

3. The method according to claim 1, wherein The process graphic primitive is an oval - shaped graphic primitive; The anchor graphic primitive is a graphic primitive composed of a circular area with a target length as the radius and a relationship icon within the circular area; one relationship icon represents one relationship semantics.

4. The method according to claim 3, characterized in that, On the target process graphic primitive, laying out the target anchor graphic primitive includes: Obtain the number of target anchor graphic primitives corresponding to the target relationship type; According to the configured anchor layout rule, layout the number of target anchor graphic primitives on the target process graphic primitive, where the circular contour line of the target anchor graphic primitive intersects the elliptical contour line of the target process graphic primitive at one point.

5. The method according to claim 3, wherein The method further includes: In response to a movement operation of any target anchor graphic primitive in the target process graphic primitive component in the canvas area by the user, update the position of the target anchor graphic primitive on the elliptical contour line.

6. The method according to claim 1, wherein The method further includes: Based on the stored anchor configuration rule, display the target anchor graphic primitive in a non - hidden display mode in the canvas area, and display the anchor information of the target anchor graphic primitive in a hidden display mode in the canvas area; In response to a second display operation of the target anchor graphic primitive in the canvas area by the user in the visualization interaction interface, display the corresponding anchor information around the target anchor graphic primitive.

7. The method according to claim 1, wherein The method further includes: Based on the stored process configuration rules, set a display control for the definition model of the target process on the selection box of the target process primitive; In response to a third display operation by the user on the display control in the canvas area, switch the current canvas area to a new canvas area, and display the definition view corresponding to the definition model of the target process and the target process primitive component in the new canvas area to check whether the target anchor primitive carried by the target process primitive component is consistent with the relationship type in the definition view of the target process; In response to the user's exit display operation on the definition view of the target process in the canvas area, switch the new canvas area back to the current canvas area.

8. A visualization modeling device for an anchor point, characterized in that, Applied to a modeling tool created using object-oriented modeling techniques for object relationship process modeling in an object-oriented language, the modeling tool includes a database that stores a definition model for describing the interaction relationship between a process and its related associated objects established based on the object relationship process modeling technology. The device includes: A reading unit, configured to, in response to a first display operation by the user on a target process primitive of a target process in a primitive area of a visual interaction interface, read each definition model corresponding to the target process from the database, as well as the target relationship type between each associated object related to the target process and the target process in the corresponding definition model; A determination unit, configured to determine the target anchor primitive corresponding to the target relationship type and the corresponding anchor information based on a stored mapping table between different relationship types and different anchor primitives; the target anchor primitive includes a single-input anchor primitive, a single-output anchor primitive, and an input-output anchor primitive; the corresponding anchor information includes the relationship type represented by the corresponding target anchor primitive and the parameter name of the associated object connected by the corresponding target anchor primitive; A layout unit, configured to layout the target anchor primitive on the target process primitive; A display unit, configured to display a target process primitive component in the canvas area of the visual interaction interface, where the target process primitive component is a target process primitive carrying a target anchor primitive.

9. An electronic device, characterized in that, The electronic device includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus; The memory is used to store a computer program; The processor, when executing the program stored on the memory, implements the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Method and device for establishing service link between network elements

    CN107153495A

  • Commodity object information interaction method and device and electronic equipment

    CN113298602A

  • Process design method and device, equipment, storage medium and program product

    CN116107625A

  • Process visualization modeling method, computer equipment and computer readable storage medium

    CN116594733A

  • Visualization of stereotype element instances within a unified modeling language model

    US7712075B1