A cargo transportation simulation method and device, electronic equipment and storage medium
By using a simulation method that configures flow control strategies in a warehousing and logistics scenario, the problem of cargo accumulation caused by transmission line speed mismatch was solved, thereby improving cargo transportation efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU HIKROBOT TECH CO LTD
- Filing Date
- 2025-09-08
- Publication Date
- 2026-06-02
Smart Images

Figure CN121106964B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of simulation modeling technology, and in particular to a cargo transportation simulation method, apparatus, electronic device, and storage medium. Background Technology
[0002] In warehousing and logistics scenarios, goods are transported through various conveyor systems. The flexibility and intelligence of cargo flow control during transportation determine the efficiency of cargo transport in these scenarios. For example, goods produced at a manufacturing site are transported to processing machines via conveyor lines for processing. If the speed at which the conveyor lines transport goods exceeds the processing speed of the machines, goods will accumulate on the conveyor lines, necessitating flow control.
[0003] Therefore, there is an urgent need for a method to simulate cargo transfer in warehousing and logistics scenarios in order to control the flow of goods in warehousing and logistics. Summary of the Invention
[0004] The purpose of this application is to provide a cargo transportation simulation method, apparatus, electronic device, and storage medium to simulate the cargo transportation process in a warehousing and logistics scenario, achieve flow control of cargo transportation, and improve the efficiency of cargo transportation. The specific technical solution is as follows:
[0005] In a first aspect, to achieve the above objectives, embodiments of this application provide a cargo transportation simulation method, applied to an electronic device. The method includes: displaying a first interface in response to a simulation configuration instruction for configuring a flow control strategy for cargo transportation in a target scenario; wherein the first interface includes a start simulation button and a strategy configuration option for the flow control strategy; the flow control strategy includes: controlling a target port of a connected entity in the target scenario when the flow of cargo in the transmission line meets a trigger condition during cargo transportation simulation of the target scenario; generating a flow control strategy according to the trigger condition and target port indicated by the strategy configuration instruction in response to a strategy configuration instruction for the strategy configuration option; and performing cargo transportation simulation of the target scenario according to the flow control strategy configured in the first interface in response to a start simulation instruction for the start simulation button, and displaying a second interface; wherein the cargo is transported between entities in the second interface.
[0006] Optionally, the policy configuration options for the flow control policy include: a first configuration option for the trigger condition and a second configuration option for the port;
[0007] The step of generating a traffic control policy in response to a policy configuration instruction for the policy configuration option, according to the trigger condition and target port indicated by the policy configuration instruction, includes: in response to a first condition configuration instruction for the first configuration option, determining the trigger condition indicated by the first condition configuration instruction; in response to a first port configuration instruction for the second configuration option, determining the port indicated by the first port configuration instruction as the target port; and generating a traffic control policy according to the trigger condition and the target port.
[0008] Optionally, determining the trigger condition indicated by the first condition configuration instruction in response to the first configuration option includes: displaying a third interface in response to a first jump instruction for the first configuration option; wherein the third interface includes: a first configuration window for the first trigger condition; determining the target transmission line indicated by the first object selection instruction as a first judgment object in response to a first object configuration first sub-option in the first configuration window; determining the judgment condition indicated by the first condition configuration instruction as a first judgment condition in response to a first condition configuration first sub-option in the first configuration window; generating the first trigger condition according to the first judgment object and the first judgment condition in response to a first generation instruction for a generation button for generating trigger conditions in the third interface; wherein, when the first judgment object satisfies the first judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the first trigger condition.
[0009] Optionally, after displaying the third interface in response to the first jump instruction for the first configuration option, the method further includes: in response to an add instruction for an add button for adding judgment conditions in the third interface, displaying a second configuration window for the second trigger condition in the third interface; wherein the second configuration window includes: a second sub-option for object configuration, a second sub-option for condition configuration, and a first sub-option for relationship configuration; in response to a second object selection instruction for the second object configuration sub-option, determining the target transmission line indicated by the second object selection instruction as the second judgment object; in response to a second condition configuration instruction for the second condition configuration sub-option, determining the judgment condition indicated by the second condition configuration instruction as the second judgment condition; in response to a relationship configuration instruction for the first relationship configuration sub-option, determining the logical relationship indicated by the relationship configuration instruction as the first logical relationship between the first trigger condition and the second trigger condition; in response to a second generation instruction for a generation button for generating trigger conditions in the third interface, generating the second trigger condition according to the second judgment object and the second judgment condition; wherein, when the second judgment object satisfies the second judgment condition, determining that the flow rate of goods in the target transmission line satisfies the second trigger condition.
[0010] Optionally, the step of determining the target transmission line indicated by the first object selection instruction as the first judgment object in response to the first object configuration first sub-option in the first configuration window includes: displaying a fourth interface in response to the second jump instruction for configuring the first sub-option for the object; wherein the fourth interface includes each entity in the target scene; each entity includes a transmission line; and determining the target transmission line indicated by the first entity selection instruction as the first judgment object in response to the first entity selection instruction for the target transmission line in the fourth interface.
[0011] Optionally, the first sub-option of the condition configuration includes: a state configuration sub-option, a second sub-option of the relationship configuration, and a threshold configuration sub-option;
[0012] The step of determining the judgment condition indicated by the first condition configuration instruction as the first judgment condition in response to the first condition configuration sub-option in the first configuration window includes: displaying a status list in the third interface in response to the first display instruction for the status configuration sub-option; wherein the status list includes at least one of: normal status, congestion status, and total capacity; determining the status as the target status in response to the status selection instruction for any status in the status list; determining the value indicated by the threshold configuration instruction in response to the threshold configuration sub-option to obtain the judgment threshold; displaying a logical relationship list in the third interface in response to the second display instruction for the relationship configuration second sub-option; wherein the logical relationship list includes at least one of: greater than, greater than or equal to, equal to, less than or equal to, and less than; determining the logical relationship as the second logical relationship between the target status and the judgment threshold in response to the relationship selection instruction for any logical relationship in the logical relationship list; and generating the first judgment condition according to the target status of the first judgment object, the judgment threshold, and the second logical relationship between the target status and the judgment threshold.
[0013] Optionally, the third interface may also include a first delete button for deleting configured trigger conditions;
[0014] The method further includes: in response to a first deletion instruction for the first deletion button, deleting the triggering condition indicated by the first deletion instruction.
[0015] Optionally, the target port includes: a port that is opened and / or closed during cargo transportation; the second configuration option includes: an open port configuration sub-option and a closed port configuration sub-option;
[0016] The step of determining the port indicated by the first port configuration instruction as the target port in response to the first port configuration instruction for the second configuration option includes: determining the port indicated by the second port configuration instruction as an enabled port in response to the second port configuration sub-option; and determining the port indicated by the third port configuration instruction as a disabled port in response to the third port configuration sub-option.
[0017] Optionally, determining that the port indicated by the second port configuration instruction is an open port in response to the second port configuration sub-option includes: displaying a fourth interface in response to a third jump instruction for the open port configuration sub-option; wherein the fourth interface further includes ports connected to each entity in the target scene; and determining that the target port indicated by the first port selection instruction is an open port in response to a first port selection instruction for the target port in the fourth interface.
[0018] The step of determining that the port indicated by the third port configuration instruction is a closed port in response to the third port configuration sub-option includes: displaying the fourth interface in response to the fourth jump instruction for the closed port configuration sub-option; and determining that the target port indicated by the second port selection instruction is a closed port in response to the second port selection instruction for the target port in the fourth interface.
[0019] Optionally, after performing cargo transport simulation on the target scenario in accordance with the flow control strategy configured in the first interface in response to the start simulation command for the start simulation button, and displaying the second interface, the method further includes: displaying the simulation data of any entity in the second interface in response to the data display command for any entity in the second interface.
[0020] Optionally, the second interface may also include: a stop simulation button, and / or a simulation reset button;
[0021] After the method responds to the start simulation command for the start simulation button, performs cargo transportation simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, the method further includes: stopping the cargo transportation simulation on the target scenario in response to the stop simulation command for the stop simulation button; and deleting the simulation data for the cargo transportation simulation on the target scenario and the configured flow control strategy in response to the simulation reset command for the simulation reset button.
[0022] Optionally, the first interface may further include: a second delete button, and / or a copy button;
[0023] After generating a traffic control policy according to the triggering conditions and target port indicated by the policy configuration instruction in response to the policy configuration option, the method further includes: in response to the copy instruction for the copy button, copying the traffic control policy indicated by the copy instruction and displaying the copied traffic control policy in the first interface; in response to the second delete instruction for the second delete button, deleting the traffic control policy indicated by the second delete instruction.
[0024] Secondly, in order to achieve the above objectives, embodiments of this application provide a cargo transport simulation device, which is applied to an electronic device, and the device includes:
[0025] The first interface display module is used to display a first interface in response to a simulation configuration command for configuring a flow control strategy for cargo transmission in a target scenario; wherein the first interface includes a start simulation button and a strategy configuration option for the flow control strategy; the flow control strategy includes: during the cargo transmission simulation of the target scenario, when the flow of cargo in the target transmission line meets the triggering condition, controlling the target port of the connecting entity in the target scenario.
[0026] The policy configuration module is used to generate a flow control policy in response to a policy configuration instruction for the policy configuration option, according to the triggering conditions and target port indicated by the policy configuration instruction.
[0027] The simulation module is used to respond to the start simulation command of the start simulation button, perform cargo transfer simulation on the target scenario according to the flow control strategy configured in the first interface, and display the second interface; wherein, in the second interface, the cargo is transferred between various entities.
[0028] Optionally, the policy configuration options for the flow control policy include: a first configuration option for the trigger condition and a second configuration option for the port;
[0029] The policy configuration module is specifically configured to: in response to a first condition configuration instruction for the first configuration option, determine the triggering condition indicated by the first condition configuration instruction; in response to a first port configuration instruction for the second configuration option, determine that the port indicated by the first port configuration instruction is the target port; and generate a flow control policy according to the triggering condition and the target port.
[0030] Optionally, the strategy configuration module is specifically configured to: display a third interface in response to a first jump instruction for the first configuration option; wherein the third interface includes: a first configuration window for a first trigger condition; determining the target transmission line indicated by the first object selection instruction as a first judgment object in response to a first object selection instruction for a first sub-option of object configuration in the first configuration window; determining the judgment condition indicated by the first condition configuration instruction as a first judgment condition in response to a first condition configuration instruction for a first sub-option of condition configuration in the first configuration window; generating the first trigger condition according to the first judgment object and the first judgment condition in response to a first generation instruction for a generation button for generating trigger conditions in the third interface; wherein, when the first judgment object satisfies the first judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the first trigger condition.
[0031] Optionally, the device further includes: a configuration window display module, configured to, after the strategy configuration module executes a first jump instruction in response to the first configuration option and displays a third interface, execute an add instruction in response to an add button for adding judgment conditions in the third interface, and display a second configuration window for the second trigger condition in the third interface; wherein the second configuration window includes: a second sub-option for object configuration, a second sub-option for condition configuration, and a first sub-option for relationship configuration;
[0032] The object configuration module is configured to, in response to a second object selection instruction for configuring a second sub-option for the object, determine the target transmission line indicated by the second object selection instruction as the second judgment object;
[0033] The condition configuration module is configured to, in response to a second condition configuration instruction for the second sub-option of the condition configuration, determine the judgment condition indicated by the second condition configuration instruction as the second judgment condition;
[0034] A logical relationship configuration module is configured to, in response to a relationship configuration instruction for the first sub-option of the relationship configuration, determine that the logical relationship indicated by the relationship configuration instruction is a first logical relationship between the first triggering condition and the second triggering condition;
[0035] The trigger condition generation module is used to respond to a second generation instruction for the generation button in the third interface for generating trigger conditions, and generate the second trigger condition according to the second judgment object and the second judgment condition; wherein, when the second judgment object satisfies the second judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the second trigger condition.
[0036] Optionally, the strategy configuration module is specifically configured to: display a fourth interface in response to a second jump instruction for configuring a first sub-option for the object; wherein the fourth interface includes entities in the target scene; each entity includes a transmission line; and determine the target transmission line indicated by the first entity selection instruction as a first judgment object in response to a first entity selection instruction for a target transmission line in the fourth interface.
[0037] Optionally, the first sub-option of the condition configuration includes: a state configuration sub-option, a second sub-option of the relationship configuration, and a threshold configuration sub-option;
[0038] The strategy configuration module is specifically configured to: in response to a first display instruction for the state configuration sub-option, display a state list in the third interface; wherein the state list includes at least one of: normal state, congested state, and total capacity; in response to a state selection instruction for any state in the state list, determine that state as the target state; in response to a threshold configuration instruction for the threshold configuration sub-option, determine the value indicated by the threshold configuration instruction to obtain a judgment threshold; in response to a second display instruction for the relationship configuration second sub-option, display a logical relationship list in the third interface; wherein the logical relationship list includes at least one of: greater than, greater than or equal to, equal to, less than or equal to, and less than; in response to a relationship selection instruction for any logical relationship in the logical relationship list, determine that the logical relationship is a second logical relationship between the target state and the judgment threshold; and generate the first judgment condition according to the target state of the first judgment object, the judgment threshold, and the second logical relationship between the target state and the judgment threshold.
[0039] Optionally, the third interface may also include a first delete button for deleting configured trigger conditions;
[0040] The device further includes a condition deletion module, configured to delete the triggering condition indicated by the first deletion instruction in response to a first deletion instruction for the first deletion button.
[0041] Optionally, the target port includes: a port that is opened and / or closed during cargo transportation; the second configuration option includes: an open port configuration sub-option and a closed port configuration sub-option;
[0042] The policy configuration module is specifically configured to: in response to a second port configuration instruction for the enabled port configuration sub-option, determine that the port indicated by the second port configuration instruction is an enabled port; and in response to a third port configuration instruction for the disabled port configuration sub-option, determine that the port indicated by the third port configuration instruction is a disabled port.
[0043] Optionally, the strategy configuration module is specifically used to: display a fourth interface in response to a third jump instruction for the configured sub-option of the open port; wherein the fourth interface also includes ports connected to each entity in the target scene; and determine, in response to a first port selection instruction for the target port in the fourth interface, that the target port indicated by the first port selection instruction is an open port.
[0044] The policy configuration module is specifically used to: display the fourth interface in response to the fourth jump instruction for the configuration sub-option for the closed port; and determine that the target port indicated by the second port selection instruction is the closed port in response to the second port selection instruction for the target port in the fourth interface.
[0045] Optionally, the device further includes: a simulation data display module, configured to, after the simulation module executes a start simulation command in response to the start simulation button, performs cargo transportation simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, execute a data display command in response to any entity in the second interface, and display the simulation data of that entity in the second interface.
[0046] Optionally, the second interface may also include: a stop simulation button, and / or a simulation reset button;
[0047] The device further includes: a stop simulation module, configured to, after the simulation module executes a start simulation command in response to the start simulation button, performs cargo transportation simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, execute a stop simulation command in response to the stop simulation button to stop the cargo transportation simulation on the target scenario.
[0048] The simulation reset module is used to delete the simulation data for simulating cargo transportation in the target scenario and the configured flow control strategy in response to the simulation reset command of the simulation reset button.
[0049] Optionally, the first interface may also include: a second delete button, and / or a copy button.
[0050] The device further includes: a policy copying module, configured to execute a copying instruction in response to the policy configuration option in the policy configuration module, generate a traffic control policy according to the triggering conditions and target port indicated by the policy configuration instruction, and then execute a copying instruction in response to the copy button to copy the traffic control policy indicated by the copying instruction and display the copied traffic control policy in the first interface.
[0051] The policy deletion module is used to delete the flow control policy indicated by the second deletion instruction in response to the second deletion button.
[0052] This application also provides an electronic device, including:
[0053] Memory, used to store computer programs;
[0054] The processor, when executing a program stored in memory, implements any of the cargo transport simulation methods described above.
[0055] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the cargo transport simulation methods described above.
[0056] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to execute any of the cargo transport simulation methods described above.
[0057] Beneficial effects of the embodiments in this application:
[0058] The technical solution provided in this application embodiment involves an electronic device displaying a first interface in response to a simulation configuration command for configuring a flow control strategy for cargo transmission in a target scenario. The first interface includes a start simulation button and a flow control strategy configuration option. The flow control strategy includes: controlling the target port of the connected entity in the target scenario when the flow of cargo in the target transmission line meets the trigger condition during the cargo transmission simulation of the target scenario; generating a flow control strategy according to the trigger condition and target port indicated by the strategy configuration command in response to the strategy configuration option; and performing cargo transmission simulation of the target scenario according to the flow control strategy configured in the first interface in response to the start simulation button, and displaying a second interface. The cargo in the second interface is transmitted between the entities.
[0059] Based on the above processing, the cargo transmission process in warehousing and logistics scenarios can be simulated according to the flow control strategy, thereby realizing flow control of cargo transmission and improving the efficiency of cargo transportation.
[0060] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description
[0061] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.
[0062] Figure 1 A flowchart illustrating the first cargo transport simulation method provided in this application embodiment;
[0063] Figure 2 A schematic diagram of a target scene modeling scenario provided in an embodiment of this application;
[0064] Figure 3 A schematic diagram of the display interface of an electronic device provided in an embodiment of this application;
[0065] Figure 4 A schematic diagram of the homepage of a target application provided in an embodiment of this application;
[0066] Figure 5a A schematic diagram of a first interface provided in an embodiment of this application;
[0067] Figure 5b A schematic diagram of a second type of first interface provided in an embodiment of this application;
[0068] Figure 5c for Figure 5b A magnified view of a portion of the first interface shown;
[0069] Figure 6 A flowchart illustrating the second cargo transport simulation method provided in this application embodiment;
[0070] Figure 7a A schematic diagram of a first type of third interface provided in an embodiment of this application;
[0071] Figure 7b A schematic diagram of a second type of third interface provided in an embodiment of this application;
[0072] Figure 7c A schematic diagram of a third type of third interface provided in an embodiment of this application;
[0073] Figure 8 A schematic diagram of a first type of fourth interface provided in an embodiment of this application;
[0074] Figure 9a A schematic diagram of a fourth type of third interface provided in an embodiment of this application;
[0075] Figure 9b A schematic diagram of a fifth type of third interface provided in an embodiment of this application;
[0076] Figure 10 A schematic diagram of a second type of fourth interface provided in an embodiment of this application;
[0077] Figure 11a A schematic diagram of a first type of second interface provided in an embodiment of this application;
[0078] Figure 11b A schematic diagram of a second type of second interface provided in an embodiment of this application;
[0079] Figure 12 A schematic diagram of a cargo transport simulation configuration provided for an embodiment of this application;
[0080] Figure 13 A structural diagram of a cargo transport simulation device provided in this application embodiment;
[0081] Figure 14 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0082] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of this application.
[0083] To address the aforementioned problems, this application provides a cargo transportation simulation method applied to an electronic device. The electronic device has a target application installed to simulate the cargo transportation process in a warehousing and logistics scenario. The user configures simulation parameters (e.g., flow control strategies) for the target scenario within the target application. The electronic device simulates the cargo transportation process in the target scenario according to the configured simulation parameters, obtaining simulation results. Subsequently, the cargo transportation process in the target scenario can be adjusted based on the simulation results to improve cargo transportation efficiency. For example, adjusting the transmission speed of the transmission lines, adjusting the production speed of the production source, and adjusting the connection relationships between the transmission lines.
[0084] See Figure 1 , Figure 1 A flowchart of a cargo transportation simulation method provided in this application embodiment is included, the method comprising the following steps:
[0085] S101: In response to a simulation configuration command for configuring a flow control strategy for cargo transport in the target scenario, the first interface is displayed.
[0086] The first interface includes a start simulation button and a flow control strategy configuration option. The flow control strategy includes controlling the ports of the connected entities in the target scenario when the flow of goods in the target transmission line meets the trigger conditions during the cargo transmission simulation of the target scenario.
[0087] S102: In response to a policy configuration instruction for a policy configuration option, generate a flow control policy according to the triggering conditions and target port indicated by the policy configuration instruction.
[0088] S103: In response to the start simulation command for the start simulation button, perform cargo transfer simulation on the target scenario according to the flow control strategy configured in the first interface, and display the second interface.
[0089] In the second interface, goods are transferred between various entities.
[0090] Based on the cargo transportation simulation method provided in this application embodiment, the cargo transportation process in the warehousing and logistics scenario can be simulated according to the flow control strategy, thereby realizing flow control of cargo transportation and improving the efficiency of cargo transportation.
[0091] For step S101, the target scenario is any warehousing and logistics scenario that needs to be simulated.
[0092] The electronic device is equipped with a target application for simulating the cargo transfer process in a warehousing and logistics scenario. When a user needs to simulate cargo transfer in the target scenario, the user inputs a launch command for the target application into the electronic device. In response to the launch command, the electronic device launches the target application and displays its home page.
[0093] The target application's homepage includes a button for accessing the simulation configuration interface. The user inputs simulation configuration commands using these buttons. The electronic device, responding to the simulation configuration commands for configuring the flow control strategy for cargo transport in the target scenario, displays the first interface. This first interface is the simulation configuration interface.
[0094] The first interface includes a "Start Simulation" button and policy configuration options for flow control strategies. The flow control strategy includes controlling the ports of connected entities in the target scenario when the flow of goods in the target transmission line meets the trigger conditions during the cargo transfer simulation of the target scenario.
[0095] Entities include production sources that produce goods, conveyor lines that transport goods, and machines that process goods. Ports are the connection points between entities. For example, such as... Figure 2The modeled scenario of the target scene shown includes multiple entities: a production source, transmission line 1, transmission line 2, and transmission line 3. Seven goods are transported on transmission line 1. The right end of transmission line 1 is the output port. The output port of transmission line 1 is used to transport goods to transmission lines 2 and 3 when transmission line 1 is connected to them.
[0096] The following example illustrates how an electronic device displays its first screen.
[0097] For example, the electronic device is a laptop computer. Figure 3 As shown, the laptop displays the application icons of all installed applications. When a user needs to simulate the cargo transfer process in a target scenario, the user clicks the simulation application's application icon 301 to launch the simulation application. The electronic device responds to the click on the simulation application's application icon 301 by displaying the simulation application's homepage. Figure 4 As shown, the homepage includes multiple operation buttons. The "Cargo Transfer Simulation" button 401 is used to enter the simulation configuration interface (i.e., the first interface). The user clicks the "Cargo Transfer Simulation" button 401 to input simulation configuration commands. The electronic device responds to the click operation and displays the first interface.
[0098] When the electronic device has not saved the flow control strategy configured in the last simulation, the first interface is as follows: Figure 5a As shown. Figure 5a This includes: a start simulation button 501, a stop simulation button 502, a simulation reset button 503, and policy configuration options. The policy configuration options include a trigger condition option 504 (i.e., add trigger conditions) for configuring trigger conditions, an open port option 506 for configuring ports that are opened when trigger conditions are met, and a close port option 505 for configuring ports that are closed when trigger conditions are met.
[0099] When the electronic device saves the flow control strategy configured in the last simulation, the first interface is as follows: Figure 5b As shown. Figure 5b This includes: a start simulation button 501, a stop simulation button 502, a simulation reset button 503, and policy configuration options. The policy configuration options include a trigger condition option 504 for configuring trigger conditions, an open port option 506 for configuring ports to be opened when trigger conditions are met, and a close port option 505 for configuring ports to be closed when trigger conditions are met.
[0100] and, Figure 5b The first interface shown also includes the configured traffic control policies. The configured traffic control policies are as follows:
[0101] The first flow control strategy includes: trigger condition 1, and the port to be closed when trigger condition 1 is met. Trigger condition 1 is the total capacity of the straight transmission line (3) and the straight transmission line (4) >= 6. The total capacity of trigger condition 1 refers to the total number of goods on the straight transmission line (3) and the straight transmission line (4). The first flow control strategy is: when the total number of goods on the straight transmission line (3) and the straight transmission line (4) is greater than or equal to 6 (i.e., when the trigger condition is met), the configured target port is closed.
[0102] The second flow control strategy includes: trigger condition 2 and the port to be opened. Trigger condition 2 is that the total capacity of the straight transmission line (3) and the straight transmission line (4) is less than 6. The total capacity of trigger condition 2 refers to the total number of goods on the straight transmission line (3) and the straight transmission line (4). The second flow control strategy is: when the total number of goods on the straight transmission line (3) and the straight transmission line (4) is less than 6 (i.e., when the trigger condition is met), the configured target port is opened.
[0103] The third flow control strategy includes: trigger condition 3 and the closed port. Trigger condition 3 is that the total capacity of the straight transmission line (2) is greater than or equal to 12. The total capacity of trigger condition 3 refers to the total number of goods on the straight transmission line (2). The third flow control strategy is: when the number of goods on the straight transmission line (2) is greater than or equal to 12 (i.e. when the trigger condition is met), the configured target port is closed.
[0104] The fourth flow control strategy includes: trigger condition 4 and the open port. Trigger condition 4 is not fully displayed; the user can scroll down on scroll bar 507. In response to scrolling down on scroll bar 507, the electronic device displays the complete trigger condition 4.
[0105] The ports corresponding to each trigger condition are not fully displayed. Users can view the configured target ports as follows:
[0106] Users can click the drop-down button for the corresponding open (or closed) port option. In response to the click, the electronic device displays a list of configured open (or closed) ports.
[0107] For example, see Figure 5c The user clicks the drop-down button 508 for the "Open Port" option in trigger condition 2. In response to the click on drop-down button 508, the electronic device displays a list of configured open ports in pop-ups 509 and 510. The open port is Linear ConveyorFlowExitJoint_0 (Transmission Line Output Port_0). The user can also delete a configured port by clicking the "X" icon after the port.
[0108] The above Figures 3 to 5c This is merely an illustrative example; other methods for displaying the first interface can be set according to actual needs.
[0109] In step S102, the policy configuration options are used by the user to configure the triggering conditions and target ports of the traffic control policy.
[0110] When a user needs to configure the trigger conditions and target port for simulating cargo transfer in a target scenario, they input a policy configuration command into the electronic device. The policy configuration command specifies the trigger conditions and target port. In response to the policy configuration command for the policy configuration options, the electronic device generates a flow control policy according to the trigger conditions and target port indicated by the policy configuration command.
[0111] In one implementation, the policy configuration options include an input box and a save button. The user enters the trigger conditions and target port in the input box and clicks the save button to input policy configuration instructions to the electronic device. The electronic device responds to the policy configuration instructions by generating a flow control policy according to the trigger conditions and target port specified in the policy configuration instructions.
[0112] In another implementation, the traffic control policy configuration options include: a first configuration option for the trigger condition and a second configuration option for the port. Figure 1 Based on this, see Figure 6 Step S102 may include the following steps:
[0113] S1021: In response to a first conditional configuration instruction for a first configuration option, determine the triggering condition indicated by the first conditional configuration instruction.
[0114] S1022: In response to the first port configuration instruction for the second configuration option, determine that the port indicated by the first port configuration instruction is the target port.
[0115] S1023: Generate a flow control policy based on the triggering conditions and target port.
[0116] The policy configuration options include: a first configuration option for triggering conditions and a second configuration option for the port.
[0117] The first configuration option is used by the user to configure trigger conditions. The user enters a first condition configuration command indicating the trigger conditions into the first configuration option. The electronic device, in response to the first condition configuration command for the first configuration option, determines the trigger conditions indicated by the first condition configuration command. The second configuration option is used by the user to configure a target port. The user enters a first port configuration command indicating the target port into the second configuration option. The electronic device, in response to the first port configuration command for the second configuration option, determines the target port indicated by the second condition configuration command.
[0118] Based on the above processing, users can configure relevant trigger conditions in the traffic control window (i.e., the first interface) to decide whether to open or close certain ports. Multiple policy configuration options can be configured, that is, the trigger conditions can be configured through the first configuration option, and the target port can be configured through the second configuration option. This allows for separate configuration of trigger conditions and target ports, enabling more granular and flexible configuration of traffic control policies.
[0119] The triggering conditions include: the judgment object and the judgment condition. When the judgment object meets the judgment condition, it is determined that the flow rate of goods in the target transmission line meets the triggering condition. The judgment object is the transmission line in the target scenario, and the judgment condition is the condition that the flow rate of goods in the transmission line needs to meet. For example, if the judgment object is transmission line 1, and the judgment condition is that the number of goods on transmission line 1 is greater than 6, then the triggering condition is that the number of goods on transmission line 1 is greater than 6.
[0120] Electronic devices can configure trigger conditions in the following ways:
[0121] Method 1: The first configuration option includes an input box and a save button. The user enters the judgment object and judgment condition in the input box and clicks the save button to input the first condition configuration instruction to the electronic device. The electronic device responds to the first condition configuration instruction and generates trigger conditions according to the judgment object and judgment condition indicated by the first condition configuration instruction.
[0122] Method 2: In some embodiments, step S1021 may include the following steps:
[0123] In response to a first jump instruction for a first configuration option, a third interface is displayed; wherein the third interface includes: a first configuration window for a first trigger condition. In response to a first object selection instruction for an object configuration first sub-option in the first configuration window, the target transmission line indicated by the first object selection instruction is determined to be the first judgment object. In response to a first condition configuration instruction for a condition configuration first sub-option in the first configuration window, the judgment condition indicated by the first condition configuration instruction is determined to be the first judgment condition. In response to a first generation instruction for a generation button in the third interface used to generate trigger conditions, the first trigger condition is generated according to the first judgment object and the first judgment condition. Wherein, when the first judgment object satisfies the first judgment condition, the flow rate of goods in the target transmission line is determined to satisfy the first trigger condition.
[0124] When configuring trigger conditions, the user clicks the first configuration option to input a first jump command for that option. The electronic device responds to the first jump command and displays a third interface for configuring trigger conditions. The third interface includes: a configuration window for at least one trigger condition, and a generate button for generating the trigger conditions. The configuration window includes: object configuration sub-options and condition configuration sub-options.
[0125] When configuring the first judgment object of the first trigger condition, the user inputs a first object selection command into the first sub-option of the object configuration in the first configuration window. The electronic device responds to the first object selection command and determines the target transmission line indicated by the first object selection command as the first judgment object.
[0126] When configuring the first judgment condition of the first trigger condition, the user enters a first condition configuration command into the first sub-option of the condition configuration in the first configuration window. The electronic device responds to the first condition configuration command and determines that the judgment condition indicated by the first condition configuration command is the first judgment condition.
[0127] After configuring the first judgment object and the first judgment condition, the user inputs a first generation command into the generation button used to generate the trigger condition. The electronic device responds to the first generation command and generates the first trigger condition according to the first judgment object and the first judgment condition.
[0128] The following example illustrates how to configure trigger conditions.
[0129] User click Figure 5a Trigger condition option 504. In response to a click on trigger condition option 504, the electronic device displays... Figure 7a The third interface is shown. The first configuration window in the third interface includes object configuration first sub-option 701 and condition configuration first sub-option 702. Because... Figure 5a The user has not configured any trigger conditions, so the first sub-option 701 of the object configuration in the first configuration window is blank. In the first sub-option 702 of the condition configuration, the state configuration sub-option 7021 is set to the default state (i.e., total capacity), the relationship configuration sub-option 7022 is set to the default logical relationship (i.e., ==), and the threshold configuration sub-option 7023 is set to the default value (i.e., 0). The user inputs a first object selection command into the first sub-option 701 of the object configuration, indicating the first judgment object. The electronic device responds to the first object selection command and determines the target transmission line indicated by the first object selection command as the first judgment object. The user inputs a first condition configuration command into the first sub-option 702 of the condition configuration, indicating the first judgment condition. The electronic device responds to the first condition configuration command and determines the first judgment condition indicated by the first condition configuration command.
[0130] The third interface also includes a save button 705, which is a generation button for generating trigger conditions. The user clicks the save button 705. In response to the click operation of the save button 705, the electronic device generates a first trigger condition according to the first judgment object and the first judgment condition. The third interface also includes an add condition button 703 and an add condition group button 704. The add condition button 703 indicates the display of a configuration window for a new trigger condition. The add condition group button 704 indicates the display of a configuration window for a new set of trigger conditions. The add condition button 703 and the add condition group button 704 are described in detail in subsequent embodiments.
[0131] or,
[0132] User click Figure 5b The trigger condition option for trigger condition 2 is displayed. In response to a click on the trigger condition option for trigger condition 2, the electronic device displays... Figure 7b The third interface is shown. The first configuration window in the third interface includes object configuration first sub-option 701 and condition configuration first sub-option 702.
[0133] because Figure 5b The user has configured trigger condition 2. In the first configuration window, the first sub-option 701 of the object configuration is the configured first judgment object (i.e., the straight transmission line (3)). In the first sub-option 702 of the condition configuration, the state configuration sub-option 7021 is the configured state (i.e., total capacity), the relationship configuration second sub-option 7022 is the configured logical relationship (i.e., <), and the threshold configuration sub-option 7023 is the configured judgment threshold (i.e., 6). If the user needs to modify the configured trigger condition 2, the user enters the first object selection instruction into the first sub-option 701 of the object configuration to indicate the first judgment object. The electronic device responds to the first object selection instruction and determines that the target transmission line indicated by the first object selection instruction is the first judgment object. The user enters the first condition configuration instruction into the first sub-option 702 of the condition configuration to indicate the first judgment condition. The electronic device responds to the first condition configuration instruction and determines the first judgment condition indicated by the first condition configuration instruction. The user clicks the save button 705. In response to the click operation of the save button 705, the electronic device generates a new trigger condition according to the modified first judgment object and the first judgment condition.
[0134] The third interface also includes an add condition button 703 and an add condition group button 704. The add condition button 703 and the add condition group button 704 will be described in detail in subsequent embodiments.
[0135] The above Figure 7a and Figure 7b This is just one example; other ways to configure trigger conditions can also be set according to actual needs.
[0136] Compared to existing technologies, which can only divert goods on the current conveyor line, resulting in limited flow control, and can only configure the conditions and priorities for goods to enter the next conveyor line, this application's embodiment allows for the separate configuration of judgment objects and judgment conditions through object configuration first sub-options and condition configuration first sub-options, enabling more refined and flexible flow control strategies. Furthermore, all conveyor lines and ports in the target scenario can be configured, achieving global monitoring of the target scenario.
[0137] In some embodiments, the electronic device configures the first judgment object in the following manner:
[0138] In response to a second jump instruction for configuring a first sub-option for an object, a fourth interface is displayed; wherein the fourth interface includes various entities in the target scene; each entity includes a transmission line; in response to a first entity selection instruction for a target transmission line in the fourth interface, the target transmission line indicated by the first entity selection instruction is determined as the first judgment object.
[0139] The following example illustrates how to configure the first judgment object.
[0140] When the user needs to configure the first judgment object, click Figure 7c The magnetic snap button 7012 is used to input a second jump command to configure the first sub-option of the object. The electronic device responds to the second jump command and displays a fourth interface. The fourth interface includes various entities in the target scene, such as... Figure 8 The entities in the fourth interface shown include: production source, linear transmission line (2), linear transmission line (3), linear transmission line (4), processing machine and recycling unit.
[0141] When a user needs to select a target transmission line as the first object of judgment, they click on the target transmission line to input a first entity selection command for the target transmission line. The electronic device responds to the first entity selection command for the target transmission line and determines the target transmission line as the first object of judgment. For example, the user clicks sequentially... Figure 8 In the linear transmission line (3) and linear transmission line (4), the electronic device responds to the user's click operation, determines the linear transmission line (3) and linear transmission line (4) as the first judgment object, and jumps back to the third interface.
[0142] Based on the above processing, users can select the target transmission line as the judgment object in the fourth interface containing various entities in the target scene. The visualization provides users with a global selection of transmission lines, enabling more refined and flexible configuration of traffic control strategies.
[0143] Additionally, when the third interface includes configured trigger conditions, users can view these conditions as follows:
[0144] User click Figure 7b In the object configuration first sub-option 701, the electronic device responds to the click operation and displays the object list 7011. The objects configured in the object list 7011 include: linear transmission line (3) and linear transmission line (4).
[0145] In some embodiments, the judgment condition includes: the state of the judgment object, a judgment threshold, and a second logical relationship. When the state of the judgment object and the judgment threshold form a second logical relationship, the judgment object is determined to meet the judgment condition. The first sub-option of the condition configuration includes: a state configuration sub-option, a relationship configuration second sub-option, and a threshold configuration sub-option; the electronic device configures the first judgment condition in the following manner:
[0146] In response to the first display instruction for the status configuration sub-options, a status list is displayed on the third interface. The status list includes at least one of: normal status, congested status, and total capacity.
[0147] In response to a state selection instruction for any state in the state list, determine that state as the target state.
[0148] In response to the threshold configuration instruction for the threshold configuration sub-option, the value indicated by the threshold configuration instruction is determined to obtain the judgment threshold.
[0149] In response to a second display instruction for configuring a second sub-option of a relationship, a list of logical relationships is displayed in a third interface. This list of logical relationships includes at least one of the following: greater than, greater than or equal to, equal to, less than or equal to, and less than.
[0150] In response to a relation selection instruction for any logical relation in the logical relation list, the logical relation is determined to be the second logical relation between the target state and the judgment threshold.
[0151] The first judgment condition is generated based on the target state of the first judgment object, the judgment threshold, and the second logical relationship between the target state and the judgment threshold.
[0152] The following example illustrates how to configure the first condition.
[0153] When configuring the state of an object to be checked, click Figure 7c The drop-down button for the status configuration sub-option 7021 shown above, in response to a click on the drop-down button of the status configuration sub-option 7021, displays a status list in the third interface, such as... Figure 7cAs shown, the status list includes: Normal Status, Congested Status, and Total Capacity. Normal Status means that goods are being transported normally on the target transmission line (i.e., the first judgment object). Congested Status means that at least one item on the target transmission line (i.e., the first judgment object) is stationary. Total Capacity refers to the total number of items on the target transmission line (i.e., the first judgment object).
[0154] When a user needs to configure the state of the first object to be considered, they click on a state icon in the state list. The electronic device responds to the click on any state icon in the state list and determines the target state selected by the user. For example, Figure 7c When the user clicks "Total Capacity", the electronic device sets "Total Capacity" as the target state.
[0155] When a user needs to configure a judgment threshold, they input a value as the judgment threshold into the threshold configuration sub-option 7023. The electronic device determines the input value as the judgment threshold. For example, Figure 7c The number 6 entered by the user is used as the threshold for judgment.
[0156] When a user needs to configure a second logical relationship, they click the drop-down button for the second sub-option 7022 of the relationship configuration. In response to the click operation of the drop-down button for the second sub-option 7022 of the relationship configuration, the electronic device displays a list of logical relationships on the third interface. This list includes multiple logical relationships, such as at least one of greater than, greater than or equal to, equal to, less than or equal to, and less than. The user clicks on any logical relationship in the list. In response to the click operation on that logical relationship, the electronic device determines that the logical relationship is the second logical relationship. For example, Figure 7c The logical relationship for user selection is <.
[0157] Then, based on the target state and judgment threshold of the first judgment object configured above, and the second logical relationship between the target state and the judgment threshold, a first judgment condition is generated. For example, Figure 7c The first condition for generation is: the total capacity of the straight transmission line (3) and the straight transmission line (4) is less than 6.
[0158] The above Figures 7a to 7c This is merely an illustrative example; other methods for configuring the first judgment object can also be set according to actual needs.
[0159] Compared to existing technologies, which cannot achieve fixed-number control of the flow rate of a transmission line, this application embodiment, through state configuration sub-options, threshold configuration sub-options, and logical relationship configuration second sub-options, can achieve precise control of the number of goods in the transmission line, enabling a more refined and flexible flow control strategy.
[0160] In some embodiments, the electronic device configures multiple judgment conditions in the third interface in the following manner:
[0161] In response to an add instruction for the add button used to add judgment conditions in the third interface, a second configuration window for the second trigger condition is displayed in the third interface. The second configuration window includes: a second sub-option for object configuration, a second sub-option for condition configuration, and a first sub-option for relationship configuration. In response to a second object selection instruction for the second sub-option for object configuration, the target transmission line indicated by the second object selection instruction is determined to be the second judgment object. In response to a second condition configuration instruction for the second sub-option for condition configuration, the judgment condition indicated by the second condition configuration instruction is determined to be the second judgment condition. In response to a relationship configuration instruction for the first sub-option for relationship configuration, the logical relationship indicated by the relationship configuration instruction is determined to be the first logical relationship between the first trigger condition and the second trigger condition. In response to a second generate instruction for the generate button used to generate trigger conditions in the third interface, the second trigger condition is generated according to the second judgment object and the second judgment condition.
[0162] The following example illustrates how to configure a second trigger condition.
[0163] When a user needs to configure a second trigger condition, they input an addition command to the add button (which can be called the first add button) on the third interface, which is used to add judgment conditions. For example, clicking... Figure 7b The electronic device uses the add condition button 703 (i.e., the first add button) to input an add command (which may be called a condition add command). In response to the condition add command, the electronic device displays a second configuration window for the second trigger condition in the third interface.
[0164] See Figure 9a The second configuration window includes: a second sub-option 901 for object configuration, a second sub-option 902 for condition configuration, and a first sub-option 903 for relationship configuration. The second sub-option 902 for condition configuration includes: a sub-option 9021 for status configuration, a second sub-option 9022 for relationship configuration, and a sub-option 9023 for threshold configuration. When a user inputs a second object selection command into the second sub-option 901 for object configuration, the electronic device responds to the second object selection command and determines the target transmission line indicated by the second object selection command as the second judgment object. The method of determining the second judgment object is similar to the method of determining the first judgment object, as described in the foregoing embodiments.
[0165] The user inputs a second condition configuration instruction into the second sub-option 902 of the condition configuration. The electronic device responds to the second condition configuration instruction and determines that the judgment condition indicated by the second condition configuration instruction is the second judgment condition. The method of determining the second judgment condition is similar to the method of determining the first judgment condition, as described in the foregoing embodiments.
[0166] The user also needs to configure the first logical relationship between the first trigger condition and the second trigger condition. The first logical relationship is: AND, OR, or OR. The user inputs a relationship configuration instruction into the first sub-option 903 of the relationship configuration. In response to the relationship configuration instruction, the electronic device determines the first logical relationship between the first trigger condition and the second trigger condition indicated by the relationship configuration instruction. For example, Figure 9a In the interface shown, if the first sub-option 903 of the relationship configuration defaults to AND, and the user clicks the first sub-option 903 of the relationship configuration, the electronic device will respond to the click operation by switching the logical relationship to OR. Alternatively, if the first sub-option 903 of the relationship configuration defaults to OR, and the user clicks the first sub-option 903 of the relationship configuration, the electronic device will respond to the click operation by switching the logical relationship to AND.
[0167] Then, the user clicks the save button 705 (i.e., the generate button for generating trigger conditions) to input a second generation instruction. The electronic device responds to the second generation instruction, generates a second trigger condition according to the second judgment object and the second judgment condition, and records the first logical relationship between the first trigger condition and the second trigger condition.
[0168] The above Figure 9a This is just one example; other ways to add trigger conditions can be set according to actual needs.
[0169] Based on the above processing, new triggering conditions can be added, and the logical relationship between multiple triggering conditions can be set to generate multiple traffic control policies, enabling more refined and flexible configuration of traffic control policies.
[0170] In some embodiments, the third interface further includes a first delete button for deleting configured trigger conditions. Accordingly, when a user needs to delete a configured trigger condition, they click the first delete button to input a first delete command. The electronic device responds to the first delete command, deleting the trigger condition indicated by the first delete command, thus satisfying the user's need to delete trigger conditions and improving the user experience. For example, Figure 9a In the third interface shown, each trigger condition corresponds to a delete button 904 (i.e., the first delete button). The user clicks the delete button 904 and enters a first delete command. The electronic device responds to the first delete command and deletes the trigger condition corresponding to the delete button 904.
[0171] In some embodiments, multiple trigger conditions can be added at once as a group. For example, when a user needs to configure multiple trigger conditions in a group, they input an addition command to the add button (which can be called the second add button) on the third interface for adding a group of judgment conditions. For instance, clicking the add condition group button 704 (i.e., the second add button) to input an addition command (which can be called a condition group add command). In response to the condition group add command, the electronic device displays a configuration window (which can be called the third configuration window) for the newly added condition group on the third interface. Figure 9b As shown, the third configuration window includes configuration windows for two trigger conditions. The third interface also includes a third sub-option 906 for configuring the relationship between trigger condition groups. This third sub-option 906 is used to configure the third logical relationship between condition groups.
[0172] Based on the above processing, new triggering conditions can be added, and the logical relationship between multiple triggering conditions can be set to generate multiple traffic control policies, enabling more refined and flexible configuration of traffic control policies.
[0173] In some embodiments, the third interface further includes a third delete button for deleting a configured trigger condition group. Accordingly, when a user needs to delete a configured trigger condition group, they click the third delete button to input a third delete command. The electronic device responds to the third delete command, deleting the trigger condition indicated by the third delete command, thus satisfying the user's need to delete the trigger condition group and improving the user experience. For example, Figure 9b In the third interface shown, each trigger condition group corresponds to a delete condition group button 905 (i.e., the third delete button). The user clicks the delete condition group button 905 and enters the third delete command. The electronic device responds to the third delete command and deletes the trigger condition group corresponding to the delete condition button 905.
[0174] In some embodiments, the electronic device configures the target port in the following manner:
[0175] In one implementation, the second configuration option includes an input box and a save button. The user enters the open port and / or closed port in the input box and clicks the save button to input a first port configuration instruction to the electronic device. In response to the first port configuration instruction, the electronic device determines the open port and / or closed port indicated by the first port configuration instruction.
[0176] In another implementation, the target port includes: a port that is opened and / or closed during cargo transportation; the second configuration option includes: an open port configuration sub-option and a closed port configuration sub-option.
[0177] In response to a second port configuration command for the "Enable Port Configuration" sub-option, the port indicated by the second port configuration command is determined to be an enabled port. In response to a third port configuration command for the "Disable Port Configuration" sub-option, the port indicated by the third port configuration command is determined to be a disabled port.
[0178] Based on the above processing, by using the "Enable Port Configuration" and "Disable Port Configuration" sub-options, it is possible to configure the enabled and disabled ports separately, thereby enabling more granular and flexible configuration of traffic control policies.
[0179] In some embodiments, the electronic device configures the open ports in the following manner.
[0180] In response to the third jump instruction for the port configuration sub-option, a fourth interface is displayed. This fourth interface also includes the ports connected to each entity in the target scene; in response to the first port selection instruction for the target port in the fourth interface, the target port indicated by the first port selection instruction is determined to be an open port.
[0181] The following example illustrates how to configure and enable ports.
[0182] against Figure 5a For example, when a user configures the open ports, clicking the snap button 5061 of the open port option 506 inputs a third jump command for the open port configuration sub-option. The electronic device responds to the third jump command and displays a fourth interface. The fourth interface includes the ports connected to each entity in the target scene.
[0183] Ports include connection ports and attachment ports. Connection ports are those that are built into an entity when it is created, used to connect with other entities. Connection ports include input ports and output ports. An input port is where goods enter the entity. An output port is where goods leave the entity. Attach ports are ports created when two entities are connected. For example, Figure 10 In the fourth interface shown, the connection port is the port at the end of a physical entity. For example, port 1002 on the right side of transmission line 1004. The snap-in port is the port at the connection between two physical entities. For example, port 1001 at the connection between transmission lines 1003 and 1004.
[0184] Users can click on the port they wish to select and enter a first port selection command for that port. In response to the first port selection command, the system determines that the selected port is an open port. For example, if the user clicks on port 1001, the electronic device determines that port 1001 is an open port.
[0185] The above Figure 10 This is just one example; other methods can be used to configure the target port according to actual needs.
[0186] In some embodiments, the electronic device is configured to close ports in the following manner.
[0187] In response to the fourth jump instruction for the configuration sub-option for the closed port, the fourth interface is displayed; in response to the second port selection instruction for the target port in the fourth interface, it is determined that the target port indicated by the second port selection instruction is the closed port.
[0188] The method for configuring a closed port is similar to the method for configuring an open port; please refer to the relevant descriptions in the foregoing embodiments.
[0189] Based on the above processing, the ports of all entities in the target scenario are provided to the user for configuration, which enables global monitoring of the target scenario.
[0190] In some embodiments, the first interface further includes: a second delete button, and / or a copy button. After step S102, the method may further include the following steps:
[0191] In response to a copy command on the copy button, the traffic control policy indicated by the copy command is copied, and the copied traffic control policy is displayed on the first interface. In response to a second delete command on the second delete button, the traffic control policy indicated by the second delete command is deleted. The second delete button is used to delete the corresponding traffic control policy. The copy button is used to copy the corresponding traffic control policy.
[0192] For example, in the first interface, each configured traffic control policy corresponds to a copy button and a delete button (i.e., a second delete button). For example, Figure 5b The second flow control measure corresponds to a copy button 511 and a delete button 512. When the user needs to copy the second flow control policy, they click the copy button 511 to input a copy command for the second flow control policy. The electronic device responds to the copy command, copies the second flow control policy, and displays the copied flow control policy on the first interface, for example, as the fifth flow control policy. Subsequently, if the user needs to generate a flow control policy similar to the second flow control policy, for example, with the same trigger conditions or the same target port, the user can follow... Figure 7c As shown, modify the copied traffic control policy to obtain a new traffic control policy. Users only need to configure the options that need to be modified, without having to re-enter the same configuration options as the second traffic control policy, which reduces user operations and improves user experience.
[0193] When a user needs to delete the second flow control policy, they click the delete button 512 to enter a second deletion command for the second flow control policy. The electronic device responds to the second deletion command and deletes the second flow control policy.
[0194] In step S103, after configuring the flow control strategy, the user can input a start simulation command for the start simulation button. The electronic device responds to the start simulation command, performs a cargo transfer simulation of the target scenario according to the configured flow control strategy, and displays the second interface. The second interface is the simulation interface.
[0195] The second interface includes various entities in the target scene, and goods are transported among these entities. For example, such as... Figure 11a The second interface shown shows that the goods 1101 produced by the production source are first transported to the linear transmission line (2), then to the linear transmission line (3) or (4), then to the processing machine, and finally to the recycling unit. Furthermore, the second interface can also display the simulation duration. For example, Figure 11a The simulation duration is 1:00:30.
[0196] In some embodiments, after step S103, the method may further include the following steps:
[0197] During simulation, users can browse the simulation data of each entity in real time. When a user needs to view the simulation data of any entity, they input a data display command for that entity. The electronic device responds to the data display command and displays the simulation data of that entity on a second interface. Subsequently, users can automatically monitor the flow rate of the conveyor line based on the simulation data, as well as the configured trigger conditions and target ports, thereby improving the efficiency of the production line.
[0198] For example, such as Figure 11b As shown, if a user needs to view the simulation data of the production source, they can move the mouse cursor over the production source. When the electronic device detects that the mouse cursor is over the production source, it determines that a data display command for the production source has been detected. Alternatively, if a user needs to view the simulation data of the production source, they can click on the production source. When the electronic device clicks on the production source, it determines that a data display command for the production source has been detected. In response to the data display command, the electronic device displays the simulation data of the production source. The simulation data of the production source includes: Production rate: 3 / minute. Number of goods produced: 181. The above simulation data indicates that the production source produces 3 goods per minute, and 181 goods have been produced within 1 hour and 30 seconds of the simulation.
[0199] In some embodiments, the second interface further includes: a stop simulation button, and / or a simulation reset button. For example, Figure 11a or Figure 11b The second interface shown includes a stop simulation button 1102 and a simulation reset button 1103.
[0200] Accordingly, after step S103, the method may further include the following steps:
[0201] When a user needs to stop the simulation, they click the "Stop Simulation" button 1102 and input a stop simulation command for that button. When the electronic device detects the click on the "Stop Simulation" button 1102, it confirms that a stop simulation command has been detected. In response to the stop simulation command, the electronic device stops simulating cargo transfer in the target scenario.
[0202] When a cargo transport simulation of the target scenario needs to be re-performed, the simulation reset button 1103 is clicked, and a simulation reset command is entered for the simulation reset button. When the electronic device detects the click operation on the simulation reset button 1103, it determines that a simulation reset command has been detected. In response to the simulation reset command, the electronic device deletes the simulation data for the cargo transport simulation of the target scenario, as well as the configured flow control policy.
[0203] See Figure 12 , Figure 12 This is a schematic diagram of a cargo transport simulation configuration provided in an embodiment of this application.
[0204] The target scenario includes conveyor line 1, conveyor line 2, conveyor line 3, and conveyor line 4. The flow of goods in the target scenario is as follows: goods are transported from conveyor line 1 to conveyor line 2, from conveyor line 2 to conveyor line 3, and / or conveyor line 4. The conveyor lines are the transmission lines described in the aforementioned embodiments.
[0205] The flow control strategies for global monitoring of the target scenario include: The first flow control strategy is triggered when the total cargo volume (i.e., total capacity) of conveyor lines 3 and 4 is greater than or equal to 6; the operation is to close the output port of conveyor line 2. The second flow control strategy is triggered when the total cargo volume of conveyor lines 3 and 4 is less than 6; the operation is to open the output port of conveyor line 2. The third flow control strategy is triggered when the cargo volume of conveyor line 2 is greater than or equal to 12; the operation is to close the input port of conveyor line 2. The fourth flow control strategy is triggered when the cargo volume of conveyor line 2 is less than 12; the operation is to open the input port of conveyor line 2.
[0206] Based on the cargo transport simulation method provided in this application, a flexible configuration scheme is offered. Unified intelligent management of all conveyor lines in the target scenario enables intelligent monitoring of the current status of each conveyor line during simulation, allowing for corresponding flow control strategies based on changes in the conveyor line status. Furthermore, conditional triggering based on user-configured conveyor line status allows for the opening or closing of certain ports, thereby achieving flexible control of cargo flow on the conveyor lines. In the simulation scenario, the flow process of a real industrial production line can be simulated more flexibly. Through configuration testing in the simulation scenario, cargo handling efficiency can be evaluated and improved. During simulation according to the configured flow control strategy, the flow status of each conveyor line can be intelligently and globally monitored, and the direction of cargo flow can be determined under the configuration of desired conditions (i.e., trigger conditions). For example, it can be implemented that when a certain quantity of cargo reaches a certain quantity on a conveyor line, the upstream conveyor line is not allowed to continue transporting cargo.
[0207] and Figure 1 For the corresponding method implementation examples, see [link to relevant documentation]. Figure 13 , Figure 13 This application provides a structural diagram of a cargo transport simulation device, which is applied to an electronic device and includes:
[0208] The first interface display module 1301 is used to display a first interface in response to a simulation configuration command for configuring a flow control strategy for cargo transmission in a target scenario; wherein the first interface includes a start simulation button and a strategy configuration option for the flow control strategy; the flow control strategy includes: during the cargo transmission simulation of the target scenario, when the flow of cargo in the target transmission line meets the trigger condition, controlling the target port of the connecting entity in the target scenario.
[0209] The policy configuration module 1302 is used to generate a flow control policy in response to a policy configuration instruction for the policy configuration option, according to the triggering conditions and target port indicated by the policy configuration instruction.
[0210] The simulation module 1303 is used to respond to the start simulation command of the start simulation button, perform cargo transfer simulation on the target scenario according to the flow control strategy configured in the first interface, and display the second interface; wherein, in the second interface, the cargo is transferred between various entities.
[0211] Optionally, the policy configuration options for the flow control policy include: a first configuration option for the trigger condition and a second configuration option for the port;
[0212] The policy configuration module 1302 is specifically configured to: in response to a first condition configuration instruction for the first configuration option, determine the triggering condition indicated by the first condition configuration instruction; in response to a first port configuration instruction for the second configuration option, determine that the port indicated by the first port configuration instruction is the target port; and generate a flow control policy according to the triggering condition and the target port.
[0213] Optionally, the strategy configuration module 1302 is specifically configured to: display a third interface in response to a first jump instruction for the first configuration option; wherein the third interface includes: a first configuration window for a first trigger condition; determining the target transmission line indicated by the first object selection instruction as a first judgment object in response to a first object selection instruction for a first sub-option of object configuration in the first configuration window; determining the judgment condition indicated by the first condition configuration instruction as a first judgment condition in response to a first condition configuration instruction for a first sub-option of condition configuration in the first configuration window; generating the first trigger condition according to the first judgment object and the first judgment condition in response to a first generation instruction for a generation button for generating trigger conditions in the third interface; wherein, when the first judgment object satisfies the first judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the first trigger condition.
[0214] Optionally, the device further includes: a configuration window display module, configured to, after the strategy configuration module 1302 executes a first jump instruction in response to the first configuration option and displays a third interface, execute an add instruction in response to an add button for adding judgment conditions in the third interface, and display a second configuration window for the second trigger condition in the third interface; wherein the second configuration window includes: a second sub-option for object configuration, a second sub-option for condition configuration, and a first sub-option for relationship configuration;
[0215] The object configuration module is configured to, in response to a second object selection instruction for configuring a second sub-option for the object, determine the target transmission line indicated by the second object selection instruction as the second judgment object;
[0216] The condition configuration module is configured to, in response to a second condition configuration instruction for the second sub-option of the condition configuration, determine the judgment condition indicated by the second condition configuration instruction as the second judgment condition;
[0217] A logical relationship configuration module is configured to, in response to a relationship configuration instruction for the first sub-option of the relationship configuration, determine that the logical relationship indicated by the relationship configuration instruction is a first logical relationship between the first triggering condition and the second triggering condition;
[0218] The trigger condition generation module is used to respond to a second generation instruction for the generation button in the third interface for generating trigger conditions, and generate the second trigger condition according to the second judgment object and the second judgment condition; wherein, when the second judgment object satisfies the second judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the second trigger condition.
[0219] Optionally, the strategy configuration module 1302 is specifically configured to: display a fourth interface in response to a second jump instruction for configuring a first sub-option for the object; wherein the fourth interface includes entities in the target scene; each entity includes a transmission line; and determine the target transmission line indicated by the first entity selection instruction as a first judgment object in response to a first entity selection instruction for a target transmission line in the fourth interface.
[0220] Optionally, the first sub-option of the condition configuration includes: a state configuration sub-option, a second sub-option of the relationship configuration, and a threshold configuration sub-option;
[0221] The strategy configuration module 1302 is specifically configured to: in response to a first display instruction for the state configuration sub-option, display a state list in the third interface; wherein the state list includes at least one of: normal state, congested state, and total capacity; in response to a state selection instruction for any state in the state list, determine that state as the target state; in response to a threshold configuration instruction for the threshold configuration sub-option, determine the value indicated by the threshold configuration instruction to obtain a judgment threshold; in response to a second display instruction for the relationship configuration second sub-option, display a logical relationship list in the third interface; wherein the logical relationship list includes at least one of: greater than, greater than or equal to, equal to, less than or equal to, and less than; in response to a relationship selection instruction for any logical relationship in the logical relationship list, determine that the logical relationship is a second logical relationship between the target state and the judgment threshold; and generate the first judgment condition according to the target state of the first judgment object, the judgment threshold, and the second logical relationship between the target state and the judgment threshold.
[0222] Optionally, the third interface may also include a first delete button for deleting configured trigger conditions;
[0223] The device further includes a condition deletion module, configured to delete the triggering condition indicated by the first deletion instruction in response to a first deletion instruction for the first deletion button.
[0224] Optionally, the target port includes: a port that is opened and / or closed during cargo transportation; the second configuration option includes: an open port configuration sub-option and a closed port configuration sub-option;
[0225] The policy configuration module 1302 is specifically configured to: in response to a second port configuration instruction for the enabled port configuration sub-option, determine that the port indicated by the second port configuration instruction is an enabled port; and in response to a third port configuration instruction for the disabled port configuration sub-option, determine that the port indicated by the third port configuration instruction is a disabled port.
[0226] Optionally, the strategy configuration module 1302 is specifically used to: display a fourth interface in response to a third jump instruction for the open port configuration sub-option; wherein the fourth interface also includes ports connected to each entity in the target scene; and determine the target port indicated by the first port selection instruction as an open port in response to a first port selection instruction for the target port in the fourth interface.
[0227] The strategy configuration module 1302 is specifically used to: display the fourth interface in response to the fourth jump instruction for the configuration sub-option of the closed port; and determine that the target port indicated by the second port selection instruction is the closed port in response to the second port selection instruction for the target port in the fourth interface.
[0228] Optionally, the device further includes: a simulation data display module, configured to, after the simulation module 1303 executes a start simulation command in response to the start simulation button, performs cargo transportation simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, execute a data display command in response to any entity in the second interface, and display the simulation data of that entity in the second interface.
[0229] Optionally, the second interface may also include: a stop simulation button, and / or a simulation reset button;
[0230] The device further includes: a stop simulation module, configured to, after the simulation module 1303 executes a start simulation command in response to the start simulation button, performs cargo transportation simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, execute a stop simulation command in response to the stop simulation button to stop the cargo transportation simulation on the target scenario.
[0231] The simulation reset module is used to delete the simulation data for simulating cargo transportation in the target scenario and the configured flow control strategy in response to the simulation reset command of the simulation reset button.
[0232] Optionally, the first interface may also include: a second delete button, and / or a copy button.
[0233] The device further includes: a policy copying module, configured to, after the policy configuration module 1302 executes a policy configuration instruction in response to the policy configuration option, generates a flow control policy according to the triggering conditions and target port indicated by the policy configuration instruction, execute a copying instruction in response to the copy button, copy the flow control policy indicated by the copying instruction, and display the copied flow control policy in the first interface;
[0234] The policy deletion module is used to delete the flow control policy indicated by the second deletion instruction in response to the second deletion button.
[0235] Based on the cargo transmission simulation device provided in this application embodiment, the cargo transmission process in the warehousing and logistics scenario can be simulated according to the flow control strategy, thereby realizing flow control of cargo transmission and improving the efficiency of cargo transportation.
[0236] This application also provides an electronic device, such as... Figure 14 As shown, it includes:
[0237] Memory 1401 is used to store computer programs;
[0238] When processor 1402 executes a program stored in memory 1401, it performs the following steps:
[0239] In response to a simulation configuration command for configuring a flow control strategy for cargo transport in a target scenario, a first interface is displayed; wherein the first interface includes a start simulation button and a strategy configuration option for the flow control strategy; the flow control strategy includes: during the cargo transport simulation of the target scenario, when the flow of cargo in the target transmission line meets the triggering condition, controlling the target port of the connecting entity in the target scenario.
[0240] In response to a policy configuration instruction for the policy configuration option, a flow control policy is generated according to the triggering conditions and target port indicated by the policy configuration instruction.
[0241] In response to the start simulation command of the start simulation button, the target scenario is simulated for cargo transfer according to the flow control strategy configured in the first interface, and a second interface is displayed; wherein, in the second interface, the cargo is transferred between various entities.
[0242] Furthermore, the aforementioned electronic device may also include a communication bus and / or a communication interface, with the processor 1402, the communication interface, and the memory 1401 communicating with each other via the communication bus.
[0243] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0244] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0245] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0246] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0247] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described cargo transport simulation methods.
[0248] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the cargo transport simulation methods described above.
[0249] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a solid-state drive (SSD), etc.
[0250] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0251] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, electronic devices, computer-readable storage media, and computer program products are basically similar to the method embodiments, and therefore the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0252] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.
Claims
1. A cargo transportation simulation method, characterized in that, The method is applied to an electronic device, and the method includes: In response to a simulation configuration command for configuring a flow control strategy for cargo transport in a target scenario, a first interface is displayed; wherein the first interface includes a start simulation button and a strategy configuration option for the flow control strategy; the flow control strategy includes: during the cargo transport simulation of the target scenario, when the flow of cargo in the target transmission line meets the triggering condition, controlling the target port of the connecting entity in the target scenario. In response to a policy configuration instruction for the policy configuration option, a flow control policy is generated according to the triggering conditions and target port indicated by the policy configuration instruction. In response to the start simulation command of the start simulation button, the target scenario is simulated for cargo transfer according to the flow control strategy configured in the first interface, and a second interface is displayed; wherein, in the second interface, the cargo is transferred between various entities.
2. The method according to claim 1, characterized in that, The traffic control policy configuration options include: a first configuration option for triggering conditions and a second configuration option for ports; The process of generating a traffic control policy in response to a policy configuration instruction for the policy configuration option, according to the triggering conditions and target port indicated by the policy configuration instruction, includes: In response to a first conditional configuration instruction for the first configuration option, determine the triggering condition indicated by the first conditional configuration instruction; In response to a first port configuration instruction for the second configuration option, the port indicated by the first port configuration instruction is determined to be the target port; A flow control policy is generated based on the triggering conditions and the target port.
3. The method according to claim 2, characterized in that, The step of determining the triggering condition indicated by the first condition configuration instruction in response to the first configuration option includes: In response to a first jump instruction for the first configuration option, a third interface is displayed; wherein the third interface includes: a first configuration window for a first trigger condition; In response to a first object selection instruction for configuring a first sub-option of an object in the first configuration window, the target transmission line indicated by the first object selection instruction is determined to be the first judgment object; In response to a first condition configuration instruction for a first sub-option of condition configuration in the first configuration window, the judgment condition indicated by the first condition configuration instruction is determined to be the first judgment condition. In response to a first generation instruction for a generation button in the third interface used to generate trigger conditions, the first trigger condition is generated according to the first judgment object and the first judgment condition; wherein, when the first judgment object satisfies the first judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the first trigger condition.
4. The method according to claim 3, characterized in that, After displaying a third interface in response to a first jump instruction for the first configuration option, the method further includes: In response to an add instruction for the add button for adding judgment conditions in the third interface, a second configuration window for the second trigger condition is displayed in the third interface; wherein, the second configuration window includes: a second sub-option for object configuration, a second sub-option for condition configuration, and a first sub-option for relationship configuration; In response to a second object selection instruction that configures a second sub-option for the object, the target transmission line indicated by the second object selection instruction is determined to be the second judgment object; In response to a second condition configuration instruction for configuring a second sub-option of the condition, the judgment condition indicated by the second condition configuration instruction is determined to be the second judgment condition; In response to a relationship configuration instruction for configuring a first sub-option of the relationship, the logical relationship indicated by the relationship configuration instruction is determined to be a first logical relationship between the first triggering condition and the second triggering condition; In response to a second generation instruction for a generation button in the third interface used to generate trigger conditions, the second trigger condition is generated according to the second judgment object and the second judgment condition; wherein, when the second judgment object satisfies the second judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the second trigger condition.
5. The method according to claim 3, characterized in that, The step of determining the target transmission line indicated by the first object selection instruction as the first judgment object in response to the first object configuration first sub-option in the first configuration window includes: In response to a second jump instruction configuring a first sub-option for the object, a fourth interface is displayed; wherein the fourth interface includes each entity in the target scene; each entity includes a transmission line; in response to a first entity selection instruction for a target transmission line in the fourth interface, the target transmission line indicated by the first entity selection instruction is determined as the first judgment object.
6. The method according to claim 3, characterized in that, The first sub-option of the condition configuration includes: a state configuration sub-option, a relationship configuration second sub-option, and a threshold configuration sub-option; The step of responding to a first condition configuration instruction for a first sub-option of condition configuration in the first configuration window, and determining the judgment condition indicated by the first condition configuration instruction as the first judgment condition, includes: In response to a first display instruction for the status configuration sub-option, a status list is displayed in the third interface; wherein the status list includes at least one of: normal status, congestion status, and total capacity; In response to a state selection instruction for any state in the state list, the state is determined to be the target state; In response to a threshold configuration instruction for the threshold configuration sub-option, the value indicated by the threshold configuration instruction is determined to obtain the judgment threshold; In response to a second display instruction configuring a second sub-option for the relationship, a list of logical relationships is displayed in the third interface; wherein the list of logical relationships includes at least one of: greater than, greater than or equal to, equal to, less than or equal to, and less than. In response to a relationship selection instruction for any logical relationship in the list of logical relationships, the logical relationship is determined to be a second logical relationship between the target state and the judgment threshold; The first judgment condition is generated according to the target state of the first judgment object, the judgment threshold, and the second logical relationship between the target state and the judgment threshold.
7. The method according to claim 3, characterized in that, The third interface also includes a first delete button for deleting configured trigger conditions; The method further includes: In response to a first delete command for the first delete button, the triggering condition indicated by the first delete command is deleted.
8. The method according to claim 2, characterized in that, The target port includes: a port that is opened and / or closed during cargo transportation; the second configuration option includes: an open port configuration sub-option and a closed port configuration sub-option. The step of determining the port indicated by the first port configuration instruction as the target port in response to the first port configuration instruction for the second configuration option includes: In response to a second port configuration instruction for the enabled port configuration sub-option, the port indicated by the second port configuration instruction is determined to be an enabled port; In response to a third port configuration instruction for the closed port configuration sub-option, the port indicated by the third port configuration instruction is determined to be a closed port.
9. The method according to claim 8, characterized in that, The step of determining that the port indicated by the second port configuration instruction is an enabled port in response to the second port configuration sub-option includes: In response to a third jump instruction for the configured sub-option of the open port, a fourth interface is displayed; wherein, the fourth interface also includes the ports connected to each entity in the target scene; in response to a first port selection instruction for the target port in the fourth interface, the target port indicated by the first port selection instruction is determined to be an open port; The step of determining that the port indicated by the third port configuration instruction is a closed port in response to the third port configuration sub-option includes: In response to a fourth jump instruction for the configuration sub-option for the closed port, the fourth interface is displayed; in response to a second port selection instruction for the target port in the fourth interface, the target port indicated by the second port selection instruction is determined to be a closed port.
10. The method according to any one of claims 1-9, characterized in that, After the method responds to the start simulation command for the start simulation button, performs cargo transfer simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, the method further includes: In response to a data display command for any entity in the second interface, the simulation data of that entity is displayed in the second interface.
11. The method according to any one of claims 1-9, characterized in that, The second interface also includes: a stop simulation button, and / or a simulation reset button; After the method responds to the start simulation command for the start simulation button, performs cargo transfer simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, the method further includes: In response to the stop simulation command of the stop simulation button, the cargo transfer simulation of the target scenario is stopped; In response to a simulation reset command on the simulation reset button, the simulation data for simulating cargo transport in the target scenario, as well as the configured flow control policy, are deleted.
12. The method according to any one of claims 1-9, characterized in that, The first interface also includes: a second delete button, and / or a copy button; After generating a traffic control policy in response to a policy configuration instruction for the policy configuration option, according to the triggering conditions and target port indicated by the policy configuration instruction, the method further includes: In response to a copy command for the copy button, the traffic control policy indicated by the copy command is copied, and the copied traffic control policy is displayed on the first interface; In response to a second delete command for the second delete button, the flow control policy indicated by the second delete command is deleted.
13. A cargo transport simulation device, characterized in that, The device is used in an electronic device, and the device includes: The first interface display module is used to display a first interface in response to a simulation configuration command for configuring a flow control strategy for cargo transmission in a target scenario; wherein the first interface includes a start simulation button and a strategy configuration option for the flow control strategy; the flow control strategy includes: during the cargo transmission simulation of the target scenario, when the flow of cargo in the target transmission line meets the triggering condition, controlling the target port of the connecting entity in the target scenario. The policy configuration module is used to generate a flow control policy in response to a policy configuration instruction for the policy configuration option, according to the triggering conditions and target port indicated by the policy configuration instruction. The simulation module is used to respond to the start simulation command of the start simulation button, perform cargo transfer simulation on the target scenario according to the flow control strategy configured in the first interface, and display the second interface; wherein, in the second interface, the cargo is transferred between various entities.
14. The apparatus according to claim 13, characterized in that, The traffic control policy configuration options include: a first configuration option for triggering conditions and a second configuration option for ports; The policy configuration module is specifically configured to: in response to a first condition configuration instruction for the first configuration option, determine the triggering condition indicated by the first condition configuration instruction; in response to a first port configuration instruction for the second configuration option, determine that the port indicated by the first port configuration instruction is the target port; and generate a flow control policy according to the triggering condition and the target port. And / or, The strategy configuration module is specifically configured to: display a third interface in response to a first jump instruction for the first configuration option; wherein the third interface includes: a first configuration window for a first trigger condition; determining the target transmission line indicated by the first object selection instruction as a first judgment object in response to a first object selection instruction for a first sub-option of object configuration in the first configuration window; determining the judgment condition indicated by the first condition configuration instruction as a first judgment condition in response to a first condition configuration instruction for a first sub-option of condition configuration in the first configuration window; generating the first trigger condition according to the first judgment object and the first judgment condition in response to a first generation instruction for a generation button for generating trigger conditions in the third interface; wherein, when the first judgment object satisfies the first judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the first trigger condition; And / or, The device further includes: a configuration window display module, configured to, after the strategy configuration module executes a first jump instruction in response to the first configuration option and displays a third interface, execute an add instruction in response to an add button for adding judgment conditions in the third interface, and display a second configuration window for the second trigger condition in the third interface; wherein the second configuration window includes: a second sub-option for object configuration, a second sub-option for condition configuration, and a first sub-option for relationship configuration; The object configuration module is configured to, in response to a second object selection instruction for configuring a second sub-option for the object, determine the target transmission line indicated by the second object selection instruction as the second judgment object; The condition configuration module is configured to, in response to a second condition configuration instruction for the second sub-option of the condition configuration, determine the judgment condition indicated by the second condition configuration instruction as the second judgment condition; A logical relationship configuration module is configured to, in response to a relationship configuration instruction for the first sub-option of the relationship configuration, determine that the logical relationship indicated by the relationship configuration instruction is a first logical relationship between the first triggering condition and the second triggering condition; The trigger condition generation module is used to respond to a second generation instruction for the generation button in the third interface for generating trigger conditions, and generate the second trigger condition according to the second judgment object and the second judgment condition; wherein, when the second judgment object satisfies the second judgment condition, it is determined that the flow rate of goods in the target transmission line satisfies the second trigger condition; And / or, The strategy configuration module is specifically used to: display a fourth interface in response to a second jump instruction for configuring a first sub-option for the object; wherein the fourth interface includes each entity in the target scene; each entity includes a transmission line; and determine the target transmission line indicated by the first entity selection instruction as the first judgment object in response to a first entity selection instruction for the target transmission line in the fourth interface. And / or, The first sub-option of the condition configuration includes: a state configuration sub-option, a relationship configuration second sub-option, and a threshold configuration sub-option; The strategy configuration module is specifically configured to: in response to a first display instruction for the state configuration sub-option, display a state list in the third interface; wherein the state list includes at least one of: normal state, congested state, and total capacity; in response to a state selection instruction for any state in the state list, determine that state as the target state; in response to a threshold configuration instruction for the threshold configuration sub-option, determine the value indicated by the threshold configuration instruction to obtain a judgment threshold; in response to a second display instruction for the relationship configuration second sub-option, display a logical relationship list in the third interface; wherein the logical relationship list includes at least one of: greater than, greater than or equal to, equal to, less than or equal to, and less than; in response to a relationship selection instruction for any logical relationship in the logical relationship list, determine that the logical relationship is a second logical relationship between the target state and the judgment threshold; and generate the first judgment condition according to the target state of the first judgment object, the judgment threshold, and the second logical relationship between the target state and the judgment threshold. And / or, The third interface also includes a first delete button for deleting configured trigger conditions; The device further includes: a condition deletion module, configured to delete the triggering condition indicated by the first deletion instruction in response to a first deletion instruction for the first deletion button; And / or, The target port includes: a port that is opened and / or closed during cargo transportation; the second configuration option includes: an open port configuration sub-option and a closed port configuration sub-option. The policy configuration module is specifically configured to: in response to a second port configuration instruction for the enabled port configuration sub-option, determine that the port indicated by the second port configuration instruction is an enabled port; and in response to a third port configuration instruction for the disabled port configuration sub-option, determine that the port indicated by the third port configuration instruction is a disabled port. And / or, The strategy configuration module is specifically used to: display a fourth interface in response to a third jump instruction for the configured sub-option of the open port; wherein the fourth interface also includes ports connected to each entity in the target scene; and determine the target port indicated by the first port selection instruction as an open port in response to a first port selection instruction for the target port in the fourth interface. The policy configuration module is specifically used to: display the fourth interface in response to a fourth jump instruction for the configuration sub-option for the closed port; and determine that the target port indicated by the second port selection instruction is a closed port in response to a second port selection instruction for the target port in the fourth interface. And / or, The device further includes: a simulation data display module, configured to, after the simulation module executes a start simulation command in response to the start simulation button, performs cargo transfer simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, execute a data display command in response to any entity in the second interface, and display the simulation data of that entity in the second interface. And / or, The second interface also includes: a stop simulation button, and / or a simulation reset button; The device further includes: a stop simulation module, configured to, after the simulation module executes a start simulation command in response to the start simulation button, performs cargo transportation simulation on the target scenario according to the flow control strategy configured in the first interface, and displays the second interface, execute a stop simulation command in response to the stop simulation button to stop the cargo transportation simulation on the target scenario. The simulation reset module is used to delete the simulation data for simulating cargo transportation in the target scenario and the configured flow control strategy in response to the simulation reset command of the simulation reset button. And / or, The first interface also includes: a second delete button, and / or a copy button; The device further includes: a policy copying module, configured to execute a copying instruction in response to the policy configuration option in the policy configuration module, generate a traffic control policy according to the triggering conditions and target port indicated by the policy configuration instruction, and then execute a copying instruction in response to the copy button to copy the traffic control policy indicated by the copying instruction and display the copied traffic control policy in the first interface. The policy deletion module is used to delete the flow control policy indicated by the second deletion instruction in response to the second deletion button.
15. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-12.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-12.