Model building method

By setting the model to both the static diagram and the timing diagram, and automatically mapping between the static nodes and the timing nodes, the complex problem of static architecture to time architecture conversion in software development is solved, the signal integrity and quality consistency are improved, and the timing diagram is automatically generated.

CN120045181APending Publication Date: 2025-05-27XIAN ZHIZHOU SHENJIAN INFORMATION TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510117058.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

During the software development process, the conversion method between static architecture and time architecture is complex, which can easily lead to missing signals, missing signals, describing different things, and poor quality consistency.

Method used

By setting the model to two sides, one side is a static diagram and the other side is a timing chart, the static nodes in the static diagram and the timing nodes in the timing chart are automatically mapped to each other. Developers only need to adjust the order and connection relationship of timing activities in the timing chart to generate a timing chart.

Benefits of technology

It ensures that the signals are not missing and omitted during the software development process, ensures that the static node and the timing node describe the same event, and at the same time improve the quality consistency and realize the automatic generation of the timing chart.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045181A_ABST
    Figure CN120045181A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of system development, and particularly relates to a model building method, which comprises the following steps of: setting a model into two surfaces, namely a static diagram and a time sequence diagram; and enabling the static nodes in the static graph and the corresponding time sequence nodes in the time sequence graph to be automatically and mutually mapped. When the model building method is adopted, the time sequence diagram can be developed only by adjusting the sequence of time sequence activities and the connecting line relation in the time sequence diagram, it is guaranteed that signals are not lost or omitted in the software development process, it can be guaranteed that the same event is described by the corresponding static nodes and the time sequence nodes, meanwhile, the quality consistency is guaranteed, and the software development efficiency is improved. And a time sequence diagram is automatically generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of system development, and particularly relates to a method for building a model. Background Art

[0002] In the field of system development, static diagrams mainly describe the static structure of a system, such as class diagrams, object diagrams, component diagrams (module diagrams), and deployment diagrams (implementation diagrams). A class diagram describes the static structure of classes in a system, including the relationships, attributes, and operations between classes. An object diagram is an instance of a class diagram, describing the specific object instances in a system at a certain point in time and the relationships between them. A component diagram describes the physical structure of code components and the dependencies between components. A deployment diagram defines the physical architecture of software and hardware in a system. A sequence diagram is an interaction diagram that shows the dynamic collaboration between multiple objects by describing the time sequence of messages sent between objects. It is used to represent the behavioral sequence of use cases and display the interaction process in a system.

[0003] During the software development process, the conversion method from a static architecture to a temporal architecture is established based on manual permutation and combination by one person. The construction process is complex and prone to signal loss, signal omission, describing non - the same thing, and poor quality consistency. Summary of the Invention

[0004] In view of this, the present invention provides a method for building a model, which sets the model to have two sides, one side is a static diagram and the other side is a sequence diagram; enables the static nodes in the static diagram to automatically map to the corresponding sequence nodes in the sequence diagram. When using this method for building a model, only by adjusting the order and connection relationship of sequence activities in the sequence diagram can a sequence diagram be developed, ensuring that there is no signal loss or omission during the software development process, being able to ensure that the corresponding static nodes and sequence nodes describe the same event, while ensuring quality consistency, and the sequence diagram is automatically generated.

[0005] To achieve the above - mentioned technical purpose, the specific technical solution adopted by the present invention is as follows:

[0006] A method for building a model, the method for building a model includes:

[0007] Set the model to have two sides, one side is a static diagram and the other side is a sequence diagram; multiple static nodes are set in the static diagram, and static nodes and spatial connection lines capable of connecting at least two static nodes are set in the static diagram;

[0008] The sequence diagram is automatically mapped based on the static diagram; after mapping, the static nodes generate corresponding sequence nodes in the sequence diagram, and the spatial connection lines generate sequence connection lines connecting the corresponding sequence nodes in the sequence nodes.

[0009] Further, a plurality of timing activities are connected in series based on a series relationship for the timing nodes;

[0010] In the timing diagram, the timing nodes are arranged in parallel; each of the timing activities is connected in series and arranged separately under the corresponding timing node;

[0011] The timing connection is between two of the timing nodes.

[0012] Further, the series relationship is used to express the sequence of occurrence of the timing activities;

[0013] The timing activities are configured to be set at specific positions in the series relationship based on manual operations;

[0014] The timing connection line is configured to be able to connect at least two specific timing activities based on manual dragging.

[0015] Further, the static node is an expandable node, and after expansion, a sub-static diagram of the same type as the static diagram model is generated;

[0016] When the static node is set as an expandable node, the corresponding timing node in the timing diagram is also configured as an expandable node; after the timing node is expanded, a sub-timing diagram of the same type as the timing diagram model is generated;

[0017] The sub-static diagram and the sub-timing diagram are mutually mapped.

[0018] Further, both the static node and the timing node are configured to be able to customize attributes;

[0019] The attributes that can be customized include attribute names, variable names, numerical values, calculation sheets, formulas, drop-down boxes, icons, screening options, and / or description items.

[0020] Further, a static calculation module is configured in the static diagram;

[0021] The static calculation module calculates the required numerical value based on the attributes configured for the static node in a manner based on function operations and / or programs.

[0022] Further, a dynamic calculation module is configured in the timing diagram; the dynamic calculation module drives each of the timing activities in the timing diagram to perform simulations in chronological order in a manner based on programs.

[0023] Further, the model is a knowledge tree model.

[0024] Further, the static diagram and the timing diagram are set on two sides of the model.

[0025] Adopting the above technical solutions, the present invention can bring the following beneficial effects:

[0026] The present invention can develop a timing diagram only by adding or deleting timing activities, adjusting the positions of timing activities, and adjusting the connection relationships in the timing diagram, which ensures that signals are not missing or omitted during the software development process, can ensure that the corresponding static nodes and timing nodes describe the same event, and at the same time ensures quality consistency, and the timing diagram is automatically generated;

[0027] The present invention configures the static diagram and the timing diagram in a multi-layer expandable manner, and the sub-static modules and sub-timing modules of each layer have the same attributes as the static diagram and the timing diagram, providing more abundant possibilities for developers to implement at different levels;

[0028] The present invention can configure attributes for timing nodes and static nodes, and can perform functions such as operations and resource configuration annotation;

[0029] The present invention configures a calculation module for the static diagram and the timing diagram, which can call the attributes configured for the static nodes and the timing nodes to perform operations or simulation, and obtain the data and information required by the developer. Description of the Drawings

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0031] Figure 1 It is the static diagram in the specific embodiment of the present invention;

[0032] Figure 2 It is the timing diagram in the specific embodiment of the present invention;

[0033] Figure 3 It is a schematic diagram of the state where the timing nodes in the timing diagram of the specific embodiment of the present invention are expanded into sub-timing diagrams. Detailed Embodiment

[0034] The embodiments of the present disclosure will be described in detail below with reference to the drawings.

[0035] The following describes the embodiments of the present disclosure through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all embodiments. The present disclosure can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present disclosure without creative efforts belong to the scope of protection of the present disclosure.

[0036] It should be noted that the following describes various aspects of the embodiments within the scope of the appended claims. It should be obvious that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is illustrative only. Based on the present disclosure, those skilled in the art should understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using other structures and / or functionality in addition to one or more of the aspects described herein.

[0037] It should also be noted that the drawings provided in the following embodiments only illustrate the basic concept of the present disclosure schematically. The drawings only show the components related to the present disclosure, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and ratio of each component in its actual implementation can be arbitrarily changed, and the component layout type may also be more complex.

[0038] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.

[0039] In an embodiment of the present invention, a model building method is proposed. The model building method includes:

[0040] Setting the model to have two sides, one side being a static graph and the other side being a time-series graph; multiple static nodes are set in the static graph, and static nodes and spatial connection lines capable of connecting at least two static nodes are set in the static graph;

[0041] The timing diagram is automatically mapped based on the static diagram; after mapping, the static nodes generate corresponding timing nodes in the timing diagram, and the spatial connections generate corresponding timing connections connecting the timing nodes in the timing diagram.

[0042] In this embodiment, static nodes are set in the static diagram and distributed in the background diagram. The static nodes have spatial attributes, and each static node summarizes all matters at this spatial position (as Figure 1 shown). The static nodes are connected based on spatial connections; since the static nodes in the static diagram in the prior art do not have time attributes, in this embodiment, based on the mapping relationship, each icon in the static diagram is mapped one by one into the timing diagram, so that the icons at their respective spatial positions are converted into timing nodes and set in the timing diagram, and the timing nodes endow the matters between the spatial positions with event attributes.

[0043] In some embodiments, the mapping relationship is established in the following manner: the spatial list attribute is assigned to the static nodes by means of a linked list or an array, and the positions of the static nodes are recorded, and sequential group assignment is performed according to the positions of the static nodes; therefore, in the timing diagram, each timing node automatically generates the initial sequence and connection relationship based on the sequential group assignment, and each static node can map out a timing node one by one in the timing diagram. At the same time, the spatial connections between the static nodes will be mapped into the timing diagram to generate timing connections. At this time, the static diagram and the timing diagram are presented as two sides of the same coin and are automatically mapped, ensuring that signals are not missing or omitted during the software development process, being able to ensure that the corresponding static nodes and timing nodes describe the same event, ensuring quality consistency at the same time, and the timing diagram is automatically generated.

[0044] In this embodiment, in the static diagram of the software architecture, the static nodes are used to describe the components in the system that do not change with time or do not move dynamically. The static diagram mainly focuses on the static structure of the system, especially the internal structure of the existing things and their relationships with each other. Specifically for the static nodes, they represent the following aspects:

[0045] In a distributed system or network architecture, the static nodes refer to physical devices such as servers, routers, switches, etc. These devices are fixed in position during the operation of the system and do not move.

[0046] Software systems: In the software architecture diagram, the static nodes also represent different software systems or modules. These systems or modules are responsible for processing specific business logics or functions and maintain their structures and functions unchanged during the operation of the system.

[0047] Static data structures: In some cases, the static nodes also represent the static data structures in the system, such as database tables, file systems, etc. These data structures store the data required by the system and remain unchanged during the operation of the system.

[0048] In UML (Unified Modeling Language), static diagrams mainly include class diagrams, object diagrams, and package diagrams. Among them, class diagrams are used to define classes in the system, including describing the internal structure of classes and the relationships between classes; object diagrams show instances of classes and the relationships between these instances; package diagrams are used to organize class diagrams and object diagrams to show the overall structure of the system.

[0049] The static nodes in the static diagram of this embodiment usually represent components such as physical devices, software systems, or static data structures that do not change over time or do not move dynamically. These nodes maintain their structure and function unchanged during the operation of the system and are the cornerstone for the stable operation of the system model.

[0050] In the static diagram, connection relationships representing signal transmission are set between static nodes to express the signal processing relationships between static nodes of the system model; during the construction of the system model, the static diagram cannot be directly run, and corresponding sequence diagrams must be set to support the running order, specific signal transmission direction, and signal function conversion method of each static node in the static diagram.

[0051] In some embodiments, multiple timing activities are serially connected to the timing node based on a serial relationship;

[0052] As Figure 2 shown, in the sequence diagram, the timing nodes are arranged in parallel; each timing activity is serially arranged under the corresponding timing node;

[0053] The timing connection is between two timing nodes.

[0054] In the sequence diagram built in this embodiment, timing nodes are mapped to each static node one by one. Developers can add timing activities in the dropdown lines (the serial relationship is visualized as a dropdown line) of each timing node according to requirements. The dropdown line represents the chronological order, and the existence of the dropdown line gives the upstream and downstream relationship to the timing activities.

[0055] In this embodiment, the serial relationship is used to express the sequential occurrence order of timing activities;

[0056] The timing activities are configured to be set at specific positions in the serial relationship based on manual operations;

[0057] The timing connection is configured to connect at least two specific timing activities based on manual dragging.

[0058] In this embodiment, after the static diagram and the sequence diagram are automatically mapped based on the program, developers can add or delete timing nodes, adjust the timing connections between timing nodes, add or delete the timing connections between timing nodes in the sequence diagram according to requirements to further visualize the sequence diagram.

[0059] When building the system model, this embodiment supports directly dragging the connection relationships of each line in the sequence diagram to connect each sequence node, and the sequence diagram is automatically generated, greatly reducing the development complexity and significantly improving the system development speed. Since each static node is reflected in the sequence diagram, the problems of inconsistent event descriptions and missing signals are avoided. At the same time, this embodiment concretizes and simplifies the development process of the sequence diagram, and the quality consistency of the drawn sequence diagram is very high.

[0060] In some embodiments, the static node is an expandable node, and after expansion, a sub-static diagram of the same type as the static diagram model is generated;

[0061] When the static node is set as an expandable node, the corresponding sequence node in the sequence diagram is also configured as an expandable node; after the expansion of the sequence node, a sub-sequence diagram of the same type as the sequence diagram model is generated;

[0062] The sub-static diagram and the sub-sequence diagram are mapped to each other.

[0063] In some embodiments, the sub-static nodes and sub-sequence nodes in the sub-static diagram and the sub-sequence diagram can also be set as expandable, and the lower-level nodes after expansion can also be set as expandable, and developers can configure the required levels according to specific needs.

[0064] The sequence activities of the sequence diagram need to expand a new sequence diagram after being opened. Therefore, as Figure 3 shown, in the sequence diagram, at least part of the sequence activities are set to expand into a sub-sequence diagram after being opened; the sub-sequence diagram includes a plurality of sub-sequence nodes and a plurality of sequence activities of each of the sub-sequence modules; each of the sequence activities is set to be connectable based on a sequence connection line. The sub-static diagram - sub-sequence diagram composition mode of this embodiment is the same as the above-mentioned static diagram - sequence diagram. This embodiment can be applied to the development of system models with multi-layer modules - activities.

[0065] In some embodiments, the static diagram and the sequence diagram are configured to be switched arbitrarily based on human clicks and the like. Similarly, the sub-static diagram and the sub-sequence diagram are also configured to be switched arbitrarily based on human clicks and the like.

[0066] In some embodiments, the static node, the sequence node, and the sequence activity are all configured such that the model attributes can be custom-set. In the sequence diagram, the events and trigger orders of each sequence node can be customized;

[0067] The customizable attributes include attribute name, variable name, value, calculation book, formula, drop-down box, icon, screening option, and / or description item.

[0068] In this embodiment, the custom attributes in the static diagram and the sequence diagram can be fully characterized by various types of data and information such as text, charts, functions, formulas, numerical values, programs, etc. to represent their physical characteristics, mathematical characteristics or biological characteristics, and additional explanations are attached. In the sequence diagram, time series characteristics such as editable multimodal event information and trigger order can be edited.

[0069] This embodiment configures various attributes for the static nodes and the sequence nodes to make the static diagram and the sequence diagram more concrete. At the same time, in this embodiment, the sub-static diagrams, sub-sequence diagrams, and their respective lower-level diagrams are all configured with this function.

[0070] In some embodiments, a static calculation module is configured in the static diagram;

[0071] The static calculation module calculates the required numerical values based on the attributes configured for the static nodes in a manner of function operation and / or program.

[0072] Function operations and programs can directly call the required content in the attributes configured for the static nodes as needed, and are configured according to the needs of the developer to obtain the required data such as distance, materials used, personnel allocation, etc. At the same time, in this embodiment, the sub-static diagrams, sub-sequence diagrams, and their respective lower-level diagrams are all configured with this function.

[0073] In some embodiments, a dynamic calculation module is configured in the sequence diagram; the dynamic calculation module drives the simulation of each of the sequence activities in the sequence diagram in chronological order based on a program.

[0074] The dynamic calculation module of this embodiment drives the simulation operation of the sequence nodes in the order of time. On the time line, the prior sequence activities are calculated based on the added attributes to obtain the corresponding operation data and transmitted to the next sequence activity based on the sequence connection lines. Finally, the entire sequence diagram completes the simulation and obtains the intermediate data and the data after operation. These data can be exported based on reports, etc. Taking basic mathematical mixed operations as an example, the sequence diagram affects the calculation process of the data flow by adjusting the trigger order based on the operation rules contained in each model. Taking control logic design as an example, the sequence diagram affects the judgment environment process of the control logic conduction chain by adjusting the trigger order based on the NAND gate judgment rules contained in each model. Taking the process flow as an example, the sequence diagram affects the quality of the final product by adjusting the process order. And so on, the sequence diagram and the static diagram are two sides of the same thing, expressing the whole picture more richly and comprehensively.

[0075] At the same time, in this embodiment, the sub-static diagrams, sub-sequence diagrams, and their respective lower-level diagrams are all configured with this function.

[0076] In some embodiments, in a timing diagram, each timing node and timing activity are configured with different attributes according to the needs of the developer to support various function operation modes required specifically.

[0077] In some embodiments, in the timing diagram, as Figure 2 shown, the present invention adopts a tiled and expanded timing diagram, where each timing node is arranged in parallel; each timing activity is arranged in series and separated under the corresponding timing module; and each connection relationship is set between each timing module.

[0078] In some embodiments, the model is a knowledge tree model. The knowledge tree in this embodiment is a visual knowledge representation method that organizes knowledge according to its internal logical or hierarchical relationships to form a tree-like structure. In the knowledge tree, each knowledge point is represented as a node of the tree, and the connection relationships between the nodes reflect the logical or hierarchical relationships between the knowledge points. Specifically, a knowledge tree usually contains one or more root nodes, which represent the core concepts or basic knowledge points of a certain field or topic. Starting from the root node, multiple branches can be extended downward, and each branch represents a sub-field or sub-topic. On each branch, more detailed sub-nodes can be further extended, and these sub-nodes represent more specific and in-depth knowledge points. By constructing a knowledge tree, people can more clearly understand the knowledge structure of a certain field or topic, grasp the internal connections and logical relationships between knowledge points. At the same time, the knowledge tree can also help people sort out, summarize and generalize knowledge, improving the efficiency and quality of learning. In practical applications, the knowledge tree can be applied to multiple fields, such as education, scientific research, enterprise management, etc. In the field of education, teachers can use the knowledge tree to sort out teaching content to help students better understand and master knowledge; in the field of scientific research, researchers can use the knowledge tree to sort out the knowledge context of the research field to discover new research questions and directions; in the field of enterprise management, enterprises can use the knowledge tree to sort out the business processes and knowledge systems of the enterprise to improve the operation efficiency and innovation ability of the enterprise.

[0079] Due to the complex order of the root-branch relationships of the knowledge tree, the extremely large amount of data, and the complex connection relationships between branches, the model building method in this embodiment has a very good effect when applied to the development of the knowledge tree.

[0080] As described above, the above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present disclosure should be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. A model building method, characterized in that: The model building method comprises: The model is set to have two sides, one side is a static graph, and the other side is a timing graph; the static graph is provided with a plurality of static nodes, and the static graph is provided with static nodes and spatial connections that can connect at least two static nodes; The timing diagram is automatically mapped based on the static diagram; after mapping, the static nodes generate corresponding timing nodes in the timing diagram, and the spatial lines generate corresponding timing lines connecting the timing nodes in the timing nodes.

2. The model building method according to claim 1, characterized in that: The timing node is connected in series with a plurality of timing activities based on a series relationship; In the timing diagram, the timing nodes are arranged in parallel; the timing activities are arranged in series under the corresponding timing nodes; The timing connection is between two of the timing nodes.

3. The model building method according to claim 2, characterized in that: The series relationship is used to express the order in which sequential activities occur; The timing activity configuration is: can be set at a specific position of the series relationship based on human operation; The timing connection is configured to connect at least two specific timing activities based on manual dragging.

4. The model building method according to claim 1, characterized in that: The static node is an expandable node, which generates a sub-static graph of the same type as the static graph model after expansion; When the static node is set as an expandable node, the corresponding timing node in the timing diagram is also configured as an expandable node; after the timing node is expanded, a sub-timing diagram of the same type as the timing diagram model is generated; The sub-static graph and the sub-sequential graph are mapped to each other.

5. The model building method according to claim 1, characterized in that: The static nodes and the sequential nodes are both configured as customizable attributes; Customizable properties include property name, variable name, value, calculation book, formula, drop-down box, icon, filter item and / or description item.

6. The model building method according to claim 1, characterized in that: The static graph is configured with a static calculation module; The static calculation module calculates the required value based on the attributes configured by the static node in a functional operation and / or program manner.

7. The model building method according to claim 1, characterized in that: The timing diagram is provided with a dynamic calculation module; the dynamic calculation module drives each timing activity in the timing diagram to be simulated in chronological order based on a program.

8. The model building method according to claim 1, characterized in that: The model is a knowledge tree model.

9. The model building method according to claim 1, characterized in that: The static diagram and the timing diagram are arranged on two sides of the model.