Modeling method and device based on navigation guidance, terminal and medium
By introducing navigation guidance and static mapping mechanisms into the modeling tool, a global information display page is generated and a quick editing portal is designed, which solves the inefficiency problem caused by frequent switching between modules in existing tools, and realizes flexible user operations and efficient modeling.
Patent Information
- Application Number
- CN202510391775.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-18
AI Technical Summary
The existing modeling tools lack global views and flexible operation portals, resulting in frequent switching between modules, reducing operation efficiency.
Provide a modeling method based on navigation guidance, generates a target navigation page through a static mapping mechanism, displays the global information of the simulation model and the logical association between modules, and designs a quick editing portal, allowing users to start operations from any module.
It significantly improves user operation efficiency, and users can select operation starting points according to their needs and quickly complete the starting steps of the modeling task without following a fixed operation sequence.
Smart Images

Figure CN120337332A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of system engineering modeling tools, and in particular, to a modeling method, device, terminal, and medium based on navigation guidance. Background Art
[0002] Currently, many modeling tools (such as IBM Rational Software Architect, MagicDraw, Enterprise Architect) adopt modular design, and users need to gradually expand nodes through a tree structure to complete various operations. This type of design lacks a global view and flexible operation entrances, resulting in users frequently switching between complex modules and reducing operation efficiency. In addition, although tools such as MagicDraw provide model navigation, it mainly focuses on the display of the model structure and fails to provide clear operation guidance and quick entrances for users. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a modeling method, device, terminal, and medium based on navigation guidance, which provides users with global information of the simulation model to be configured and quick editing entrances, not only significantly improving the low operation efficiency caused by frequent switching between modules, but also meeting the modeling start operations based on different user needs.
[0004] In a first aspect, the present invention provides a modeling method based on navigation guidance. The method is applied to a terminal, and the content displayed on the graphical user interface of the terminal includes a model list. The method includes:
[0005] Responding to a selection operation for a simulation model included in the model list to determine a simulation model to be configured, where the simulation model to be configured includes multiple configurable modules, including type modules, interface modules, scenario modules, and component modules;
[0006] Generating a target navigation page corresponding to the simulation model to be configured based on a static mapping mechanism and displaying the target navigation page through the graphical user interface. The target navigation page is configured with an editing entrance associated with each configurable module, and the target navigation page is used to display global information of the simulation model to be configured, including basic data of each configurable module and logical associations between each configurable module;
[0007] Responding to a triggering operation for the target editing entrance, jumping from the target navigation page to an operation page of the target configurable module associated with the target editing entrance to edit the target configurable module in the operation page, and refreshing the target navigation page based on the static mapping mechanism when the editing is completed, and continuing to respond to the triggering operation for the new target editing entrance until the target simulation model is constructed.
[0008] In one implementation, generating a target navigation page corresponding to a to-be-configured simulation model based on a static mapping mechanism includes:
[0009] Invoking a static data interface based on the static mapping mechanism;
[0010] Through the static data interface, reading the basic data of each configurable module from the model data of the to-be-configured simulation model;
[0011] According to a predefined navigation page template, based on the basic data of each configurable module and the logical associations between each configurable module, generating a target navigation page corresponding to the to-be-configured simulation model, where the target navigation page displays the basic data of each configurable module in the form of module cards and reflects the logical associations between each configurable module in the form of arrows.
[0012] In one implementation, the navigation page template includes a layout template and a fixed structure; generating a target navigation page corresponding to the to-be-configured simulation model according to the predefined navigation page template based on the basic data of each configurable module and the logical associations between each configurable module includes:
[0013] Generating a module card corresponding to each configurable module based on the basic data to display the basic data of each configurable module through the module card;
[0014] Determining the position of the module card corresponding to each configurable module in the target navigation page according to the layout template and generating a connection line between the module cards corresponding to each configurable module according to the fixed structure to reflect the logical associations between the module cards corresponding to each configurable module through the arrows on the connection line.
[0015] In one implementation, in response to a trigger operation for a target editing entry, jumping from the target navigation page to an operation page of a target configurable module associated with the target editing entry includes:
[0016] In response to a trigger operation for the target editing entry, invoking a function interface corresponding to the target editing entry and jumping from the target navigation page to an operation page of a target configurable module associated with the target editing entry through the function interface;
[0017] Wherein, the target editing entries include a type new entry, an interface new entry, a scenario new entry, and a component introduction entry, and the function interfaces include a type new interface, an interface new interface, a scenario new interface, and a component introduction interface.
[0018] In one implementation, the method further includes:
[0019] During the process of editing the target configurable module, in response to a page switching operation, the switching between the operation page of the target configurable module and the target navigation page is realized.
[0020] In one implementation, the method further includes:
[0021] In response to a custom operation for the target navigation page, adjust the position of the module card corresponding to each configurable module in the target navigation page, and / or adjust the display and hiding state of the module card corresponding to each configurable module.
[0022] In a second aspect, the present invention further provides a modeling device based on navigation guidance. The device is applied to a terminal, and the content displayed on the graphical user interface of the terminal includes a model list. The device includes:
[0023] A model selection module, configured to determine a to-be-configured simulation model in response to a selection operation for a simulation model included in the model list. The to-be-configured simulation model includes multiple configurable modules, including a type module, an interface module, a scenario module, and a component module;
[0024] A navigation page display module, configured to generate a target navigation page corresponding to the to-be-configured simulation model based on a static mapping mechanism, and display the target navigation page through the graphical user interface. The target navigation page is configured with an editing entry associated with each configurable module, and the target navigation page is used to display the global information of the to-be-configured simulation model, including the basic data of each configurable module and the logical association between each configurable module;
[0025] A model configuration module, configured to jump from the target navigation page to the creation page of the target configurable module associated with the target editing entry in response to a trigger operation for the target editing entry, create elements included in the target configurable module in the creation page, and when the elements are created, refresh the target navigation page based on the static mapping mechanism, and continue to respond to the trigger operation for the new target editing entry until the target simulation model is constructed.
[0026] In one implementation, the navigation page display module is specifically configured to:
[0027] Call a static data interface based on the static mapping mechanism;
[0028] Through the static data interface, read the basic data of each configurable module from the model data of the to-be-configured simulation model;
[0029] According to a predefined navigation page template, based on the basic data of each configurable module and the logical associations between each configurable module, a target navigation page corresponding to the to-be-configured simulation model is generated. The target navigation page displays the basic data of each configurable module in the form of module cards and reflects the logical associations between each configurable module in the form of arrows.
[0030] In a third aspect, the present invention further provides a terminal, including a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor. The processor executes the computer-executable instructions to implement the method according to any one of the first aspect.
[0031] In a fourth aspect, the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions cause the processor to implement the method according to any one of the first aspect.
[0032] A modeling method, device, terminal, and medium based on navigation guidance provided by the present invention. The content displayed on the graphical user interface of the terminal includes a model list. First, in response to a selection operation for a simulation model included in the model list, a to-be-configured simulation model is determined. The to-be-configured simulation model includes multiple configurable modules, including a type module, an interface module, a scenario module, and a component module. Then, a target navigation page corresponding to the to-be-configured simulation model is generated based on a static mapping mechanism, and the target navigation page is displayed through the graphical user interface. The target navigation page is configured with an editing entry associated with each configurable module. The target navigation page is used to display the global information of the to-be-configured simulation model, including the basic data of each configurable module and the logical associations between each configurable module. Finally, in response to a trigger operation for the target editing entry, a jump is made from the target navigation page to the operation page of the target configurable module associated with the target editing entry, so as to edit the target configurable module within the operation page. When the editing is completed, the target navigation page is refreshed based on the static mapping mechanism, and the response to the trigger operation for the new target editing entry is continued until the target simulation model is constructed. The above method provides a navigation page for the user to display global information and logical associations between modules, and combines a fast editing entry design, enabling the user to quickly complete the starting steps of the modeling task without following a fixed operation sequence, thereby meeting the "first step" operations of the user based on different needs.
[0033] Other features and advantages of the present invention will be described in the following specification, and part of them will become obvious from the specification or be understood by implementing the present invention. The objectives and other advantages of the present invention are achieved and obtained by the structures specifically pointed out in the specification, claims, and drawings.
[0034] To make the above objects, features, and advantages of the present invention more apparent and understandable, the following provides preferred embodiments in conjunction with the accompanying drawings for detailed description as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0036] Figure 1 A flowchart of a modeling method based on navigation guidance provided by an embodiment of the present invention;
[0037] Figure 2 A schematic diagram of a target navigation page provided by an embodiment of the present invention;
[0038] Figure 3 A schematic diagram of the structure of a modeling device based on navigation guidance provided by an embodiment of the present invention;
[0039] Figure 4 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions of the present invention in conjunction with the embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention fall within the scope of protection of the present invention.
[0041] Currently, related technologies provide modeling tools such as IBM Rational Software Architect, MagicDraw, and Enterprise Architect. The above modeling tools all lack a global view and flexible operation entrances, and their main disadvantages include: (1) lack of a global view, making it difficult for users to quickly understand the overall structure of the model; (2) the logical relationships between modules are not centrally displayed, and users need to analyze them by themselves; (3) lack of a quick entrance, with complex operations and low efficiency.
[0042] Based on this, the embodiments of the present invention provide a navigation-guided modeling method, device, terminal, and medium, which provide users with global information of the simulation model to be configured and a quick editing entry, not only significantly improving the low operation efficiency caused by frequent switching between modules, but also meeting the modeling start operations of users based on different requirements.
[0043] To facilitate the understanding of this embodiment, first, a navigation-guided modeling method disclosed in the embodiments of the present invention will be introduced in detail. This method is applied to a terminal, and the content displayed on the graphical user interface of the terminal includes a model list. Refer to Figure 1 the schematic flowchart of a navigation-guided modeling method shown in the figure. This method mainly includes the following steps S102 to S106:
[0044] Step S102, in response to a selection operation for the simulation model included in the model list, determine the simulation model to be configured.
[0045] Among them, the model list includes multiple simulation modules. The simulation model to be configured includes multiple configurable modules, including a type module, an interface module, a scenario module, and a component module. Specifically: The "type" in the type module is an abstract unit of an object structure, which clarifies objects with the same members and processes; the "interface" in the interface module is used to specify the processes for type implementation; the "scenario" in the scenario module usually refers to the specific situation or environment of the interaction between objects and processes, describing the arrangement of objects and processes through relationships to complete a certain task or achieve a certain function; the "component" in the component module is a collection of methods and data integrated to achieve a certain function, such as an encapsulated code module or a large-grained running object module, which can include types, interfaces, scenarios, and components. Therefore, the "component" can be understood as a sub-model in the simulation model to be configured.
[0046] In one example, the model list is displayed through the graphical user interface. The model list contains multiple simulation models. In response to the user's selection operation for the simulation model (such as a click operation, a box selection operation, a drag operation, etc.), the simulation model affected by the selection operation is used as the simulation model to be configured.
[0047] Step S104, generate a target navigation page corresponding to the simulation model to be configured based on the static mapping mechanism, and display the target navigation page through the graphical user interface.
[0048] Among them, the static mapping mechanism can be understood as a fixed mapping that does not change with time or conditions. The static mapping mechanism is used to obtain the basic data of each configurable module in the simulation model to be configured and the logical associations between each configurable module. The target navigation page is configured with an editing entry associated with each configurable module. The target navigation page is used to display the global information of the simulation model to be configured, including the basic data of each configurable module and the logical associations between each configurable module. The basic data includes at least quantity information, and the logical associations can include interfaces introduced by inheritance, types introduced by usage, etc.
[0049] In one example, based on the static data interface of the static mapping mechanism, the basic data of each configurable module can be read from the model data of the simulation model to be configured, and the corresponding target navigation page can be generated in combination with a predefined navigation page template. The target navigation page displays the basic data of each configurable module in the form of module cards and reflects the logical associations between each configurable module in the form of arrows.
[0050] Step S106, in response to a trigger operation for the target editing entry, jump from the target navigation page to the operation page of the target configurable module associated with the target editing entry, so as to edit the target configurable module in the operation page, and refresh the target navigation page based on the static mapping mechanism when the editing is completed, and continue to respond to the trigger operation for the new target editing entry until the target simulation model is constructed.
[0051] Among them, the editing entries include a type creation entry, an interface creation entry, a scenario creation entry, and a component introduction entry. In one example, in response to a trigger operation for any one of the type creation entry, the interface creation entry, the scenario creation entry, and the component introduction entry, this entry is the target editing entry, and the corresponding function interface of this entry is called to jump from the target navigation page to the operation page of the target configurable module associated with this entry, so as to facilitate the user to complete the editing operation of the target configurable module in the operation page, and when the editing operation is completed, the target navigation page corresponding to the simulation model to be configured can be regenerated based on the static mapping mechanism; repeat this process until the target simulation model is constructed.
[0052] The modeling method based on navigation guidance provided by the embodiments of the present invention provides a navigation page for users to display global information and logical associations between modules, and combines a fast editing entry design, enabling users to quickly complete the initial steps of the modeling task without following a fixed operation sequence, thereby meeting the "first step" operations of users based on different needs.
[0053] For ease of understanding, the embodiments of the present invention provide a specific implementation manner of a modeling method based on navigation guidance.
[0054] For the foregoing step S104, an embodiment of the present invention provides a specific implementation manner for generating a target navigation page corresponding to a to-be-configured simulation model based on a static mapping mechanism. Each time a user enters the model editor from the model list, the target navigation page is loaded by default, and the quantities and logical associations of modules such as display types, interfaces, scenarios, and components are displayed as the initial view after entering the editor.
[0055] In one implementation manner, the system extracts information on types, interfaces, scenarios, and components from the model data through a static data interface, and generates a target navigation page corresponding to the to-be-configured simulation model according to a predefined navigation page template. Specifically, the following steps 1 to 3 can be referred to:
[0056] Step 1: Invoke the static data interface based on the static mapping mechanism.
[0057] Step 2: Through the static data interface, read the basic data of each configurable module from the model data of the to-be-configured simulation model. In one example, after the user selects the to-be-configured simulation model, a folder corresponding to the to-be-configured simulation model can be created in the specified storage area to store the model data of the to-be-configured simulation model. On this basis, the basic data of each configurable module is read through the static data interface, such as the quantities of types, interfaces, scenarios, and components included in the to-be-configured simulation model.
[0058] Step 3: According to the predefined navigation page template, based on the basic data of each configurable module and the logical association between each configurable module, generate a target navigation page corresponding to the to-be-configured simulation model, the target navigation page. Among them, the navigation page template includes a layout template and a fixed structure. The target navigation page displays the basic data of each module in the form of module cards, and at the same time reflects the logical association between modules through arrows and other information. In specific implementation, the following steps 3.1 to 3.2 are included:
[0059] Step 3.1: Generate a module card corresponding to each configurable module based on the basic data to display the basic data of each configurable module through the module card. Taking the Leymus chinensis model as an example, refer to Figure 2 a schematic diagram of a target navigation page as shown, Figure 2 which shows the module cards corresponding to each configurable module included in the Leymus chinensis model. The number of elements in the corresponding module is displayed in the module card. For example, the module card corresponding to the type module shows that the existing number of types in the Leymus chinensis model is 5, the existing number of scenarios is 1, the existing number of interfaces is 0, the existing number of components is 0, etc.
[0060] Step 3.2: Determine the positions of the module cards corresponding to each configurable module in the target navigation page according to the layout template, and generate the connections between the module cards corresponding to each configurable module according to a fixed structure, so as to reflect the logical associations between the module cards corresponding to each configurable module through the arrows on the connections. Herein, the layout template is used to describe the positions of the module cards corresponding to each configurable module in the target navigation page, and the fixed structure is used to describe the logical associations between the module cards corresponding to each configurable module. The logical associations between each configurable module in different simulation models to be configured are the same. Therefore, the connections between the module cards corresponding to each configurable module can be directly generated according to a fixed interface, and arrows are marked on the connections to reflect the logical associations between the module cards corresponding to each configurable module, including the scenario usage type, component introduction scenario, or interface inheritance type, which is convenient for users to understand.
[0061] Please continue to refer to Figure 2 , Figure 2 The logical associations shown include: The logical association between the component module and the scenario module is: using the introduced type; the logical association between the component module and the type component is: using the introduced type; the logical association between the component module and the interface module is: integrating the introduced interface; the logical association between the interface module and the type module is: inheriting the interface; the logical association between the type module and the scenario module is: using the type.
[0062] Based on the navigation page provided by the embodiment of the present invention, an operation starting point driven by user requirements can be realized. Specifically, the target navigation page supports users to start operations from the editing entry of any module without setting a fixed operation sequence. The user can select a suitable "first step" according to the current requirements. For example, when it is necessary to define a data model, the user can preferentially enter the type creation operation, or directly jump to the scenario module configuration during scenario construction. Further, each editing entry provided by the embodiment of the present invention runs independently and has no strict dependencies on each other, ensuring that the user can flexibly determine the operation path without having to complete tasks according to a predefined process.
[0063] On this basis, for the foregoing step S106, the embodiment of the present invention provides an implementation manner of jumping from the target navigation page to the operation page of the target configurable module associated with the target editing entry in response to a trigger operation for the target editing entry, including: responding to the trigger operation for the target editing entry, calling the function interface corresponding to the target editing entry, and jumping from the target navigation page to the operation page of the target configurable module associated with the target editing entry through the function interface. The function interfaces include a type creation interface, an interface creation interface, a scenario creation interface, and a component introduction interface.
[0064] In specific implementation, independent quick editing entries are designed for each module in the target navigation page, such as entries like "New Type", "New Interface", "Introduce Component", and "New Scenario". Users can directly operate by selecting the entry according to their needs, without expanding the view tree to search for modules one by one.
[0065] The quick editing entry calls relevant function interfaces through the underlying API (Application Programming Interface), such as the type creation interface, interface creation interface, scenario creation interface, or component introduction interface. After the operation is completed, the module status in the target navigation page and the editor is refreshed. In the embodiment of the present invention, the data content is synchronously refreshed after reloading the model or updating the module data to ensure that the basic data of each displayed module is consistent with the actual model.
[0066] In one implementation manner, during the process of editing the target configurable module, a page switching operation can also be responded to realize the switching between the operation page of the target configurable module and the target navigation page. For example, assume that the current is the operation page, then by responding to the page switching operation, it can jump from the operation page to the target navigation page, and by responding to the page switching operation again, it can jump from the target navigation page to the operation page. Users can return to the target navigation page through shortcuts or menu items at any operation stage of the model editor to view global information or re-enter the operation entry of a certain module.
[0067] In one implementation manner, a custom operation for the target navigation page can also be responded to adjust the position of the module card corresponding to each configurable module in the target navigation page, and / or adjust the display and hiding state of the module card corresponding to each configurable module, where the display and hiding state means whether the module card is displayed in the target navigation page.
[0068] In one example, a drag operation on the module card of any configurable module can be responded to adjust the position of the module card in the target navigation page. Optionally, during the process of the user dragging and rotating the module card, collision detection can be performed on the dragged module card in real time to avoid overlap between two or more module cards; or when the user releases the dragged module card, it can be detected whether the distance between the module card and other module cards is within a predetermined distance, and in this case, the module card is adsorbed around the module cards according to the predetermined spacing.
[0069] In another example, a scaling operation on the module card of any configurable module can be responded to adjust the size of the module card in the target navigation page to highlight the key module cards.
[0070] In another aspect, it is possible to respond to a setting operation on a module card for any configurable module to hide or display the module card on the target navigation page.
[0071] Embodiments of the present invention support users in customizing the display content and layout of the target navigation page, such as adjusting the module display order or hiding some infrequently used modules, to meet personalized needs.
[0072] In summary, the core of the modeling method based on navigation guidance provided by embodiments of the present invention lies in: the static mapping mechanism between the target navigation page and the model data, the design of a fixed display template for the module association logic, the call and synchronization mechanism of the quick entry and the underlying function interface, and the modular operation logic that supports users to freely select the starting point. Through the above technical solutions, the target navigation page of the embodiments of the present invention provides users with global information and static logical associations between modules every time they enter the model, and combines quick operation entries to support users in selecting any module as the operation starting point according to current needs. Compared with the prior art, the embodiments of the present invention significantly improve the operation flexibility and efficiency of users, optimize the use experience of the modeling tool, enable beginners to quickly understand the model structure and complete the "first step" of the task, and avoid reducing the use experience due to complex operation paths.
[0073] Based on the foregoing embodiments, embodiments of the present invention provide a modeling device based on navigation guidance. The device is applied to a terminal, and the content displayed on the graphical user interface of the terminal includes a model list. Refer to Figure 3 the structural schematic diagram of a modeling device based on navigation guidance shown in
[0074] A model selection module 302, configured to respond to a selection operation on a simulation model included in the model list to determine a to-be-configured simulation model. The to-be-configured simulation model includes multiple configurable modules, including a type module, an interface module, a scenario module, and a component module;
[0075] A navigation page display module 304, configured to generate a target navigation page corresponding to the to-be-configured simulation model based on the static mapping mechanism and display the target navigation page through the graphical user interface. The target navigation page is configured with an editing entry associated with each configurable module, and the target navigation page is used to display the global information of the to-be-configured simulation model, including the basic data of each configurable module and the logical association between each configurable module;
[0076] The model configuration module 306 is used to respond to the trigger operation for the target editing entry, jump from the target navigation page to the creation page of the target configurable module associated with the target editing entry, create the elements included in the target configurable module within the creation page, and when the elements are created, refresh the target navigation page based on the static mapping mechanism, and continue to respond to the trigger operation for the new target editing entry until the target simulation model is constructed.
[0077] The modeling device based on navigation guidance provided by the embodiments of the present invention provides a navigation page for the user to display the global information and the logical association between modules, and combined with the design of quick editing entries, enables the user to quickly complete the starting steps of the modeling task without following a fixed operation sequence, thereby meeting the "first step" operations of the user based on different needs.
[0078] In one implementation manner, the navigation page display module 304 is specifically used for:
[0079] Call the static data interface based on the static mapping mechanism;
[0080] Through the static data interface, read the basic data of each configurable module from the model data of the to-be-configured simulation model;
[0081] According to the predefined navigation page template, based on the basic data of each configurable module and the logical association between each configurable module, generate the target navigation page corresponding to the to-be-configured simulation model. The target navigation page displays the basic data of each configurable module in the form of module cards, and reflects the logical association between each configurable module in the form of arrows.
[0082] In one implementation manner, the navigation page template includes a layout template and a fixed structure; the navigation page display module 304 is specifically used for:
[0083] Generate a module card corresponding to each configurable module based on the basic data to display the basic data of each configurable module through the module card;
[0084] Determine the position of the module card corresponding to each configurable module in the target navigation page according to the layout template, and generate the connection lines between the module cards corresponding to each configurable module according to the fixed structure, so as to reflect the logical association between the module cards corresponding to each configurable module through the arrows on the connection lines.
[0085] In one implementation manner, the model configuration module 306 is specifically used for:
[0086] Respond to the trigger operation for the target editing entry, call the function interface corresponding to the target editing entry, and jump from the target navigation page to the operation page of the target configurable module associated with the target editing entry through the function interface;
[0087] Among them, the target editing entry includes a type creation entry, an interface creation entry, a scenario creation entry, and a component introduction entry, and the function interfaces include a type creation interface, an interface creation interface, a scenario creation interface, and a component introduction interface.
[0088] In one implementation, it further includes a page switching module for:
[0089] During the process of editing the target configurable module, in response to a page switching operation, to implement the switching between the operation page of the target configurable module and the target navigation page.
[0090] In one implementation, it further includes a page customization module for:
[0091] In response to a customization operation for the target navigation page, to adjust the position of the module card corresponding to each configurable module in the target navigation page, and / or, to adjust the display and hiding state of the module card corresponding to each configurable module.
[0092] For the device provided by the embodiments of the present invention, the implementation principle and the technical effects generated are the same as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments.
[0093] The embodiments of the present invention provide a terminal. Specifically, the terminal includes a processor and a storage device; a computer program is stored on the storage device, and the computer program executes the method according to any one of the foregoing implementation manners when being run by the processor.
[0094] Figure 4 FIG. 24 is a schematic structural diagram of a terminal provided by an embodiment of the present invention. The terminal 100 includes: a processor 40, a memory 41, a bus 42, and a communication interface 43. The processor 40, the communication interface 43, and the memory 41 are connected through the bus 42; the processor 40 is used to execute an executable module stored in the memory 41, such as a computer program.
[0095] Among them, the memory 41 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 43 (which may be wired or wireless), a communication connection between the system network element and at least one other network element is realized, and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used.
[0096] The bus 42 can be an ISA bus, a PCI bus, an EISA bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 4 it is only represented by a single bidirectional arrow in Figure 4 , but it does not mean that there is only one bus or one type of bus.
[0097] Among them, the memory 41 is used to store a program. After receiving an execution instruction, the processor 40 executes the program. The method executed by the device defined by the flow process disclosed in any one of the foregoing embodiments of the present invention can be applied to the processor 40 or implemented by the processor 40.
[0098] The processor 40 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 40 or the instructions in the form of software. The above-mentioned processor 40 can be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it can also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 41, and the processor 40 reads the information in the memory 41 and combines its hardware to complete the steps of the above method.
[0099] The computer program product of the readable storage medium provided by the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the foregoing method embodiments. For specific implementation, reference can be made to the foregoing method embodiments, which will not be elaborated herein.
[0100] When the above-described function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0101] Finally, it should be noted that the above-described embodiments are only specific implementation manners of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the technical field can still modify the technical solutions described in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims
1. A navigation-guided modeling method, characterized in that The method is applied to a terminal, and the content displayed on the graphical user interface of the terminal includes a model list. The method includes: Responding to a selection operation for a simulation model included in the model list to determine a to-be-configured simulation model, where the to-be-configured simulation model includes multiple configurable modules, including a type module, an interface module, a scenario module, and a component module; Generating a target navigation page corresponding to the to-be-configured simulation model based on a static mapping mechanism, and displaying the target navigation page through the graphical user interface. The target navigation page is configured with an editing entry associated with each of the configurable modules, and the target navigation page is used to display the global information of the to-be-configured simulation model, including the basic data of each of the configurable modules and the logical association between each of the configurable modules; Responding to a trigger operation for a target editing entry, jumping from the target navigation page to an operation page of a target configurable module associated with the target editing entry, so as to edit the target configurable module in the operation page, and refreshing the target navigation page based on the static mapping mechanism when the editing is completed, and continuing to respond to a trigger operation for a new target editing entry until a target simulation model is constructed.
2. The modeling method based on navigation guidance according to claim 1, wherein Generating a target navigation page corresponding to the to-be-configured simulation model based on a static mapping mechanism includes: Invoking a static data interface based on a static mapping mechanism; Through the static data interface, reading the basic data of each of the configurable modules from the model data of the to-be-configured simulation model; Generating a target navigation page corresponding to the to-be-configured simulation model according to a predefined navigation page template based on the basic data of each of the configurable modules and the logical association between each of the configurable modules. The target navigation page displays the basic data of each of the configurable modules in the form of module cards, and reflects the logical association between each of the configurable modules in the form of arrows.
3. The modeling method based on navigation guidance according to claim 2, wherein The navigation page template includes a layout template and a fixed structure; generating a target navigation page corresponding to the to-be-configured simulation model according to a predefined navigation page template based on the basic data of each of the configurable modules and the logical association between each of the configurable modules includes: Generating a module card corresponding to each of the configurable modules based on the basic data, so as to display the basic data of each of the configurable modules through the module card; Determining the position of the module card corresponding to each of the configurable modules in the target navigation page according to the layout template, and generating a connection line between the module cards corresponding to each of the configurable modules according to the fixed structure, so as to reflect the logical association between the module cards corresponding to each of the configurable modules through the arrows on the connection line.
4. The modeling method based on navigation guidance according to claim 1, wherein Responding to a trigger operation for a target editing entry, jumping from the target navigation page to an operation page of a target configurable module associated with the target editing entry includes: In response to a trigger operation for a target editing entry, call the function interface corresponding to the target editing entry, and jump from the target navigation page to the operation page of the target configurable module associated with the target editing entry through the function interface; Among them, the target editing entries include a type creation entry, an interface creation entry, a scenario creation entry, and a component introduction entry, and the function interfaces include a type creation interface, an interface creation interface, a scenario creation interface, and a component introduction interface.
5. The modeling method based on navigation guidance according to claim 1, characterized in that The method further includes: During the process of editing the target configurable module, respond to a page switching operation to implement the switching between the operation page of the target configurable module and the target navigation page.
6. The modeling method based on navigation guidance according to claim 1, wherein The method further includes: Respond to a customization operation for the target navigation page to adjust the position of the module card corresponding to each configurable module in the target navigation page, and / or adjust the display and hiding state of the module card corresponding to each configurable module.
7. A navigation-guided modeling device, characterized in that, The device is applied to a terminal, and the content displayed on the graphical user interface of the terminal includes a model list. The device includes: A model selection module, configured to respond to a selection operation for a simulation model included in the model list, and determine a to-be-configured simulation model, where the to-be-configured simulation model includes multiple configurable modules, including a type module, an interface module, a scenario module, and a component module; A navigation page display module, configured to generate a target navigation page corresponding to the to-be-configured simulation model based on a static mapping mechanism, and display the target navigation page through the graphical user interface. The target navigation page is configured with an editing entry associated with each configurable module, and the target navigation page is used to display the global information of the to-be-configured simulation model, including the basic data of each configurable module and the logical association between each configurable module; A model configuration module, configured to respond to a trigger operation for a target editing entry, jump from the target navigation page to the creation page of the target configurable module associated with the target editing entry, create elements included in the target configurable module in the creation page, and when the elements are created, refresh the target navigation page based on the static mapping mechanism, and continue to respond to a trigger operation for a new target editing entry until a target simulation model is constructed.
8. The modeling device based on navigation guidance according to claim 7, wherein, The navigation page display module is specifically configured to: Call a static data interface based on a static mapping mechanism; Through the static data interface, read the basic data of each configurable module from the model data of the to-be-configured simulation model; According to a predefined navigation page template, generate a target navigation page corresponding to the to-be-configured simulation model based on the basic data of each configurable module and the logical association between each configurable module. The target navigation page displays the basic data of each configurable module in the form of a module card, and reflects the logical association between each configurable module in the form of an arrow.
9. A terminal, characterized in that, It includes a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor. The processor executes the computer-executable instructions to implement the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the method according to any one of claims 1 to 6.