Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a data analysis display method and system, a storage medium, a server, and a client, which customize a data analysis display scenario according to a requirement based on a cross-platform distributed structure of a message mechanism, and design the number and display form of windows according to data features and display contents, thereby completing the operation display of the entire scenario.
In order to achieve the above objects and other related objects, the present invention provides a data analysis display method applied to a server, including the following steps: receiving scene starting information sent by a client, wherein the scene starting information comprises scene identification information and a window list under a scene; creating a scene management module corresponding to the scene identification information; creating a window management module corresponding to the window under the scene; and broadcasting heartbeat information to the window under the scene based on a preset time interval, and updating the window state in the window management module based on window state information sent by the client window.
In an embodiment of the present invention, when receiving context switching information that includes target context identification information and is sent by a client, deleting a non-toolbar window in a window list under the context based on the window management module, and sending a context switching instruction that includes the target context identification information to the client based on the context management module, so that the client starts a corresponding window according to the target context identification information.
In an embodiment of the present invention, the method further includes receiving scenario exit information sent by a client, deleting all windows in the window list under the scenario based on the window management module, and logging out the window management module and the scenario management module.
Correspondingly, the invention provides a data analysis and display system which is applied to a server and comprises a receiving module, a first creating module, a second creating module and a broadcast updating module;
the receiving module is used for receiving scene starting information sent by a client, and the scene starting information comprises scene identification information and a window list under scenes;
the first creating module is used for creating a scene management module corresponding to the scene identification information;
the second creating module is used for creating a window management module corresponding to the window under the scene;
the broadcast updating module is used for broadcasting heartbeat information to the window under the scene based on a preset time interval and updating the window state in the window management module based on window state information sent by the client window.
The present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the data analysis presentation method described above.
The present invention provides a server, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is used for executing the computer program stored in the memory so as to enable the server to execute the data analysis display method.
The invention provides a data analysis display method, which is applied to a client, wherein the client comprises a toolbar window and at least one non-toolbar window, and scene configuration information and corresponding window configuration information are preset, and the method comprises the following steps:
sending scene starting information to a server through a toolbar of the toolbar window based on preset scene configuration information, wherein the scene starting information comprises scene identification information and a window list under scenes;
after the server creates a scene management module and a window management module, starting the at least one non-toolbar window through the toolbar based on preset window configuration information corresponding to the scene identification information;
and receiving the broadcast heartbeat information sent by the server based on a preset time interval based on the toolbar window and the non-toolbar window, and respectively sending window state information of the server to the server.
In an embodiment of the present invention, when the non-toolbar window does not receive the broadcast heartbeat message for a predetermined number of consecutive times, the non-toolbar window is automatically closed, and the non-toolbar window is restarted based on the toolbar window.
In an embodiment of the present invention, the method further includes broadcasting context switching information including target context identification information based on the toolbar of the toolbar window, and closing all non-toolbar windows; and starting a corresponding window based on preset window configuration information corresponding to the target scene identification information according to a scene switching instruction which is sent by the server and contains the target scene identification information.
In an embodiment of the present invention, the method further includes closing the window in the window list under the scenario based on the toolbar broadcasting scenario exit information of the toolbar window.
Correspondingly, the invention provides a data analysis display system, which is applied to a client, wherein the client comprises a toolbar window and at least one non-toolbar window, and is preset with scene configuration information and corresponding window configuration information, and comprises a sending module, a starting module and a receiving and sending module;
the sending module is used for sending scene starting information to a server through a toolbar of the toolbar window based on preset scene configuration information, and the scene starting information comprises scene identification information and a window list under scenes;
the starting module is used for starting the at least one non-toolbar window through the toolbar based on preset window configuration information corresponding to the scene identification information after the scene management module and the window management module are created by the server;
the receiving and sending module is used for receiving the broadcast heartbeat information sent by the server based on the preset time interval based on the toolbar window and the non-toolbar window, and respectively sending window state information of the receiving and sending module to the server.
The present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the data analysis presentation method described above.
The invention provides a client, comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is used for executing the computer program stored in the memory so as to enable the client to execute the data analysis display method.
The invention provides a data analysis display system which comprises the server and at least one client, wherein scene configuration information and corresponding window configuration information are preset in the client.
In an embodiment of the present invention, the at least one client is deployed at an arbitrary location.
In an embodiment of the present invention, the context configuration information includes context identification information, a toolbar queue, a window number, a window path, a message type allowed to be received and sent, and context function settings; the window configuration information comprises window size, window position, linkage relation among windows, message types allowed to be received and sent by the windows and window function setting.
As described above, the data analysis display method and system, the storage medium, the server and the client of the present invention have the following advantages:
(1) the data analysis and display of cross-platform distribution, multiple scenes and multiple window linkage is realized based on a message mechanism, and key information and characteristics of data are intuitively transmitted by means of data visualization, so that deep insight of a large number of complex data sets is realized;
(2) based on a cross-platform distributed structure of a message mechanism, a user can customize data analysis display scenes according to requirements, design the number and display forms of windows according to data characteristics and display contents, configure linkage relations among the windows through xml, realize linkage among the windows through the message mechanism, and finish operation display of the whole scene; the expansibility and the applicability are good; deep information contained in the data can be intuitively and efficiently mined, and scientific research and popularization of data application are promoted;
(3) windows under the situation can be distributed and deployed on a plurality of computers at any positions in the same network, so that the flexibility of system installation is improved;
(4) the windows of various types can be freely and flexibly combined to meet different requirements of users.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention.
It should be noted that the drawings provided in the present embodiment are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
According to the data analysis display method and system, the storage medium, the server and the client, a cross-platform distributed structure based on a message mechanism is adopted, the data analysis display scene is customized according to requirements, the window number and the display form are designed according to data characteristics and display contents, and accordingly multi-scene and multi-window linkage scene operation display is completed.
The data analysis display system comprises a server and at least one client. The server is mainly responsible for managing and maintaining scenes and window lists; the client comprises two parts, namely a toolbar and a data display window, and is mainly responsible for message delivery and response. The scene configuration file and the window configuration file are preset on the client. The scene configuration file stores scene identification information, toolbar queues, window quantity, window paths, message types allowed to be received and sent, scene function setting and other scene configuration data of each scene; the window configuration file stores window configuration data such as the type, size and position of each window, linkage relation among windows, message types allowed to be received and sent by the windows, window function setting and the like in the scene. Preferably, the scene configuration file and the window configuration file both adopt xml files. The scene identification information adopts a scene ID. The toolbar is used as a management tool of the data analysis display system, and is used for comprehensively managing the starting, switching and quitting of each scene in the system and the window setting in the scene. The invention realizes cross-platform distributed operation through the cooperation of a toolbar, a configuration file and a message mechanism. The toolbar manages creation, deletion and setting of scene windows, the configuration file stores configuration data of scenes and windows, and the message mechanism can realize information transmission among the windows across platforms, so that a plurality of windows in the display system can be deployed on computers at any positions.
As shown in fig. 1 and fig. 2, in an embodiment, the data analysis display method of the present invention is applied to a server, and includes the following steps:
step S11, receiving scenario start information sent by the client, where the scenario start information includes scenario identification information and a window list under a scenario.
Specifically, the client includes a toolbar window and at least one non-toolbar window, i.e., a contextual window. And the client sends scene starting information to the server through the toolbar of the toolbar window. The scene starting information includes scene identification information extracted from the scene configuration information and a window list under the scene.
And step S12, creating a scene management module corresponding to the scene identification information.
Specifically, after receiving the scenario start message, the server creates a scenario management module corresponding to the scenario identification information, and adds the scenario identification information to a scenario list. The scene management module is mainly responsible for registering and canceling each scene in the management system, and generates a window management module of the current scene according to the scene configuration file. Each scenario corresponds to a window management module.
And step S13, creating a window management module corresponding to the window under the scene.
Specifically, the server creates a window management module according to the windows under the situation, and adds the window list under the situation to the window management module. The window management module is mainly used for maintaining the state of each window under the scene through sending and receiving heartbeat messages broadcasted by the system. After the scene management module and the window management module are established, the server sends a scene starting ready message to a toolbar of the client side to inform the toolbar that the window can be started. And the toolbar of the client starts the contextual window according to the window configuration file, and sends a starting success message to the server after the contextual window is successfully started. The window management module of the server records the current state of the window, namely 'active', and the scene management module sets the current scene state to 'Normal'. And then, the receiving and responding actions of the service messages are executed among the windows according to the service requirements.
And step S14, broadcasting heartbeat information to the window under the scene based on a preset time interval, and updating the window state in the window management module based on the window state information sent by the client window.
Specifically, the server broadcasts heartbeat information to the windows under the scene based on a preset time interval to detect whether each window works normally. The windows under the situation comprise a toolbar window and a non-toolbar window, and responses are required after the heartbeat information is received. If the window is started successfully, the window returns an 'alive' state to the window management module; if the scene window does not receive the heartbeat message for two consecutive times, the window judges that the window is dead, and the window is automatically closed. And the toolbar window of the client executes a program to restart the window after receiving the dead window message. And after the restart is successful, the window management module of the server refreshes the window state according to the window state information.
In an embodiment of the present invention, when receiving context switching information including target context identification information sent by a client, the data analysis display method further includes deleting a non-toolbar window in a window list under the context based on the window management module, and sending a context switching instruction including the target context identification information to the client based on the context management module, so that the client starts a corresponding window according to the target context identification information. As shown in fig. 3, when scene switching is required, a toolbar in a client broadcasts scene switching information, where the scene switching information includes target scene identification information extracted from a scene configuration file, and after receiving a message, the scene management module sets a scene state to "switching" and stores the target scene identification information. And after receiving the scene switching information, the window management module deletes the current scene window in the window list under the scene and sends deletion completion information to the scene management module. And the scene management module sends scene switching information containing target scene identification information to a toolbar window of the client. And the toolbar window of the client reads the window configuration information corresponding to the target scene identification information so as to obtain the window number and the window path of the target scene, and sends starting information to the corresponding scene window. And starting the windows according to the window configuration file by each scene window, and returning starting success information to the server after the windows are started successfully. And the window management module of the server records the 'alive' state of the windows and sets the current scene state to 'Normal'. And then, the receiving and responding actions of the service messages are executed among the windows according to the service requirements of the new scene. It should be noted that, in the entire scene switching process, the toolbar window is not closed.
In an embodiment of the present invention, the data analysis display method further includes receiving scenario exit information sent by a client, deleting all windows in the window list under the scenario based on the window management module, and logging out the window management module and the scenario management module. As shown in fig. 4, when the profile exits, the toolbar of the client broadcasts profile exit information, and the server sets the profile status to "close" after receiving the profile exit information. And after the scene window of the client receives the scene exit information, closing the current scene window. After all windows (including toolbar windows) of the client are closed, sending closing success information to a server; the window management module of the server deletes all windows therebelow, logs out the whole window management module and informs the scene management module; and the scene management module executes a logout action until the quitting of the whole scene is finished.
As shown in fig. 5, the scenario includes three states, namely "Normal", "Closing", and "Changing", which correspond to three states, namely, scenario start, scenario switch, and scenario exit, respectively. Wherein, after the window is successfully started, the scene state is 'Normal'; when the scene is switched, the current scene state is 'Changing'; after the switching is completed, the scene state is 'Normal' after all new windows are started successfully; when the scene exits, the current scene state is set as 'cloning' until the whole scene finishes exiting action and closes the scene.
As shown in fig. 6, in an embodiment, the data analysis presentation system of the present invention is applied to a server, and includes a receiving module 61, a first creating module 62, a second creating module 63, and a broadcast updating module 64.
The receiving module 61 is configured to receive context start information sent by a client, where the context start information includes context identification information and a window list under a context.
The first creating module 62 is connected to the receiving module 61, and is configured to create a scenario management module corresponding to the scenario identification information.
The second creating module 63 is connected to the receiving module 61, and is configured to create a window management module corresponding to the window in the scenario.
The broadcast update module 64 is configured to broadcast heartbeat information to the windows under the scenario based on a preset time interval, and update the window state in the window management module based on the window state information sent by the client window.
It should be noted that the structures and principles of the receiving module 61, the first creating module 62, the second creating module 63, and the broadcast updating module 64 correspond to the steps in the data analysis and display method one to one, and therefore, the description is omitted here.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the x module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the x module may be called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
The storage medium of the present invention has stored thereon a computer program which, when executed by a processor, implements the data analysis presentation method described above. Preferably, the storage medium includes various media that can store program codes, such as ROM, RAM, a magnetic disk, a usb disk, a memory card, or an optical disk.
As shown in fig. 7, in an embodiment, the server of the present invention includes: a processor 71 and a memory 72.
The memory 72 is used for storing computer programs.
The memory 72 includes: various media that can store program codes, such as ROM, RAM, magnetic disk, U-disk, memory card, or optical disk.
The processor 71 is connected to the memory 72, and is configured to execute the computer program stored in the memory 72, so as to enable the server to execute the data analysis display method.
Preferably, the Processor 71 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
As shown in fig. 8 and fig. 2, in another embodiment, the data analysis display method of the present invention is applied to a client, where the client includes a toolbar window and at least one non-toolbar window, and context configuration information and corresponding window configuration information are preset. The toolbar window is mainly responsible for triggering actions of scene starting, scene switching and scene quitting of the whole system, receives information of the server and makes corresponding feedback actions. When a certain window of the computer is monitored to be dead under the situation in the system, the toolbar window can start a program to reload a failed window. The non-toolbar window is mainly used for receiving and forwarding control messages and service messages related to the functions of the window. The control messages mainly include heartbeat messages, start messages, exit messages, and the like.
The data analysis display method comprises the following steps:
step S81, sending scene starting information to a server through a toolbar of the toolbar window based on preset scene configuration information, wherein the scene starting information comprises scene identification information and a window list under scenes.
Specifically, the client sends scene starting information to the server through the toolbar of the toolbar window. The scene starting information includes scene identification information extracted from the scene configuration information and a window list under the scene. And after receiving the scene starting message, the server creates a scene management module corresponding to the scene identification information and adds the scene identification information into a scene list. The scene management module is mainly responsible for registering and canceling each scene in the management system, and generates a window management module of the current scene according to the scene configuration file. Each scenario corresponds to a window management module. And then, the server creates a window management module according to the windows under the scenes, and adds the window list under the scenes to the window management module. The window management module is mainly used for maintaining the state of each window under the scene through sending and receiving heartbeat messages broadcasted by the system. After the scene management module and the window management module are established, the server sends a scene starting ready message to a toolbar of the client side to inform the toolbar that the window can be started.
Step S82, after the server creates the scenario management module and the window management module, starting the at least one non-toolbar window through the toolbar based on the preset window configuration information corresponding to the scenario identification information.
Specifically, after receiving the start-up ready information sent by the server, the toolbar of the client starts the contextual window according to the window configuration file, and sends a start-up success message to the server after the contextual window is successfully started. The window management module of the server records the current state of the window, namely 'active', and the scene management module sets the current scene state to 'Normal'. And then, the receiving and responding actions of the service messages are executed among the windows according to the service requirements.
And step S83, receiving the broadcast heartbeat information sent by the server based on the preset time interval based on the toolbar window and the non-toolbar window, and respectively sending window state information of the server to the server.
Specifically, the server broadcasts heartbeat information to the windows under the scene based on a preset time interval to detect whether each window works normally. The windows under the situation comprise a toolbar window and a non-toolbar window, and responses are required after the heartbeat information is received. If the window is started successfully, the window returns an 'alive' state to the window management module.
In an embodiment of the present invention, when the non-toolbar window does not receive the broadcast heartbeat message for a predetermined number of consecutive times, the non-toolbar window is automatically closed, and the non-toolbar window is restarted based on the toolbar window. Specifically, if the scene window continues for a preset number of times, if the heartbeat message is not received twice, the window itself determines that the window is dead, and the window is automatically closed. And the toolbar window of the client executes a program to restart the window after receiving the dead window message. And after the restart is successful, the window management module of the server refreshes the window state according to the window state information.
In an embodiment of the present invention, the data analysis display method further includes broadcasting context switching information including target context identification information based on the toolbar of the toolbar window, and closing all non-toolbar windows; and starting a corresponding window based on preset window configuration information corresponding to the target scene identification information according to a scene switching instruction which is sent by the server and contains the target scene identification information. As shown in fig. 3, when scene switching is required, a toolbar in a client broadcasts scene switching information, where the scene switching information includes target scene identification information extracted from a scene configuration file, and after receiving a message, the scene management module sets a scene state to "switching" and stores the target scene identification information. And after receiving the scene switching information, the window management module deletes the current scene window in the window list under the scene and sends deletion completion information to the scene management module. And the scene management module sends scene switching information containing target scene identification information to a toolbar window of the client. And the toolbar window of the client reads the window configuration information corresponding to the target scene identification information so as to obtain the window number and the window path of the target scene, and sends starting information to the corresponding scene window. And starting the windows according to the window configuration file by each scene window, and returning starting success information to the server after the windows are started successfully. And the window management module of the server records the 'alive' state of the windows and sets the current scene state to 'Normal'. And then, the receiving and responding actions of the service messages are executed among the windows according to the service requirements of the new scene. It should be noted that, in the entire scene switching process, the toolbar window is not closed.
In an embodiment of the present invention, the data analysis display method further includes closing the window in the window list under the scenario based on the toolbar broadcasting scenario exit information of the toolbar window. As shown in fig. 4, when the profile exits, the toolbar of the client broadcasts profile exit information, and the server sets the profile status to "close" after receiving the profile exit information. And after the scene window of the client receives the scene exit information, closing the current scene window. After all windows (including toolbar windows) of the client are closed, sending closing success information to a server; the window management module of the server deletes all windows therebelow, logs out the whole window management module and informs the scene management module; and the scene management module executes a logout action until the quitting of the whole scene is finished.
As shown in fig. 9, in another embodiment, the data analysis presentation system of the present invention is applied to a client, where the client includes a toolbar window and at least one non-toolbar window, and context configuration information and corresponding window configuration information are preset. The data analysis and display system comprises a sending module 91, a starting module 92 and a receiving and sending module 93.
The sending module 91 is configured to send scenario start information to a server through a toolbar of the toolbar window based on preset scenario configuration information, where the scenario start information includes scenario identification information and a window list under a scenario.
The starting module 92 is connected to the sending module 91, and configured to start the at least one non-toolbar window through the toolbar based on the preset window configuration information corresponding to the context identification information after the server creates the context management module and the window management module.
The receiving and sending module 93 is configured to receive, based on the toolbar window and the non-toolbar window, broadcast heartbeat information sent by the server based on a preset time interval, and send window state information of the receiving and sending module to the server respectively.
It should be noted that the structures and principles of the sending module 91, the starting module 92 and the receiving and sending module 93 correspond to the steps in the data analysis and presentation method, and therefore are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the x module may be a processing element that is set up separately, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the x module may be called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
The storage medium of the present invention stores thereon a computer program, which when executed by a processor implements the above-described data analysis presentation method. The storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic disk, U-disk, memory card, or optical disk.
As shown in fig. 10, in an embodiment, the client of the present invention includes: a processor 101 and a memory 102.
The memory 102 is used for storing computer programs.
The memory 102 includes: various media that can store program codes, such as ROM, RAM, magnetic disk, U-disk, memory card, or optical disk.
The processor 101 is connected to the memory 102, and is configured to execute the computer program stored in the memory 102, so that the client performs the data analysis and presentation method.
Preferably, the Processor 101 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
As shown in fig. 11, in another embodiment, the data analysis presentation system of the present invention includes the server 111 and at least one of the clients 112. The client 112 is preset with context configuration information and corresponding window configuration information. Wherein the at least one client 112 collaboratively displays the window under the scenario. Each client displays one or more of the windows under the scenario.
In an embodiment of the present invention, the at least one client 112 is deployed at any position, so that the client is deployed without being limited by a physical position, and different requirements of users are met.
In an embodiment of the present invention, the context configuration information includes context identification information, a toolbar queue, a window number, a window path, a message type allowed to be received and sent, and context function settings; the window configuration information comprises window size, window position, linkage relation among windows, message types allowed to be received and sent by the windows and window function setting. The window comprises one or more of an Echart chart window, a map window and a three-dimensional window.
The data analysis presentation method of the present invention is further illustrated by the following specific examples. The following describes the specific implementation process of the system in detail by taking the scenario of hyperspectral data product analysis and display as an example:
in the hyperspectral data product analysis scenario, the scenario xml profile is as follows:
where < groupID > is a scene ID, < ViewType > is a toolbar window type, < toolbar queue > is a message queue, < Mqonoff > is used to set whether a scene receive, send message function is available, < sendprogress > sets a type of send message, and < receiveprogress > sets a type of receive message. The < winParams > can set other business functions of the scene, the < index seqNo > of the scene configuration sets the paths of a plurality of scenes of the system, wherein the < default > sets the default scene when the system is started, and the < index seqNo > of the window configuration sets the paths of a plurality of windows under the scene.
The window configuration file is as follows:
wherein < ViewType > is a window type, < xCoordinate >, < ycordinate > is used to set position coordinates of the window, < width >, < height > is used to set a size of the window, < Mqonoff > is used to set whether a window receive, send message function is available, < sendpriority > is used to set a type of a send message, < receivepriority > is used to set a type of a receive message. The < winParams > is used for setting other business functions of the window, and the < index attribute > is used for setting the computer path where the current window is located.
The toolbar comprises a scene demonstration button, a scene setting button and an exit button, wherein the scene demonstration button comprises three options of 'entering demonstration mode', 'front end display window' and 'scene switching'. "enter presentation mode" means that the current scene is in the outward presentation mode; the "front end display window" may place all the presentation windows in the scene on the top layer of the screen; the "switching scenario" is a control button for system scenario switching. The scenario setting button includes two options of "enter setting mode" and "save window setting". The "enter setting mode" may set a window in a scene; the "save window settings" may save the settings for the window into the xml configuration file corresponding to the window. The exit button is used to perform an exit action of the scenario.
For a hyperspectral data product, a message flow for starting a data product analysis display scenario is shown in fig. 12. When a user starts a scene of a display system, a toolbar sends a starting message to a server, the message comprises a scene ID obtained from a scene xml configuration file, and after the server receives a scene starting request message, a scene management module is established and the scene ID is added into a scene list. And then establishing a window management module according to the window configuration in the window xml configuration file. And after receiving the message of completing the establishment of the server scene management module and the window management module, the toolbar reads the configuration information such as the window path, the window type, the window position, the window size and the like in the window xml configuration file to execute the program starting window. In the scene starting process, the server broadcasts heartbeat messages at regular time, and after all windows are started, the heartbeat messages are received and the 'alive' state of the current window is fed back. If the window does not receive the heartbeat message for 2 times, the window is considered to be failed to start, the window needs to be reloaded through the toolbar, and the server updates the window state in the window management module in real time after the window is restarted successfully.
For a hyperspectral data product, the switching flow of the data product display scenario is shown in fig. 13. The scene switching function is initiated by a "switch scene" button in the toolbar. When the 'switch scene' button is clicked, a scene which is desired to be switched is selected on a popup interface. The toolbar reads the scene id set in the scene xml and broadcasts it through a "scene change" message. The non-toolbar window of the current scene starts a window closing process after receiving the message. When the non-toolbar windows are closed, the server window management module deletes the windows in the queue according to closing messages fed back by the non-toolbar windows. And then sending a starting message to a toolbar, and starting the window of the new scene by the toolbar according to the configuration execution program of the window xml. The startup procedure is the same as the scenario startup procedure above.
For a hyperspectral data product, the data product display scenario exit flow is shown in fig. 14. And entering a scene exit process by clicking an exit button in the toolbar. The toolbar window sends a "scene exit" message to all windows under the scene. And respectively executing an exit action after the messages received by the windows are received, sending a closing message to the server after the exit is finished, and deleting the window queue by a window management module of the server, wherein the window queue comprises toolbar windows. And if all the scene windows and the tool bars are confirmed to be deleted, the window management module is cancelled, a deletion completion message is sent to the scene management module, and the scene management module executes cancellation action to realize scene exit.
Based on the setting of the xml configuration file and the scene message transmission mechanism, the hyperspectral data product display system realizes the receiving, sending and message processing interfaces of the business messages based on the message interaction framework. And each window realizes the display of the hyperspectral data product according to the type of the received and sent service message and the processed window program. The scene comprises 8 windows, including an Echart chart window, a map window and a picture display window. The data displayed in the system comprises data product information such as hyperspectral 0-level, 1-level and 2-level data products, data product related metadata, synthetic images of any spectral band of the data products, spectral curves, image quality and the like. The user can visually check any data product image and related auxiliary data information.
In another embodiment, the analysis scenario for satellite telemetry data is also based on the above message framework, and consists of 12 windows, including an Echart chart window, a map window, and a three-dimensional window. The scenario analyzes and displays satellite subsystem data such as satellite telemetry data, satellite execution tasks and the like in a traceable manner. And the satellite state is analyzed through an algorithm, and effective support is provided for daily operation maintenance and abnormal early warning of the satellite.
In summary, the data analysis display method and system, the storage medium, the server and the client realize cross-platform distributed, multi-scenario and multi-window linked data analysis display based on a message mechanism, and key information and characteristics of data are intuitively conveyed by means of data visualization, so that deep insight of a large number of complex data sets is realized; based on a cross-platform distributed structure of a message mechanism, a user can customize data analysis display scenes according to requirements, design the number and display forms of windows according to data characteristics and display contents, configure linkage relations among the windows through xml, realize linkage among the windows through the message mechanism, and finish operation display of the whole scene; the expansibility and the applicability are good; deep information contained in the data can be intuitively and efficiently mined, and scientific research and popularization of data application are promoted; windows under the situation can be distributed and deployed on a plurality of computers at any positions in the same network, so that the flexibility of system installation is improved; the windows of various types can be freely and flexibly combined to meet different requirements of users. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.