Visual control method for simulation test process

By introducing visual control methods during simulation experiments, defining basic components and building control charts, the problems of complex test processes and difficult maintenance in simulation experiments of complex equipment systems are solved, and automated and efficient simulation verification is achieved.

CN119862686AInactive Publication Date: 2025-04-22CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST

Patent Information

Application Number
CN202411779837.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In simulation experiments of complex equipment systems, with the increase in the number of simulation nodes and events, the running time of a single simulation is long, and traditional experimental methods are complex and difficult to maintain.

Method used

A visual control method for simulated test process is proposed, and dynamic orchestration and design reuse of the test process is realized by defining basic components, building control charts, executing test processes and updating component libraries.

Benefits of technology

It improves the execution process automation level of complex simulation systems, and improves the reusability and testing efficiency of simulation verification work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119862686A_ABST
    Figure CN119862686A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of simulation, and discloses a visual control method for a simulation test process, which performs test process description and visual display in a composite mode of test components, attributes and behavior logic to realize dynamic arrangement and design reuse of the test process. And support is provided for design and control of a simulation verification process of a full development cycle of a product. The technical problem that a traditional test method generally relates to writing a large number of codes to define test cases, and consequently maintenance and change complexity is caused is solved, the automation level of the execution process of a complex simulation system is improved, and the reusability and test efficiency of simulation verification work are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of simulation technology, and in particular to a visualization control method for a simulation test process. Background Art

[0002] Computer simulation technology has gradually become an effective verification method for the development and use of equipment systems. Using simulation verification technology, test verification work can be carried out simultaneously during the development of the system, problems can be discovered in a timely manner, and the design can be improved, which is conducive to shortening the development cycle and reducing costs. For simulation experiments of complex equipment systems, when the number of simulation nodes and simulation events of the simulation model increases, the running time of a single simulation is long. Traditional test methods usually involve writing a lot of code to define test cases, which leads to the complexity of maintenance and changes. Therefore, a more intuitive and easy-to-use method is needed to build a simulation test process. Summary of the invention

[0003] Purpose of the present invention: In view of the need for digital simulation verification during product development, the present invention proposes a simulation test process visualization control method for editing, running and managing the operation process of multi-task scenarios of the simulation system. The test process is described and visualized in a composite manner of test components, attributes and behavioral logic, to achieve dynamic arrangement and design reuse of the test process, provide support for the design and control of the simulation verification process throughout the product development cycle, improve the automation level of the execution process of complex simulation systems, and enhance the reusability and testing efficiency of simulation verification work.

[0004] The technical solution of the present invention is achieved in this way:

[0005] A visualization control method for a simulation test process comprises the following steps:

[0006] Define the basic components of the simulation test process;

[0007] Construct component-based simulation test process control chart;

[0008] Execute the simulation test process;

[0009] Build composite components and update component libraries.

[0010] As a further solution of the present invention: required components can also be selected from the component library according to the application scenario of the simulation test.

[0011] As a further solution of the present invention: by abstracting simulation test elements, simulation behaviors and running states, basic components of the simulation experiment process are defined, which include simulation execution components, startup components, reference components, sequence components, selection components, parallel components and loop components.

[0012] As a further solution of the present invention: the basic components all have node status attributes, including four states of idle, successful, failed, and running, which are used to intuitively display the current progress stage of the test;

[0013] Idle state: The idle state is the initial state of the node, indicating that the traversal process has not yet reached the component;

[0014] Success status: The simulation process has been successfully executed and completed, and the success status is returned;

[0015] Failure status: The simulation process fails to execute successfully and returns a failure status;

[0016] Running status: The running status means that the simulation process has not yet been completed.

[0017] As a further solution of the present invention: the simulation execution component: a node used to complete a certain simulation behavior or task, is a child node of the test tree structure;

[0018] The startup component: represents the starting position of the entire test process and is the root node of the test tree structure. Each simulation experiment process has only one startup component.

[0019] The sequence component: indicates that each of its child nodes is executed in order from left to right; if any of its child nodes returns a failure state, the node state of the sequence component is changed to a failure state, and the execution of subsequent child nodes is stopped; if all of the child nodes of the sequence component return a success state, the node state of the sequence component is a success state;

[0020] The parallel component: indicates that all child nodes are executed at the same time. If all child nodes return failure, the current execution node also fails.

[0021] The selection component: indicates that a sub-node whose execution condition returns true is selected from left to right for execution, and the result of the current sub-node is immediately returned when the first sub-node is successfully executed or is being executed; if all sub-nodes return failure, the current selected node is also failed;

[0022] The loop component: indicates that its child nodes are repeatedly executed until a given condition is met. When the given condition is met, the loop component returns a success status. If a loop count condition is set, the loop component node returns a success status after the child node loops for a corresponding number of times. If a duration condition is set, the loop component node returns a success status after the child node loops for a specified time requirement.

[0023] The reference component refers to a reference to other existing components. When a simulation process needs to be executed at different stages of the experiment, the reference component is used. By defining the name of the referenced component, the constructed component can be directly reused without repeated definition.

[0024] As a further solution of the present invention: the simulation execution component specifies five types of atomic operations: test variables, constraints, output records, judgment conditions, and simulation processes, among which the judgment conditions and simulation processes are necessary atomic operations, and the rest are optional atomic operations;

[0025] Experimental variables: used to assign values ​​to variables related to factors and conditions manipulated by the experimenter;

[0026] Constraints: used to specify constraints related to the simulation, including test run time, simulation step size, random seed, and number of simulations;

[0027] Output record: used to set output parameters, save format and save path; output parameters include node status, parameters of interest to the experimenter, fault conditions, etc.

[0028] Judgment condition: The judgment condition component contains the execution condition of the current node. If the execution condition is met, it returns "true", and the current node can execute the corresponding simulation process. Otherwise, it returns "false", and the current node cannot execute the simulation process, and the node status changes to a failed state.

[0029] Simulation process: represents a simulation behavior or task. When the judgment condition returns "true", the given simulation process is executed.

[0030] As a further solution of the present invention: the simulation test process control chart is constructed specifically as follows:

[0031] Define the simulation task scenario as a visual workspace panel;

[0032] By dragging and dropping basic components or composite components in the component library, you can set the connections between components to form a specific workflow.

[0033] Set the properties and atomic operations of each component according to the test plan and generate the simulation engine executable program.

[0034] As a further solution of the present invention: the execution of the simulation test process is specifically as follows: the simulation engine reads the simulation test process script, traverses from the top of the graph, detects each component judgment condition in order from top to bottom and from left to right, executes the simulation instance program, and forms an output record result.

[0035] As a further solution of the present invention: the component library update is specifically as follows: after the simulation test process is constructed, multiple configured basic nodes and connection relationships are saved as composite components, added to the component library, and the composite components can be directly called and modified when the subsequent test process is arranged.

[0036] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.

[0037] A readable storage medium stores a computer program thereon, characterized in that the computer program implements the steps of the above method when executed by a processor.

[0038] Beneficial effects of the present invention:

[0039] 1. The present invention combines simulation test control elements, defines 7 basic components, and can generate composite components as needed. Users do not need to write complex codes, select the required components from the visual component library, and set various properties and functions in the design area to realize the scene arrangement of the simulation test process, and realize the automatic simulation test execution of the system.

[0040] 2. The visualized and modularized test process design method of the present invention improves the usability and flexibility of the test procedure and can also improve the test efficiency.

[0041] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of a visualization control method for a simulation test process of the present invention;

[0043] Figure 2 It is a schematic diagram of the basic component metamodel of the present invention;

[0044] Figure 3 This is a schematic diagram of the initial state control of the simulation test of the present invention;

[0045] Figure 4 This is a schematic diagram of state control update for the simulation test of the present invention. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0047] First, see Appendix Figure 1-4 , the present invention discloses a visualization control method for a simulation test process.

[0048] Embodiment 1:

[0049] The present invention discloses a visualization control method for a simulation test process, comprising the following steps:

[0050] Step 1: Define the basic components of the simulation test process

[0051] Define the basic components of the simulation test process or select the required components from the component library according to the application scenario of the simulation test. By abstracting the simulation test elements, simulation behavior and running status, the basic components of the simulation experiment process are defined, including simulation execution components, startup components, reference components, sequence components, selection components, parallel components and loop components.

[0052] Each component has a node status attribute, including idle, successful, failed, and running, which is used to intuitively display the current progress stage of the experiment.

[0053] a) Idle state: The idle state is the initial state of the node, indicating that the traversal process has not yet reached the component;

[0054] b) Success status: The simulation process has been successfully executed and completed, and the success status is returned;

[0055] c) Failure status: The simulation process fails to execute successfully and returns a failure status;

[0056] d) Running status: The running status indicates that the simulation process has not yet been completed.

[0057] The following is a detailed description of each component:

[0058] 1) Simulation execution component: a node used to complete a simulation behavior or task, which is a child node of the test tree structure.

[0059] The simulation execution component specifies five types of atomic operations: test variables, constraints, output records, judgment conditions, and simulation processes. Among them, judgment conditions and simulation processes are necessary atomic operations, and the rest are optional atomic operations.

[0060] a) Experimental variables: used to assign values ​​to variables related to factors and conditions manipulated by the experimenter.

[0061] b) Constraints: used to specify constraints related to the simulation, including test run time, simulation step size, random seed, and number of simulations;

[0062] c) Output record: used to set output parameters, save format and save path. Output parameters include node status, parameters of interest to the experimenter, fault conditions, etc.

[0063] d) Judgment condition: The judgment condition component contains the execution condition of the current node. If the execution condition is met, it returns "true", and the current node can execute the corresponding simulation process. Otherwise, it returns "false", and the current node cannot execute the simulation process, and the node status changes to a failed state;

[0064] e) Simulation process: represents a simulation behavior or task. When the judgment condition returns "true", the given simulation process is executed.

[0065] Components correspond to semantic expressions:

[0066]

[0067] 2) Startup component: It indicates the starting position of the entire test process and is the root node of the test tree structure. Each simulation experiment process has only one startup component.

[0068] Components correspond to semantic expressions:

[0069]

[0070] 3) Sequence component: means that each of its child nodes is executed in order from left to right. If any of its child nodes returns a failure status, the node status of the sequence component is changed to a failure status, and the execution of subsequent child nodes is stopped. If all child nodes of the sequence component return a success status, the node status of the sequence component is a success status.

[0071] Components correspond to semantic expressions:

[0072]

[0073] 4) Parallel component: means executing all child nodes at the same time. If all child nodes return failure, the current execution node also fails.

[0074] Components correspond to semantic expressions:

[0075]

[0076] 5) Selection component: It means to select a child node whose execution condition returns true from left to right for execution. When encountering the first child node that is successfully executed or being executed, the result of the current child node is immediately returned. If all child nodes return failure, the current selected node also fails.

[0077] Components correspond to semantic expressions:

[0078]

[0079]

[0080] 6) Loop component: means to repeatedly execute its child nodes until the given conditions are met. When the given conditions are met, the loop component returns a success status. If the loop count condition is set, the loop component node returns a success status after the child node loops for the corresponding number of times. If the duration condition is set, the child node returns a success status after the loop executes for the specified time requirement.

[0081] Components correspond to semantic expressions:

[0082]

[0083] 7) Reference component: represents a reference to other existing components. When a simulation process needs to be executed at different stages of the experiment, reference components are used. By defining the name of the referenced component, the built component can be reused directly without repeated definition.

[0084] Components correspond to semantic expressions:

[0085]

[0086] Step 2: Establish a component-based simulation test process control chart

[0087] The simulation task scenario is defined as a visual workspace panel. By dragging basic components or composite components in the component library and setting connections between components, a specific workflow is formed.

[0088] Set the properties and atomic operations of each component according to the test plan and generate the simulation engine executable program.

[0089] Step 3: Execute the simulation test process

[0090] The simulation engine reads the simulation test process script, starts traversing from the top of the graph (i.e., the "startup component"), detects each component judgment condition in order from top to bottom and from left to right, executes the simulation instance program, and generates output record results.

[0091] Step 4: Build composite components and update component libraries

[0092] After the simulation test process is constructed, multiple configured basic nodes and connection relationships are saved as composite components and added to the component library. The composite components can be directly called and modified during the subsequent test process arrangement.

[0093] Components correspond to semantic expressions:

[0094]

[0095] Example 2

[0096] The present invention discloses a visualization control method for a simulation test process, comprising the following steps:

[0097] Step 1: Define the basic components of the simulation test process or extract the basic components from the component library.

[0098] According to the requirements of a certain task simulation test, the required basic components are selected from the component library, including simulation execution components, startup components, sequence components and parallel components.

[0099] 1) The simulation execution component is used to call the simulation process execution block and is the leaf node of the test tree structure.

[0100] 2) Startup component: It indicates the starting position of the entire test process and is the root node of the test tree structure. Each simulation experiment process has only one startup component.

[0101] 3) Sequence component: means that each of its child nodes is executed in order from left to right. If any of its child nodes returns a failure status, the node status of the sequence component is changed to a failure status, and the execution of subsequent child nodes is stopped. If all child nodes of the sequence component return a success status, the node status of the sequence component is a success status.

[0102] Step 2: Establish a component-based simulation test process control chart and configure component properties and atomic operations.

[0103] The simulation task scenario is defined as a visual workspace panel. By dragging basic components or composite components in the component library and setting connections between components, a specific workflow is formed.

[0104] According to the test plan, the simulation test process includes four segments: cruising, detection, strike, and return. Four simulation execution components are constructed, the corresponding simulation running instances are associated, and the properties and atomic operations of the simulation execution components are set.

[0105] The simulation experiment process control chart is established, and the simulation experiment process script is generated according to the corresponding semantic specifications of the components.

[0106] Step 3: Execute the simulation test process

[0107] The simulation engine reads the simulation test process script, starts traversing from the top of the graph (i.e., the "startup component"), detects each component judgment condition in order from top to bottom and from left to right, executes the simulation instance program, and generates output record results.

[0108]

[0109]

[0110] Step 4: Build composite components and update component libraries

[0111] After the simulation test process is constructed, the combination of configured cruise, detection, strike, return components and connection components is generated as a composite component and added to the component library, which can be directly called for editing during the subsequent test process arrangement.

[0112] In a second aspect, the present invention discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.

[0113] In a third aspect, the present invention discloses a readable storage medium having a computer program stored thereon, characterized in that the computer program implements the steps of the above method when executed by a processor.

[0114] So far, the purpose of the present invention has been achieved.

[0115] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A visualization control method for a simulation test process, characterized in that: The steps include: Define the basic components of the simulation test process; Construct component-based simulation test process control chart; Execute the simulation test process; Build composite components and update component libraries.

2. The visualization control method of a simulation test process according to claim 1 is characterized in that: You can also select the required components from the component library according to the application scenario of the simulation experiment.

3. A visualization control method for a simulation test process according to claim 1 or 2, characterized in that: By abstracting the simulation test elements, simulation behaviors and running states, the basic components of the simulation experiment process are defined, which include simulation execution components, startup components, reference components, sequence components, selection components, parallel components and loop components.

4. The visualization control method of a simulation test process according to claim 3 is characterized in that: The basic components all have node status attributes, including four states: idle, successful, failed, and running, which are used to intuitively display the current progress stage of the experiment; Idle state: The idle state is the initial state of the node, indicating that the traversal process has not yet reached the component; Success status: The simulation process has been successfully executed and completed, and the success status is returned; Failure status: The simulation process fails to execute successfully and returns a failure status; Running status: The running status means that the simulation process has not yet been completed.

5. A visualization control method for a simulation test process according to claim 4, characterized in that: The simulation execution component is a node used to complete a simulation behavior or task, and is a child node of the test tree structure; The startup component: represents the starting position of the entire test process and is the root node of the test tree structure. Each simulation experiment process has only one startup component. The sequence component: indicates that each of its child nodes is executed in order from left to right; If any of its child nodes returns a failed state, the node state of the sequence component changes to a failed state, and the execution of subsequent child nodes stops; if all child nodes of the sequence component return a successful state, the node state of the sequence component is a successful state; The parallel component: indicates that all child nodes are executed at the same time. If all child nodes return failure, the current execution node also fails. The selection component: indicates that a sub-node whose execution condition returns true is selected from left to right for execution, and the result of the current sub-node is immediately returned when the first sub-node is successfully executed or is being executed; if all sub-nodes return failure, the current selected node is also failed; The loop component: indicates that its child nodes are repeatedly executed until a given condition is met. When the given condition is met, the loop component returns a success status. If a loop count condition is set, the loop component node returns a success status after the child node loops for a corresponding number of times. If a duration condition is set, the loop component node returns a success status after the child node loops for a specified time requirement. The reference component refers to a reference to other existing components. When a simulation process needs to be executed at different stages of the experiment, the reference component is used. By defining the name of the referenced component, the constructed component can be directly reused without repeated definition.

6. A visualization control method for a simulation test process according to claim 5, characterized in that: The simulation execution component specifies five types of atomic operations: test variables, constraints, output records, judgment conditions, and simulation processes, among which judgment conditions and simulation processes are necessary atomic operations, and the rest are optional atomic operations; Experimental variables: used to assign values ​​to variables related to factors and conditions manipulated by the experimenter; Constraints: used to specify constraints related to the simulation, including test run time, simulation step size, random seed, and number of simulations; Output record: used to set output parameters, save format and save path; output parameters include node status, parameters of interest to the experimenter, fault conditions, etc. Judgment condition: The judgment condition component contains the execution condition of the current node. If the execution condition is met, it returns "true", and the current node can execute the corresponding simulation process. Otherwise, it returns "false", and the current node cannot execute the simulation process, and the node status changes to a failed state. Simulation process: represents a simulation behavior or task. When the judgment condition returns "true", the given simulation process is executed.

7. A visualization control method for a simulation test process according to claim 6, characterized in that: The simulation test process control chart is constructed specifically as follows: Define the simulation task scenario as a visual workspace panel; By dragging and dropping basic components or composite components in the component library, you can set the connections between components to form a specific workflow. Set the properties and atomic operations of each component according to the test plan and generate the simulation engine executable program.

8. A visualization control method for a simulation test process according to claim 7, characterized in that: The specific execution of the simulation test process is as follows: the simulation engine reads the simulation test process script, traverses from the top of the graph, detects each component judgment condition in order from top to bottom and from left to right, executes the simulation instance program, and forms an output record result.

9. A visualization control method for a simulation test process according to claim 8, characterized in that: The component library update is specifically as follows: after the simulation test process is constructed, multiple configured basic nodes and connection relationships are saved as composite components and added to the component library. The composite components can be directly called and modified during the subsequent test process arrangement.

Citation Information

Patent Citations

  • Collaborative simulation operation system

    CN115712492A

  • Customized visual simulation application arrangement system and method

    CN116702250A

  • Simulation process-based training activity resource dynamic management system and method

    CN117931380A

  • Cross-domain modularization research and development optimization method

    CN118502750A

  • Graphical modeling method and device based on discrete event simulation engine

    CN118551555A

Cited By

  • Echo method and system based on simulation test data

    CN120197254A

  • Test process arrangement method and system based on hierarchical control domain

    CN121210328A

  • Test flow arrangement method and system based on hierarchical control domain

    CN121210328B