Station simulation method, device, equipment and storage medium
By calling the injection interface of the station field element, the state of the station field element is quickly injected, which solves the problem of low efficiency of the station field simulation in the existing technology and realizes fast station field simulation.
Patent Information
- Application Number
- CN202210863826.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-07-20
AI Technical Summary
In communication-based train automatic control systems, the existing technology has low station simulation efficiency and requires setting up a simulation environment for state injection, which takes a long time.
By calling the injection interface of the station element, the status of the station element can be quickly injected, the station map configuration file is loaded, and the station interface and status simulation operation interface are displayed. The user's status adjustment instructions are received, and the display of the station interface is adjusted in response to the call of the injection interface.
It enables rapid station simulation without the need for a simulation environment, thus improving the efficiency of station simulation.
Smart Images

Figure CN115113966B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of rail transit technology, and in particular to a station simulation method, device, equipment, and storage medium. Background Art
[0002] In the Communication Based Train Control (CBTC) system, the front-end interfaces of the Automatic Train Supervision (ATS), such as the dispatching workstation, on-site workstation, monitoring terminal, and large-screen display terminal, need to display the status of each station element in the station map in real time, so that the staff can decide the next operation based on the station situation.
[0003] Currently, station diagrams are typically drawn entirely manually or automatically generated from manually drawn basic data, with other station element data saved in an XML file. Once drawn, the diagram displays a static station interface. When performing a station simulation, the XML file must be placed into a constructed station simulation environment to inject state settings into the station elements within the simulation environment, thereby simulating station conditions. However, setting up the simulation environment and injecting state settings into the simulation environment can be time-consuming, resulting in low station simulation efficiency. Summary of the Invention
[0004] The present disclosure provides a station field simulation method, apparatus, device and storage medium, which can quickly inject status into station field elements by calling the injection interface of the station field elements, thereby quickly performing station field simulation without the need for a simulation environment.
[0005] In a first aspect, an embodiment of the present disclosure provides a station simulation method, the method comprising:
[0006] Load the station map configuration file to display the station interface and the station status simulation operation interface;
[0007] Receive status adjustment instructions for station elements input by the user in the station status simulation operation interface;
[0008] In response to the state adjustment instruction, the injection interface of the station element is called to inject the state corresponding to the state adjustment instruction into the station element;
[0009] Adjust the display of the station interface according to the injection status.
[0010] In some implementations of the first aspect, the station status simulation operation interface displays status nodes corresponding to station elements for user operation and generation of status adjustment instructions.
[0011] In some implementations of the first aspect, in response to the state adjustment instruction, calling an injection interface of the station field element to inject the state corresponding to the state adjustment instruction into the station field element includes:
[0012] In response to the state adjustment instruction, the state injection code of the station interface is run to call the injection interface of the station element and inject the state corresponding to the state adjustment instruction into the station element.
[0013] In some implementations of the first aspect, in response to the state adjustment instruction, calling the injection interface of the station field element to inject the state into the station field element further includes:
[0014] In response to the state adjustment instruction, detecting a target state adjustment instruction linked to the state adjustment instruction;
[0015] If a target state adjustment instruction linked to a state adjustment instruction is detected, the injection interface of the station element corresponding to the target state adjustment instruction is called to inject the state corresponding to the target state adjustment instruction into the station element corresponding to the target state adjustment instruction.
[0016] In some implementations of the first aspect, adjusting the display of the station interface according to the injection status includes:
[0017] Detecting attribute information associated with the injected state;
[0018] If attribute information associated with the injected state is detected, the display of the station interface is adjusted according to the injected state and its associated attribute information.
[0019] In some implementations of the first aspect, adjusting the display of the station interface according to the injection status includes:
[0020] Detect hidden states associated with injected states;
[0021] If a hidden state associated with the injected state is detected, the display of the station interface is adjusted according to the injected state and its associated hidden state.
[0022] In some implementations of the first aspect, adjusting the display of the station interface according to the injection status includes:
[0023] Check whether there are mutually exclusive states in the states of the same station element;
[0024] If there are mutually exclusive states, the display of the station interface will be adjusted based on the state with the highest priority among the mutually exclusive states and the non-mutually exclusive states.
[0025] In a second aspect, an embodiment of the present disclosure provides a station field simulation device, the device comprising:
[0026] Display module, used to load station map configuration files, display station interface and station status simulation operation interface;
[0027] A receiving module is used to receive a status adjustment instruction for a station element input by a user in the station status simulation operation interface;
[0028] An injection module is used to call the injection interface of the station element in response to the state adjustment instruction, and inject the state corresponding to the state adjustment instruction into the station element;
[0029] The adjustment module is used to adjust the display of the station interface according to the injection status.
[0030] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described above.
[0031] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the method described above.
[0032] In the present disclosure, a station map configuration file can be loaded to display a station interface and a station state simulation operation interface. A state adjustment instruction for a station element input by a user in the station state simulation operation interface can be received. In response to the state adjustment instruction, an injection interface of the station element can be called to inject the state corresponding to the state adjustment instruction into the station element. Based on the injected state, the display of the station interface can be adjusted to simulate the station state. In this way, the state of the station element can be quickly injected by calling the injection interface of the station element, thereby quickly performing a station simulation without the need for a simulation environment.
[0033] It should be understood that the contents described in the Summary of the Invention section are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are provided for a better understanding of the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:
[0035] Figure 1 A flow chart of a station simulation method provided by an embodiment of the present disclosure is shown;
[0036] Figure 2 A schematic diagram of a station interface and a station status simulation operation interface provided by an embodiment of the present disclosure is shown;
[0037] Figure 3 A structural diagram of a station field simulation device provided by an embodiment of the present disclosure is shown;
[0038] Figure 4 A structural diagram of an exemplary electronic device capable of implementing an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0039] To make the purpose, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present disclosure.
[0040] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the related objects are in an "or" relationship.
[0041] In response to the problems encountered in the background technology, embodiments of the present disclosure provide a station field simulation method, apparatus, device, and storage medium. Specifically, the method can load a station field map configuration file, display a station field interface and a station field status simulation operation interface, receive a status adjustment instruction for a station field element input by a user in the station field status simulation operation interface, respond to the status adjustment instruction, call the station field element's injection interface, inject the status corresponding to the status adjustment instruction into the station field element, and adjust the display of the station field interface based on the injected status, thereby simulating the station field situation.
[0042] In this way, the state of the station element can be quickly injected by calling the injection interface of the station element, that is, the state is written to the public static attribute corresponding to the station element. It can be seen that the public static attribute does not need to rely on the simulation environment, and thus the station simulation can be quickly performed without the need for a simulation environment.
[0043] The station simulation method, apparatus, device, and storage medium provided by the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings through specific embodiments.
[0044] Figure 1A flow chart of a station simulation method provided by an embodiment of the present disclosure is shown. Figure 1 As shown, the station simulation method 100 can be applied to a dispatching workstation, a local workstation, a monitoring terminal, a large-screen display terminal, and other equipment, and includes the following steps:
[0045] S110, loading the station map configuration file, displaying the station interface and the station status simulation operation interface.
[0046] The station map configuration file may be stored in advance or obtained by requesting from a server.
[0047] The station yard interface is an interface used to simulate the station yard situation, which displays various station yard elements, such as signal elements, section elements, platform elements, switch elements, etc., without any restrictions here.
[0048] The station status simulation operation interface is where users enter status adjustment instructions for station elements. Optionally, it can intuitively display the status nodes corresponding to the station elements for convenient user operations (such as selecting / unselecting them), allowing users to quickly enter status adjustment instructions on the station status simulation operation interface.
[0049] Figure 2 A schematic diagram of a station interface and a station status simulation operation interface provided by an embodiment of the present disclosure is shown. Figure 2 As shown, the left half is the station status simulation operation interface, and the right half is the station interface.
[0050] The station status simulation interface can be built using the WPF user interface framework and the MVVM model. It displays station element nodes and their subordinate status nodes in a tree view (Button, Check Box, and Text). Buttons can pop up a more detailed status injection form, Check Boxes can inject single or multiple attributes, and Text, as a parent node, has the ability to expand and collapse the display. Furthermore, the station status simulation interface provides the ability to quickly match status nodes by entering characters.
[0051] like Figure 2 As shown in the figure, the "signal", "section" and "platform" in the station status simulation operation interface are all station element nodes, "signal red light on", "signal yellow light on", "signal green light on" and so on are all subordinate status nodes of "signal", "temporary speed limit", "section blockade", "return" and so on are all subordinate status nodes of "section", and "center car detention", "station car detention", "platform operation level" and so on are all subordinate status nodes of "platform".
[0052] For example, the user may select a signal red light node under the signal node, thereby inputting a state adjustment instruction to the device to place the signal element in a red light state.
[0053] The user can also deselect the reentry node under the segment node, thereby inputting a state adjustment instruction to the device to place the segment element in the reentry cancel state.
[0054] S120: Receive a status adjustment instruction for a station element input by a user in the station status simulation operation interface.
[0055] S130 , in response to the state adjustment instruction, calling the injection interface of the station field element to inject the state corresponding to the state adjustment instruction into the station field element.
[0056] The injection interface of the station element may refer to a public static attribute defined in the station element, which is used to implement state injection.
[0057] In some embodiments, in response to a state adjustment instruction, the state injection code of the station interface can be run. For example, the state injection code of the station interface can be accessed and run based on event binding, so as to quickly find and call the injection interface of the station element in the background, that is, to expose static properties, and then inject the state corresponding to the state adjustment instruction into the station element.
[0058] In other embodiments, in response to a state adjustment instruction, a target state adjustment instruction that is linked to, or associated with, the state adjustment instruction may be detected. If a target state adjustment instruction linked to the state adjustment instruction is detected, the state injection code of the station interface is executed to call the injection interface of the station element corresponding to the target state adjustment instruction, and inject the state corresponding to the target state adjustment instruction into the station element corresponding to the target state adjustment instruction. In this way, the associated target state adjustment instruction can be detected directly from the input state adjustment instruction, eliminating the need for the user to enter the associated target state adjustment instruction, thereby simplifying user operations and improving injection efficiency.
[0059] For example, to place a signal element in the red light state, the signal element must first be placed in the communication state. Therefore, it can be detected that the state adjustment instruction for placing the signal element in the red light state corresponds to the state adjustment instruction for placing the signal element in the communication state. Then, the signal element's injection interface can be called to inject the communication state and the red light state into the signal element. Accordingly, on the station status simulation operation interface, when the user selects the signal red light node under the signal node, the interface automatically selects the signal communication node under the signal node.
[0060] S140: Adjust the display of the station interface according to the injection status.
[0061] In some embodiments, a hidden state associated with the injected state may be detected, wherein the hidden state refers to a state for which there is no corresponding state node in the station state simulation operation interface.
[0062] If a hidden state associated with the injected state is detected, the display of the station interface is adjusted according to the injected state and its associated hidden state. Specifically, the state display of the corresponding station element in the station interface is adjusted. In this way, the associated hidden state can be further introduced on the basis of the injected state to more comprehensively simulate the station situation.
[0063] In other embodiments, attribute information associated with the injected status can be detected. If attribute information associated with the injected status is detected, the display of the station interface is adjusted according to the injected status and its associated attribute information. Specifically, the status and attribute display of the corresponding station element in the station interface are adjusted. In this way, related attribute information can be further introduced based on the injected status to further enrich the display content.
[0064] For example, if the injected status is an emergency temporary speed limit, the associated attribute information may be a speed limit value, such as a speed limit of 20 km / h. The display of the station interface is adjusted according to the emergency temporary speed limit status and its speed limit value.
[0065] At the same time, the priority of the injection status can also be detected, and the injection status can be sorted in descending order according to the priority. According to the sorted status, the display of the station interface can be adjusted to simulate the station situation more comprehensively and orderly.
[0066] In addition, it is also possible to detect whether there are mutually exclusive states in the states under the same station field element. If there are mutually exclusive states, the display of the station field interface is adjusted according to the state with the highest priority among the mutually exclusive states and the non-mutually exclusive states, so as to simulate the station field situation more orderly and avoid mutually exclusive states in the station field elements.
[0067] For example, if the status of the currently injected signal light element include red light on, yellow light on, and communication, the red light on and the yellow light on are mutually exclusive, and the priority of the red light on is higher than the priority of the yellow light on, then the status display of the signal light element in the station interface is adjusted according to the two states of red light on and communication.
[0068] It's important to note that the above detection steps can all be implemented by calling CAD SetShow on the station element to which the injected state belongs. Specifically, CAD SetShow captures the state of the corresponding injected interface and performs appropriate detection and processing based on the captured state. For inherited station elements, CAD SetShow can be overridden to implement custom processing.
[0069] According to an embodiment of the present disclosure, a status adjustment instruction for a station field element input by a user in a station field status simulation operation interface can be received. In response to the status adjustment instruction, the injection interface of the station field element is called to inject the status corresponding to the status adjustment instruction into the station field element. According to the injected status, the display of the station field interface is adjusted to simulate the station field situation, thereby quickly performing station field simulation without the need for a simulation environment.
[0070] In some embodiments, the parameters of the station elements can also be modified during the state injection process. For each station element, a unified display mode configuration object and color configuration object are accessed through the singleton mode during the drawing process. The configuration modified during the injection process can be displayed in real time on the station element.
[0071] The properties of each station element can be set through the menu, and the element fields can be accessed and set internally through reflection, which can also be reflected in the display of the station element in real time.
[0072] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0073] The above is an introduction to the method embodiment. The following is a further explanation of the solution disclosed in the present disclosure through an apparatus embodiment.
[0074] Figure 3 A structural diagram of a station field simulation device provided according to an embodiment of the present disclosure is shown. Figure 3 As shown, the station simulation device 300 may include:
[0075] The display module 310 is used to load the station map configuration file and display the station interface and the station status simulation operation interface.
[0076] The receiving module 320 is configured to receive a status adjustment instruction for a station element input by a user in the station status simulation operation interface.
[0077] The injection module 330 is configured to call the injection interface of the station element in response to the state adjustment instruction, and inject the state corresponding to the state adjustment instruction into the station element.
[0078] The adjustment module 340 is used to adjust the display of the station interface according to the injection status.
[0079] In some embodiments, the station status simulation operation interface displays status nodes corresponding to station elements for user operation and generation of status adjustment instructions.
[0080] In some embodiments, the injection module 330 is specifically configured to:
[0081] In response to the state adjustment instruction, the state injection code of the station interface is run to call the injection interface of the station element and inject the state corresponding to the state adjustment instruction into the station element.
[0082] In some embodiments, the injection module 330 is specifically configured to:
[0083] In response to the state adjustment instruction, a target state adjustment instruction linked to the state adjustment instruction is detected.
[0084] If a target state adjustment instruction linked to a state adjustment instruction is detected, the injection interface of the station element corresponding to the target state adjustment instruction is called to inject the state corresponding to the target state adjustment instruction into the station element corresponding to the target state adjustment instruction.
[0085] In some embodiments, the adjustment module 340 is specifically configured to:
[0086] Detects property information associated with the injected state.
[0087] If attribute information associated with the injected state is detected, the display of the station interface is adjusted according to the injected state and its associated attribute information.
[0088] In some embodiments, the adjustment module 340 is specifically configured to:
[0089] Detect hidden states associated with injected states.
[0090] If a hidden state associated with the injected state is detected, the display of the station interface is adjusted according to the injected state and its associated hidden state.
[0091] In some embodiments, the adjustment module 340 is specifically configured to:
[0092] Check whether there are mutually exclusive states in the states of the same field element.
[0093] If there are mutually exclusive states, the display of the station interface will be adjusted based on the state with the highest priority among the mutually exclusive states and the non-mutually exclusive states.
[0094] It is understandable that Figure 3 Each module / unit in the station simulation device 300 shown has the function of implementing each step in the station simulation method 100 provided in the embodiment of the present disclosure and can achieve its corresponding technical effects. For the sake of brevity, they will not be described here in detail.
[0095] Figure 4 A block diagram of an electronic device that can be used to implement an embodiment of the present disclosure is shown. Electronic device 400 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device 400 can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0096] like Figure 4 As shown, the electronic device 400 may include a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. Various programs and data required for the operation of the electronic device 400 may also be stored in the RAM 403. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0097] Multiple components in the electronic device 400 are connected to the I / O interface 405, including an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0098] The computing unit 401 may be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as method 100. For example, in some embodiments, the method 100 may be implemented as a computer program product, including a computer program tangibly embodied in a computer-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed onto the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the method 100 in any other appropriate manner (e.g., by means of firmware).
[0099] The various embodiments described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system comprising at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0101] In the context of the present disclosure, a computer-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0102] It should be noted that the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute method 100 and achieve the corresponding technical effect achieved by executing the method in the embodiment of the present disclosure. For the sake of concise description, they will not be repeated here.
[0103] In addition, the present disclosure also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method 100 is implemented.
[0104] To provide interaction with a user, the embodiments described above may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0105] The embodiments described above can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0106] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.
[0107] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0108] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A station simulation method, characterized in that: The method comprises: Load the station map configuration file to display the station interface and the station status simulation operation interface. The station status simulation operation interface is constructed using the WPF user interface framework and the MVVM model. The station element node and its subordinate status nodes are displayed in the form of a Tree View node, namely Button, Check Box, and Text, for user operation and to generate status adjustment instructions. Button is used to pop up a more detailed status injection form, Check Box is used to inject single or multiple attributes, and Text, as a parent node, has the function of expanding and collapsing the display. receiving a state adjustment instruction for a station element input by a user in the station state simulation operation interface; In response to the state adjustment instruction, calling the injection interface of the station field element to inject the state corresponding to the state adjustment instruction into the station field element; The step of calling the injection interface of the station element in response to the state adjustment instruction to inject the state corresponding to the state adjustment instruction into the station element includes: In response to the state adjustment instruction, access and run the state injection code of the station field interface based on the event binding method to call the injection interface of the station field element and inject the state corresponding to the state adjustment instruction into the station field element; wherein the injection interface of the station field element refers to the public static attribute defined in the station field element, which is used to implement state injection; calling the injection interface of the station field element to inject the state corresponding to the state adjustment instruction into the station field element means writing the state corresponding to the state adjustment instruction into the public static attribute corresponding to the station field element; Adjust the display of the station interface according to the injection status; The step of calling the injection interface of the station element in response to the state adjustment instruction to inject the state corresponding to the state adjustment instruction into the station element further includes: In response to the state adjustment instruction, detecting a target state adjustment instruction linked to the state adjustment instruction; if the target state adjustment instruction linked to the state adjustment instruction is detected, running the state injection code of the station field interface to call the injection interface of the station field element corresponding to the target state adjustment instruction, and injecting the state corresponding to the target state adjustment instruction into the station field element corresponding to the target state adjustment instruction; The detection is achieved by calling the CAD SetShow of the station element to which the injection state belongs. The CAD SetShow captures the state on the corresponding injection interface and performs corresponding detection processing according to the captured state.
2. The method according to claim 1, characterized in that The adjusting the display of the station interface according to the injection status includes: detecting attribute information associated with the injected state; If attribute information associated with the injected state is detected, the display of the station interface is adjusted according to the injected state and the attribute information associated therewith.
3. The method according to claim 1, characterized in that The adjusting the display of the station interface according to the injection status includes: detecting a hidden state associated with the injected state; If a hidden state associated with the injected state is detected, the display of the station interface is adjusted according to the injected state and its associated hidden state.
4. The method according to claim 1, wherein The adjusting the display of the station interface according to the injection status includes: Check whether there are mutually exclusive states in the states of the same station element; If mutually exclusive states exist, the display of the station interface is adjusted according to the state with the highest priority among the mutually exclusive states and the non-mutually exclusive states.
5. A station simulation device, characterized in that: The device comprises: A display module is used to load the station map configuration file and display the station interface and the station status simulation operation interface. The station status simulation operation interface is constructed using the WPF user interface framework and the MVVM model. The station element node and its subordinate status nodes are displayed in the form of a Tree View node, namely Button, Check Box, and Text, for user operation and to generate status adjustment instructions. The Button is used to pop up a more detailed status injection window, the Check Box is used to inject single or multiple attributes, and the Text, as a parent node, has the function of expanding and collapsing the display. A receiving module, configured to receive a status adjustment instruction for a station element input by a user in the station status simulation operation interface; An injection module is configured to, in response to the state adjustment instruction, access and run the state injection code of the station interface based on event binding to call the injection interface of the station element and inject the state corresponding to the state adjustment instruction into the station element; wherein the injection interface of the station element refers to a public static property defined in the station element and is used to implement state injection; calling the injection interface of the station element and injecting the state corresponding to the state adjustment instruction into the station element refers to writing the state corresponding to the state adjustment instruction into the public static property corresponding to the station element; An adjustment module, configured to adjust the display of the station interface according to the injection status; The injection module is further configured to, in response to the state adjustment instruction, detect a target state adjustment instruction linked to the state adjustment instruction; if a target state adjustment instruction linked to the state adjustment instruction is detected, run the state injection code of the station field interface to call the injection interface of the station field element corresponding to the target state adjustment instruction, and inject the state corresponding to the target state adjustment instruction into the station field element corresponding to the target state adjustment instruction; The detection is achieved by calling the CAD SetShow of the station element to which the injection state belongs. The CAD SetShow captures the state on the corresponding injection interface and performs corresponding detection processing according to the captured state.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Controlled display method of terminal user interface and controlled display device of terminal user interface
CN105159677A
Station yard graph display method and device, equipment and storage medium
CN114528615A