Optimization method for slow loading of ship system process flow diagram
By optimizing the loading of ship system process flow diagrams using the MemoryCache queue method, the problem of slow loading was solved, enabling fast loading and multi-functional display, and improving on-site debugging efficiency.
Patent Information
- Application Number
- CN202511687557.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-02-27
AI Technical Summary
The slow loading of the ship system process flow diagram leads to low on-site commissioning efficiency and fails to meet the multi-scenario and multi-functional operation requirements of high-tech passenger ships.
The process flow diagram is stored and managed using a MemoryCache queue. Combined with system loading, flow diagram cache management, and interface container loading, the flow diagram loading process is optimized, including pre-loading and initialization loading, to avoid repeated startups and achieve fast loading and multi-functional display.
It improves flowchart loading speed, data refresh speed, and flowchart interface opening efficiency, avoids lag and content disorder, and meets the needs of efficient display of multiple flowcharts.
Abstract
Description
Technical Field
[0001] This invention belongs to the field of system process flow diagram loading technology, and particularly relates to an optimization method for slow loading of ship system process flow diagrams. Background Technology
[0002] The diversity and complexity of static elements, dynamic elements, dynamic characteristics, interactive characteristics, and trend elements in ship system process flow diagrams, coupled with their high degree of automation and intelligence, make optimization methods for addressing the slow loading of ship system process flow diagrams more adaptable to various scenarios and multifunctional operations, especially for some high-tech passenger ships. To support on-site commissioning before ship delivery, there is an urgent need for an effective optimization method that can take into account the number of elements and the diversity of characteristics in the process flow diagram, enabling effective, fast, and efficient loading and caching to reduce usage time for on-site commissioning. Summary of the Invention
[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a system process flow chart loading solution. This invention solves the problem of slow display of process flow charts in a propagation system by using three parts: system loading, flow chart cache management, and interface container loading. This includes preloading the flow chart, which speeds up the loading speed, refreshes data faster, opens the flow chart interface more efficiently, and prevents lag when displaying multiple flow charts or causing content errors in the flow chart interface.
[0004] To achieve the above-mentioned objectives, the technical solution provided by this invention patent is as follows: An optimization method for slow loading of ship system process flow diagrams, the method specifically includes the following steps: S1, read and cache the process flow diagram; and manage the cache of the read process flow diagram; S2, cached process flow diagram management, allows selection of specific process flow diagrams by reading and displaying cached process flow diagrams; S3, select a specific process flow diagram and initialize the loading of the selected process flow diagram; complete the loading and updating of the process flow diagram.
[0005] Furthermore, the process flow diagram is cached and managed specifically by using a MemoryCache queue to store the process flow diagram. The storage includes retrieving all process flow diagrams in the installed project, setting the cache, and caching the MemoryCache queue. Furthermore, the cache process flow diagram management specifically involves: selecting a process flow diagram to be loaded, reading the MemoryCache queue cache to obtain the selected cached process flow diagram, and setting the scaling state and interface display for the selected process flow diagram.
[0006] Furthermore, the initial loading of the selected process flow diagram specifically includes preventing repeated startup of the ship system, registering language services, initializing engineering information, and initializing other functions; other function initial loading includes alarm services, event listening, data-driven, extended alarm board, VDR, and GPS time synchronization.
[0007] Furthermore, the initial loading of the selected process flow diagram specifically involves: after the selected process flow diagram is displayed on the interface, preventing repeated startup of the ship system is prohibited to verify whether the ship system is repeatedly started and to avoid the generation of multiple system startup pages; then registering language services to enable switching between different languages of the ship system interface; initializing engineering information; caching multiple XAML configuration files contained in the selected process flow diagram to enable the display of related equipment functions in the process flow diagram; and initial loading of other functions for loading other function configuration files of the ship system to enable multi-functional display of the ship system.
[0008] Based on the above solution, the optimization method for slow loading of ship system process flow diagrams has achieved positive and beneficial results in practice: 1. The present invention provides an optimization method for slow loading of process flow diagrams in ship systems. This method consists of three parts: system loading, flow diagram cache management, and interface container loading. It is used to solve the problem of slow display of process flow diagrams in propagation systems. This includes preloading the flow diagrams, which speeds up the loading of the flow diagrams, refreshes the data faster, opens the flow diagram interface more efficiently, and prevents lag when displaying multiple flow diagrams or causing content disorder in the flow diagram interface. Detailed Implementation
[0009] To make the objectives, technical solutions, and advantages of this invention clearer, the invention is described below through specific examples. However, it should be understood that these descriptions are merely exemplary and not intended to limit the scope of the invention. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention. Example 1
[0010] An optimization method for slow loading of ship system process flow diagrams, the method specifically includes the following steps: S1, read and cache the process flow diagram; and manage the cache of the read process flow diagram; S2, cached process flow diagram management, allows selection of specific process flow diagrams by reading and displaying cached process flow diagrams; S3, select a specific process flow diagram and initialize the loading of the selected process flow diagram; complete the loading and updating of the process flow diagram.
[0011] The system addresses the issue of slow display of process flow diagrams in the propagation system through three parts: system loading, flowchart caching management, and interface container loading. This includes preloading flowcharts, which speeds up flowchart loading, refreshes data more quickly, and makes opening the flowchart interface more efficient. Multiple flowcharts will not cause lag or content corruption in the flowchart interface.
[0012] The process flow diagram is cached specifically by using a MemoryCache queue to store the process flow diagram. The storage includes retrieving all process flow diagrams from the installed project, setting the cache, and caching the MemoryCache queue. Setting up a cache involves storing flowchart data in the computer's memory; MemoryCache queue caching is a memory-based caching service that allows developers to store frequently used data in memory for fast and efficient access.
[0013] The cached process flow diagram management specifically involves: selecting a process flow diagram to be loaded, reading the MemoryCache queue cache to obtain the selected cached process flow diagram, and setting the scaling state and interface display for the selected process flow diagram.
[0014] The initialization loading of the selected process flow diagram specifically includes preventing repeated startup of the ship system, registering language services, initializing engineering information, and initializing other functions; other function initialization loading includes alarm services, event listening, data-driven, extended alarm board, VDR, and GPS time synchronization.
[0015] The initial loading of the selected process flow diagram specifically involves: after the selected process flow diagram is displayed on the interface, preventing repeated startup of the ship system is prohibited to verify whether the ship system has been started repeatedly and to avoid the generation of multiple system startup pages; then registering language services to enable switching between different languages on the ship system interface; initializing engineering information; caching multiple XAML configuration files contained in the selected process flow diagram to enable the display of related equipment functions in the process flow diagram; and initial loading of other functions is used to load other function configuration files of the ship system to enable multi-functional display of the ship system.
[0016] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications can still be made to the specific implementation of the invention or equivalent substitutions can be made to some technical features without departing from the spirit of the technical solutions of the present invention, and all such modifications and substitutions should be covered within the scope of the technical solutions claimed in the present invention.
Claims
1. An optimization method for slow loading of ship system process flow diagrams, characterized in that, The method specifically includes the following steps: S1, read and cache the process flow diagram; and manage the cache of the read process flow diagram; S2, cached process flow diagram management, allows selection of specific process flow diagrams by reading and displaying cached process flow diagrams; S3, Select a specific process flow diagram and initialize and load the selected process flow diagram; Complete the loading and updating of the process flow diagram.
2. The optimization method for slow loading of ship system process flow diagrams according to claim 1, characterized in that, The process flow diagram is cached specifically by using a MemoryCache queue to store the process flow diagram. The storage includes retrieving all process flow diagrams from the installed project, setting up a cache, and caching the MemoryCache queue.
3. The optimization method for slow loading of ship system process flow diagrams according to claim 1, characterized in that, The cached process flow diagram management specifically involves: selecting a process flow diagram to be loaded, reading the MemoryCache queue cache to obtain the selected cached process flow diagram, and setting the scaling state and interface display for the selected process flow diagram.
4. The optimization method for slow loading of ship system process flow diagrams according to claim 1, characterized in that, The initialization loading of the selected process flow diagram specifically includes preventing repeated startup of the ship system, registering language services, initializing engineering information, and initializing other functions; other function initialization loading includes alarm services, event listening, data-driven, extended alarm board, VDR, and GPS time synchronization.
5. The optimization method for slow loading of ship system process flow diagrams according to claim 1, characterized in that, The initial loading of the selected process flow diagram specifically involves: after the selected process flow diagram is displayed on the interface, the repeated startup of the ship system is prohibited to verify whether the ship system is started repeatedly and to avoid the generation of multiple system startup pages. Then, the language service is registered to realize the switching of different languages of the ship system interface, the engineering information is initialized, and the multiple XAML configuration files contained in the selected process flow diagram are cached to realize the display of the functions of related equipment in the process flow diagram. Other function initialization loading is used to load other function configuration files of the ship system, so as to realize the multi-functional display of the ship system.
Citation Information
Patent Citations
Cache processing method, terminal and computer storage medium
CN112199398A
Process flow diagram display method and system
CN114547155A
Ship processing workshop process layout optimization method based on process simulation
CN120145553A