Visual modeling method and device of anchor point, electronic equipment and storage medium
By using object-oriented modeling techniques and mapping tables to determine and lay out anchor point primitives, the problem of unclear anchor point relationship types in existing modeling methods is solved. This enables intuitive identification of anchor point primitives and clear interaction between components, thereby improving modeling efficiency and accuracy.
Patent Information
- Application Number
- CN202510406786.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-02
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2045-04-02
AI Technical Summary
Existing modeling methods do not clearly define the type of relationship between primitives represented by anchor points, which leads to the need for manual configuration of anchor points in simulation and can only perform conceptual modeling, lacking intuitiveness and consistency.
Using object-oriented modeling techniques, anchor point primitives corresponding to the target relationship type are determined through a mapping table and laid out on a visual interactive interface, clearly defining the specific anchor point primitives corresponding to each relationship type, thus reducing the need for manual configuration.
It enables intuitive identification of anchor point primitives and clarifies the interaction methods between components, reducing the possibility of human error and improving modeling efficiency and accuracy.
Smart Images

Figure CN120255870B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of visualization modeling technology, and more specifically, to a visualization modeling method, apparatus, electronic device, and storage medium for anchor points. Background Technology
[0002] In existing modeling methods, both UML and SysML have unique anchor point implementation schemes. Anchor point application design primarily focuses on the accuracy, clarity, and consistency of model positioning, association, and interaction. In UML, anchor points are connection points and key points between primitives, reflecting the relationships between them. The location of the anchor point clearly shows the interaction points between primitives. Standardized anchor point symbols and labels are used to represent the relationships between different primitives to ensure model consistency and readability, facilitating communication and collaboration among developers. In SysML, anchor points are more often used for system-level modeling. They reflect the functional requirements and interaction relationships between system components, achieving loose coupling and high cohesion between components. This effectively guides system flexibility and reusability. In SysML, anchor points are conceptual; if simulation is required, code needs to be edited within the anchor points to clarify the anchor relationships and logic.
[0003] However, the inventors discovered that existing modeling methods do not clearly define the type of relationship between primitives represented by anchor points, nor do they define the execution logic of anchor points. In simulation, business personnel need to coordinate with developers to manually configure the code for anchor points, and can only perform conceptual modeling. Summary of the Invention
[0004] The purpose of this application is to provide a visualization modeling method, device, electronic device, and storage medium for anchor points, which clarifies that each relationship type has a corresponding specific anchor point primitive, can intuitively identify the interaction mode between components, and reduces the need for manual configuration of anchor points, saving time and reducing the possibility of human error.
[0005] Firstly, a visual modeling method for anchor points is provided, applied to a language based on object-oriented relational process modeling, and a modeling tool created using object-oriented modeling techniques. The modeling tool includes a database storing definition models established based on the object-oriented relational process modeling techniques to describe the interaction relationships between processes and their associated objects. The method may include: responding to a user's first display operation on a target process primitive in a primitive area of a target process in a visual interactive interface, reading from the database each definition model corresponding to the target process, and each associated object and the target process in the corresponding definition model. The target relationship type of the inter-process relationship; based on the stored mapping table of different relationship types and different anchor point primitives, the target anchor point primitives and corresponding anchor point information corresponding to the target relationship type are determined; the target anchor point primitives include single input anchor point primitives, single output anchor point primitives, and input-output anchor point primitives; 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; the target anchor point primitives are laid out on the target process primitives, and the target process primitive components are displayed in the canvas area of the visual interactive interface, the target process primitive components being target process primitives carrying target anchor point primitives.
[0006] In one possible implementation, the corresponding anchor information also includes usage rules for the target anchor element; the usage rule for the single input anchor element is to connect to an associated object or an output anchor element; the usage rule for the single output anchor element is that it can make one or more outward calls, connect to only one associated object, or connect to multiple input anchor elements; the usage rule for the input-output anchor element is to connect to an associated object, not to connect to other anchor elements, and not to make outward calls.
[0007] In one possible implementation, the process primitive is an elliptical primitive; the anchor point primitive is a primitive composed of a circular region with a radius equal to the target length and relation icons within that circular region; a relation icon represents a relation semantic.
[0008] In one possible implementation, the target anchor point primitives are laid out on the target process primitives, including: obtaining the number of target anchor point primitives corresponding to the target relationship type; and laying out the number of target anchor point primitives on the target process primitives according to the configured anchor point layout rules, wherein the circular outline of the target anchor point primitives intersects the elliptical outline of the target process primitives at a point.
[0009] In one possible implementation, the method further includes: updating the position of the target anchor point on the elliptical contour line in response to a user's movement operation on any target anchor point in the target process primitive component of the canvas area.
[0010] In one possible implementation, the method further includes: displaying the target anchor point primitive in the canvas area in a non-hidden display manner based on stored anchor point configuration rules, and displaying the anchor point information of the target anchor point primitive in the canvas area in a hidden display manner; and displaying corresponding anchor point information around the target anchor point primitive in response to a second display operation of the user on the target anchor point primitive in the canvas area through a visual interactive interface.
[0011] In one possible implementation, the method further includes: setting a display control for the definition model of the target process on the selection box of the target process primitive based on stored process configuration rules; in response to a third display operation of the user on the display control in the canvas area, switching the current canvas area to a new canvas area, 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] Secondly, a visualization modeling device for anchor points is provided. Based on an object-oriented language for object-relational process modeling, a modeling tool created using object-oriented modeling techniques is provided. The modeling tool includes a database that stores definition models established based on the object-relational process modeling techniques to describe processes and the interaction relationships between related objects. The device may include:
[0013] The reading unit is used to respond to the user's first display operation on the target process graph element of the target process in the graph element area of the visual interactive interface, and to read from the database each definition model corresponding to the target process, as well as each associated object related to the target process in the corresponding definition model and the target relationship type of the relationship between the target processes;
[0014] The determining unit is used to determine the target anchor point primitive and corresponding anchor point information corresponding to the target relationship type based on a stored mapping table of different relationship types and different anchor point primitives; the target anchor point primitive includes single input anchor point primitives, single output anchor point primitives, and input-output anchor point primitives; 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 to the corresponding target anchor point primitive;
[0015] A layout unit is used to lay out the target anchor point element on the target process element;
[0016] The display unit is used to display the target process primitive component in the canvas area of the visual interactive interface. The target process primitive component is a target process primitive carrying the target anchor point primitive.
[0017] Thirdly, an electronic device is provided, which includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0018] Memory, used to store computer programs;
[0019] When a processor executes a program stored in memory, it implements any of the steps described in the first aspect above.
[0020] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the steps of any of the methods described in the first aspect above.
[0021] The anchor point visualization modeling method provided in this application is applied to a language based on object-oriented relational process modeling. It is used in a modeling tool created using object-oriented modeling techniques. The modeling tool includes a database that stores definition models established using object-oriented relational process modeling techniques to describe the interaction relationships between processes and their associated objects. The method includes: responding to a user's first display operation on a target process primitive in the primitive area of a target process in a visualization interface; reading from the database each definition model corresponding to the target process, and each associated object and the relationship between the target process and the target process in the corresponding definition model. The method identifies the target relation type and, based on a stored mapping table of different relation types and anchor point primitives, determines the target anchor point primitives and corresponding anchor point information for the target relation type. Target anchor point primitives include single-input, single-output, and input-output anchor point primitives. The corresponding anchor point information includes the relation type represented by the target anchor point primitive and the parameter names of the associated objects connected to the target anchor point primitive. The target anchor point primitives are then laid out on the target process primitives, and the target process primitive components are displayed in the canvas area of the visual interactive interface. Each target process primitive component carries the target anchor point primitive. This method clearly defines that each relation type has a corresponding specific anchor point primitive, allowing for intuitive identification of the interaction methods between components. It also reduces the need for manual anchor point configuration, saving time and reducing the possibility of human error. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart illustrating a visualization modeling method for anchor points provided in an embodiment of this application;
[0024] Figure 2 A schematic diagram of a visual interactive interface provided in an embodiment of this application;
[0025] Figure 3 A schematic diagram illustrating a component for displaying a temporary process 1, provided as an embodiment of this application;
[0026] Figure 4 A schematic diagram illustrating another component of the temporary process 1 provided in an embodiment of this application;
[0027] Figure 5 A schematic diagram of another temporary process 1 component provided in an embodiment of this application;
[0028] Figure 6 A schematic diagram illustrating another component for displaying the temporary process 1 provided in an embodiment of this application;
[0029] Figure 7 A schematic diagram of the structure of a visualization modeling device for anchor points provided in an embodiment of this application;
[0030] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application. Unless otherwise defined, the technical or scientific terms used in this application should have the ordinary meaning understood by those skilled in the art. The terms "first," "second," and similar terms used in this application do not indicate any order, quantity, or importance, but are only used to distinguish different components. The terms "comprising" or "including," etc., mean that the element or object preceding the word covers the element or object listed after the word and its equivalents, but does not exclude other elements or objects. "Above," "below," "left," "right," etc., are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0032] For ease of understanding, the terms used in the embodiments of this application are explained below:
[0033] Object-oriented languages are used for modeling objects, relationships, and processes in systems engineering. They bridge the gap between knowledge models, computer languages, and natural languages, connecting systems engineering, software engineering, and knowledge engineering. This allows computers, AI, and humans to connect seamlessly based on the same language, laying a solid foundation for the accumulation, utilization, and dissemination of knowledge, and driving a qualitative leap in the breadth, depth, and efficiency of knowledge utilization.
[0034] Object: An entity or instance in the system.
[0035] Relationship: A link connecting two or more objects or processes, describing the dependencies and interactions between things.
[0036] Process: A unit with specific inputs, outputs, and operational logic, representing a certain function or behavior.
[0037] Anchor points: When a process is used, the connection points on the process outline that connect objects help manage and display relationships.
[0038] Relationship Anchors: When a process is used, corresponding anchors should be displayed on the outline of the process to represent the various types of relationships established in the definition view. Anchor icons visually indicate the type of relationship, and solid lines connect the anchors to the relevant objects. Anchors effectively reflect the interaction between processes and objects while simplifying the diagram's complexity—arrows or icons representing relationships are no longer displayed on the lines; only solid lines connect them, maintaining the model's clarity and neatness.
[0039] Define a view: A view used to describe and display the structure of things.
[0040] Process Definition View: The process definition view describes and displays the structure of a process definition, essentially an expansion of the process. Only related objects associated with the process will appear in the process definition view. The view type and path are indicated in the title.
[0041] The anchor point visualization modeling method provided in this application can be applied to object-oriented relational process modeling languages and modeling tools created using object-oriented modeling techniques. These modeling tools may include a database storing definition models established using object-oriented relational process modeling techniques to describe the interaction relationships between processes and their associated objects. The anchor point visualization modeling method provided in this application enables a clear display of the relationships between primitives during the modeling process, and achieves accurate connections between objects and processes by connecting anchor points. The displayed definition model is called a definition view.
[0042] The visualization modeling method provided in this application configures different primitives for processes, objects, and relationships. Process primitives, representing processes, are elliptical primitives; object primitives, representing objects, are rectangular primitives; and relationship primitives, representing different relationship types, are also called anchor primitives. These are primitives composed of a circular area with a radius equal to the target length and relationship icons within that circular area. One relationship icon represents one relationship semantic. Relationship types can include consumption relationships, production relationships, input-influence relationships, output-influence relationships, bidirectional influence relationships, state transition relationships, state transition relationship pairs, conditional relationships, dominant relationships, and calling relationships, etc.
[0043] In one example, the relationship type can include consumption relationship, production relationship, input influence relationship, output influence relationship, bidirectional influence relationship, state transition relationship, state transition relationship pair, condition relationship and dominance relationship, and the anchor primitives of the corresponding relationship type can be shown in Table 1.
[0044] Table 1
[0045]
[0046] As shown in Table 1, the relationship icon for consumption relationships is a hollow arrow, and its anchor point consists of a circular area and a hollow arrow within that circular area; the relationship icon for production relationships is a solid arrow, and its anchor point consists of a circular area and a solid arrow within that circular area; the relationship icon for input influence relationships is a hollow arrow with one upper half, and its anchor point consists of a circular area and a hollow arrow with one upper half on one side within that circular area; the relationship icon for output influence relationships is a solid arrow with one upper half, and its anchor point consists of a circular area and a solid arrow with one upper half on one side within that circular area; the relationship icon for bidirectional influence relationships is a hollow arrow with one upper half and one lower half, and its anchor point consists of a circular area and hollow arrows with one upper half and one lower half on one side within that circular area; the relationship icon for state transition relationships is a fan-shaped hollow arrow, and its anchor point consists of a circular area and a fan-shaped hollow arrow within that circular area.
[0047] The preferred embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit this application. Furthermore, the embodiments and features in the embodiments of this application can be combined with each other without conflict.
[0048] Figure 1 This is a flowchart illustrating a visualization modeling method for anchor points provided in an embodiment of this application. Figure 1 As shown, the method may include:
[0049] Step S110: In response to the user's first display operation on the target process graph element of the target process in the graph element area of the visual interactive interface, read the definition models corresponding to the target process from the database, as well as the target relationship types of the related objects and the relationships between the target processes in the corresponding definition models.
[0050] like Figure 2 As shown, the visual interactive interface may include a primitive area, a canvas area, and a configuration area. The primitive area can be located within the canvas area or placed separately on one side of the canvas area; this application does not impose any limitations on this. The primitive area contains different objects and processes in primitive form. After a user performs the above operation on a primitive in the primitive area, the canvas area will display that primitive. For example, the user drags process primitive 'a' from the canvas area to the canvas area for display. The configuration area allows for parameter configuration of process primitive 'a' displayed on the canvas area.
[0051] The first display operation can 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 user's first display operation on the target process graphic element in the graphic element area can include, but is not limited to, clicking, dragging, selecting and other operations.
[0052] Step S120: Based on the stored mapping table of different relation types and different anchor point elements, determine the target anchor point element and corresponding anchor point information corresponding to the target relation type.
[0053] The corresponding anchor point information may include the relationship type represented by the corresponding target anchor point element, the parameter name of the associated object connected by the corresponding target anchor point element, and the usage rules of the target anchor point element.
[0054] Since the mapping table storing different relation types and different anchor point elements shows that one relation type corresponds to one relation icon, that is, one anchor point element, the target anchor point element and the corresponding anchor point information corresponding to the target relation type can be determined.
[0055] Furthermore, target anchor elements can include single-input anchor elements (such as input influence relationships), single-output anchor elements (such as output influence relationships), and input-output anchor elements (such as bidirectional influence relationships). The usage rules for single-input anchor elements are that they are connected to one associated object or one output anchor element; the usage rules for single-output anchor elements are that they can make one or more outward calls, are connected to only one associated object, or are connected to multiple input anchor elements; the usage rules for input-output anchor elements are that they are connected to one associated object, are not allowed to connect to other anchor elements, and are not allowed to make outward calls.
[0056] Step S130: Lay out the target anchor point elements on the target process elements and display the target process element components in the canvas area of the visualization interface.
[0057] Among them, the target process primitive component is the target process primitive carrying the target anchor point primitive.
[0058] In practice, after obtaining the target relationship types between each associated object and the target process in each defined model, the number of target anchor point primitives corresponding to the target relationship types in all defined models can be obtained. Then, according to the configured anchor point layout rules, these target anchor point primitives are laid out on the target process primitives, where the circular outline of the target anchor point primitive intersects the elliptical outline of the target process primitive at a single point. For example, as... Figure 3As shown, the canvas area includes temporary process 1, a string-type associated object 'a', and class process 1. On temporary process 1, target anchor primitives are laid out, and the temporary process 1 component is displayed in the canvas area. At this point, the displayed temporary process 1 component carries five target anchor primitives. These five target anchor primitives, from left to right, represent the following relationship types: dominant relationship, consumption relationship, conditional relationship, input influence relationship, and bidirectional influence relationship. In the diagram, the associated object 'a' is represented by a rectangle. Different annotations are added at different positions inside the rectangle to represent different attributes of the object. The triangle in the upper left corner represents the class of associated object 'a', 'P' represents the associated object, and 'string' indicates that the associated object 'a' is of the string class.
[0059] Furthermore, the anchor point layout rules can include a configured layout method, which can be an equal arc length distribution, an angular interval distribution, or other distribution methods. For an angular interval distribution, the target anchor point primitives are laid out on the target process primitives according to the configured interval angle. The interval angle can be obtained as: φi = 2πi / n (i = 0, 1, ..., n-1), φi ~ [0, 2π); For an equal arc length distribution: calculate the perimeter of the elliptical contour line of the target process primitive, and then divide the perimeter equally according to the number of target anchor point primitives to be laid out, obtaining the number of elliptical contour line segments; one target anchor point primitive is laid out in each elliptical contour line segment.
[0060] It should be noted that this application can customize the distribution method according to specific needs, such as the number and / or density of anchor points. For example, if the number of target anchor point primitives is even, they will be symmetrically arranged on the elliptical outline.
[0061] Furthermore, the anchor point layout rules can also include rules that the two anchor point elements to be laid out do not completely overlap, and all anchor point elements have the same circular area size.
[0062] In some embodiments, based on actual needs, the user can update the position of anchor point elements in the target process element component. Specifically, in response to the user's movement operation on any target anchor point element in the target process element component of the canvas area, the position of the target anchor point element on the elliptical contour line is updated.
[0063] In some embodiments, based on stored anchor point configuration rules, target anchor point primitives are displayed in the canvas area in a non-hidden display mode, and anchor point information of the target anchor point primitives is displayed in the canvas area in a hidden display mode; in response to a second display operation by the user on the target anchor point primitives in the canvas area in the visual interactive interface, such as moving the mouse over it, the corresponding anchor point information is displayed around the target anchor point primitives. Continuing the previous example, for Figure 3The Temporary Procedure 1 component is displayed. If the user moves the cursor over the Temporary Procedure 1 component, the corresponding anchor point information, such as the relationship type and parameter names of the associated objects, will be displayed around each target anchor point element. Figure 4 As shown, it is understandable that the displayed anchor information may simply be the parameter name of the associated object.
[0064] In some embodiments, based on 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 element; this selection box is the smallest rectangle displayed around the corresponding target process element after it is selected. Figure 5 As shown, when temporary procedure 1 is selected by the cursor, a dashed selection box will be displayed, along with a display control on the selection box that sets the definition model associated with temporary procedure 1.
[0065] In response to a user's third display operation on the controls displayed in the canvas area, such as a single click or double click, the current canvas area is switched to a new canvas area. The definition view corresponding to the target process's definition model and the target process primitive component are displayed 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 target process's definition view. That is, other primitives in the current canvas area besides the target process primitive component will be hidden. Continuing the previous example, in... Figure 5 After displaying a dashed selection box and setting a display control on that selection box for the definition model related to Temporary Process 1, the canvas area will display the definition view and components related to Temporary Process 1 after the user triggers the display control. Figure 6 As shown, since the cursor is not on the Temporary Procedure 1 component at this time, the Temporary Procedure 1 component is displayed as follows. Figure 3 As shown.
[0066] In response to a user's exit action from the definition view of the target process in the canvas area, such as clicking on a blank area of the new canvas area, the new canvas area will be switched back to the current canvas area, which will be displayed soon. Figure 3 The content of the canvas area.
[0067] Understandably, a close display control related to the definition model of temporary process 1 can be set on this selection box, meaning that the exit display operation at this time will trigger the close display control operation.
[0068] Alternatively, in response to a user's fourth display operation on the target process primitive component in the canvas area, such as an operation on a blank area of the target process primitive, the current canvas area is switched to a new canvas area. The definition view and target process primitive component of the target process are displayed 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 corresponding to the definition model of the target process. That is, other primitives in the current canvas area except for the target process primitive component will be hidden. In response to a user's exit display operation on the definition view of the target process in the canvas area, such as clicking on a 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 the passing of actual parameters to the corresponding procedure when calling any procedure, and then executing that procedure. Furthermore, users can quickly understand the parameter types of the objects required by the corresponding procedure based on the anchor point primitives, truly making the implicit rules of modeling procedure calls explicit.
[0070] Corresponding to the above method, embodiments of this application also provide a visualization modeling device for anchor points, such as... Figure 7 As shown, the device includes:
[0071] The reading unit 710 is used to respond to the user's first display operation on the target process graphic element of the target process in the graphic element area of the visual interactive interface, and to read from the database each definition model corresponding to the target process, as well as each associated object related to the target process in the corresponding definition model and the target relationship type of the relationship between the target processes;
[0072] The determining unit 720 is used to determine the target anchor point primitive and corresponding anchor point information corresponding to the target relationship type based on a stored mapping table of different relationship types and different anchor point primitives; the target anchor point primitive includes single input anchor point primitives, single output anchor point primitives, and input-output anchor point primitives; 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 to the corresponding target anchor point primitive;
[0073] The layout unit 730 is used to lay out the target anchor point element on the target process element;
[0074] Display unit 740 is used to display target process primitive components in the canvas area of the visual interactive interface, wherein the target process primitive components are target process primitives carrying target anchor point primitives.
[0075] The functions of each functional unit of the anchor point visualization modeling device provided in the above embodiments of this application can be implemented through the above method steps. Therefore, the specific working process and beneficial effects of each unit in the anchor point visualization modeling device provided in the embodiments of this application will not be repeated here.
[0076] This application also provides an electronic device, such as... Figure 8 As shown, it includes a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840.
[0077] Memory 830 is used to store computer programs;
[0078] When the processor 810 executes the program stored in the memory 830, it performs the following steps:
[0079] In response to the user's first display operation on the target process graph element of the target process in the graph element area of the visual interactive interface, the system reads from the database each definition model corresponding to the target process, as well as each associated object related to the target process in the corresponding definition model and the target relationship type of the relationship between the target processes;
[0080] Based on the stored mapping table of different relation types and different anchor point primitives, the target anchor point primitives corresponding to the target relation type and the corresponding anchor point information are determined; the target anchor point primitives include single input anchor point primitives, single output anchor point primitives, and input-output anchor point primitives; the corresponding anchor point information includes the relation 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;
[0081] On the target process primitive, the target anchor point primitive is laid out, and the target process primitive component is displayed in the canvas area of the visual interactive interface. The target process primitive component is a target process primitive carrying the target anchor point primitive.
[0082] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0083] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0084] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0085] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0086] The implementation methods and beneficial effects of the various components of the electronic device in the above embodiments for solving the problem can be found in [reference needed]. Figure 1 The steps in the illustrated embodiments are used to implement the electronic device. Therefore, the specific working process and beneficial effects of the electronic device provided in this application will not be repeated here.
[0087] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the visualization modeling method for anchor points described in any of the above embodiments.
[0088] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the visualization modeling method for anchor points described in any of the above embodiments.
[0089] Those skilled in the art will understand that the embodiments in this application can be provided as methods, systems, or computer program products. Therefore, the embodiments in this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, the embodiments in this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0090] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0091] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0092] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0093] Although preferred embodiments have been described in this application, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of this application.
[0094] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of the embodiments of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims in this application and their equivalents, then this application also intends to include these modifications and variations.
Claims
1. A method for visualizing and modeling anchor points, characterized in that, A language applied to object-oriented relational process modeling, and a modeling tool created using object-oriented modeling techniques, wherein the modeling tool includes a database that stores definition models established based on the object-oriented relational process modeling techniques to describe the process and the interaction relationships between related objects, the method comprising: In response to the user's first display operation on the target process graph element of the target process in the graph element area of the visual interactive interface, the system reads from the database each definition model corresponding to the target process, as well as each associated object related to the target process in the corresponding definition model and the target relationship type of the relationship between the target processes; Based on the stored mapping table of different relation types and different anchor point primitives, the target anchor point primitives corresponding to the target relation type and the corresponding anchor point information are determined; the target anchor point primitives include single input anchor point primitives, single output anchor point primitives, and input-output anchor point primitives; the corresponding anchor point information includes the relation 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; Obtain the number of target anchor point primitives corresponding to the target relationship type; According to the configured anchor point layout rules, the specified number of target anchor point primitives are laid out on the target process primitives, and the target process primitive components are displayed in the canvas area of the visual interactive interface. The target process primitive components are target process primitives carrying target anchor point primitives. The circular outline of the target anchor point primitives intersects the elliptical outline of the target process primitives at a single point. The anchor point layout rules include the configured layout methods, which include equal arc length distribution or distribution at angular intervals.
2. The method as described in claim 1, characterized in that, The corresponding anchor point information also includes the usage rules for the target anchor point primitives; The rule for using the single input anchor point primitive is to connect it to an associated object or an output anchor point primitive; The usage rules for the single output anchor point element are that it can be called out one or more times, connected to only one associated object, or connected to multiple input anchor point elements; The rules for using the input / output type anchor point primitives are that they are connected to an associated object, and they are not allowed to be connected to other anchor point primitives or be called outwards.
3. The method as described in claim 1, characterized in that, The process primitives are elliptical primitives; The anchor point primitive is a primitive composed of a circular area with a radius equal to the target length and relation icons within that circular area; a relation icon represents a relation semantic.
4. The method as described in claim 3, characterized in that, The method further includes: In response to a user's movement operation on any target anchor point element in the target process primitive component of the canvas area, the position of the target anchor point element on the outline of the ellipse is updated.
5. The method as described in claim 1, characterized in that, The method further includes: Based on the stored anchor point configuration rules, the target anchor point primitive is displayed in the canvas area in a non-hidden display mode, and the anchor point information of the target anchor point primitive is displayed in the canvas area in a hidden display mode. In response to the user's second display operation on the target anchor point element in the canvas area in the visual interactive interface, the corresponding anchor point information is displayed around the target anchor point element.
6. The method as described in claim 1, characterized in that, The method further includes: 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 element; In response to the user's third display operation on the display control in the canvas area, 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 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 the user's exit display operation of the definition view of the target process in the canvas area, the new canvas area is switched back to the current canvas area.
7. A visualization modeling device for anchor points, characterized in that, A language applied to object-oriented relational process modeling, and a modeling tool created using object-oriented modeling techniques, wherein the modeling tool includes a database that stores definition models established based on the object-oriented relational process modeling techniques to describe the process and the interaction relationships between related objects; the apparatus includes: The reading unit is used to respond to the user's first display operation on the target process graph element of the target process in the graph element area of the visual interactive interface, and to read from the database each definition model corresponding to the target process, as well as each associated object related to the target process in the corresponding definition model and the target relationship type of the relationship between the target processes; The determining unit is used to determine the target anchor point primitive and corresponding anchor point information corresponding to the target relationship type based on a stored mapping table of different relationship types and different anchor point primitives; the target anchor point primitive includes single input anchor point primitives, single output anchor point primitives, and input-output anchor point primitives; 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 to the corresponding target anchor point primitive; A layout unit is used to obtain the number of target anchor point primitives corresponding to the target relationship type; and to lay the number of target anchor point primitives on the target process primitives according to the configured anchor point layout rules; the anchor point layout rules include a configured layout method, which includes equal arc length distribution or angular interval distribution. The display unit is used to display a target process primitive component in the canvas area of the visual interactive interface. The target process primitive component is a target process primitive carrying a target anchor point primitive. The circular outline of the target anchor point primitive intersects the elliptical outline of the target process primitive at a point.
8. An electronic device, characterized in that, The electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-6.
Citation Information
Patent Citations
Commodity object information interaction method and device and electronic equipment
CN113298602A
Process visualization modeling method, computer equipment and computer readable storage medium
CN116594733A