A scheduling method and device
By receiving and processing query requests from scheduling terminals in the rail transit automation system, the problem of data inconsistency when two scheduling terminals manage the same scheduling station is solved, the correctness and consistency of the scheduling mode is achieved, and the security and reliability of the system are improved.
Patent Information
- Application Number
- CN202010224015.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-26
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2040-03-26
AI Technical Summary
In the field of rail transit automation, when two dispatching terminals manage the same dispatching station, data inconsistency is easily arisen when operating the same data point with two dispatchers at the same time.
By receiving the query request sent when the first scheduling terminal logs in, it is queried whether the first scheduling terminal and the second scheduling terminal in the scheduling station record manage the same scheduling station, and whether the scheduling modes conflict. According to the comparison results of the query request and the scheduler record, perform corresponding operations to ensure data consistency.
It effectively avoids the problem of data inconsistency when two scheduling terminals control the same scheduling station, ensures the correctness and consistency of the scheduling mode, and thus improves the security and reliability of the system.
Smart Images

Figure CN111444398B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit automation, and particularly to a dispatching method in the field of rail transit automation. Background Art
[0002] The traction power supply telecontrol dispatching system usually consists of a dispatching workstation, an application server, and an interface server. A terminal program is deployed on the dispatching workstation to be responsible for interacting with the application server. An application service program is deployed on the application server to be responsible for processing the internal data of the dispatching system and interacting with the interface server. An interface program is deployed on the interface server to be responsible for communicating with external systems. Users view and manage business data through the terminal.
[0003] In the prior art, the management of business data by the terminal software of the dispatching workstation (hereinafter referred to as the dispatching terminal) is divided according to the dispatching desk. One terminal program corresponds to one dispatching desk, and each dispatching desk corresponds to managing one or more line data. The corresponding relationship between the dispatching desk and the line data is saved in a database table. Which dispatching desk the terminal needs to manage is managed through a configuration file. When the terminal program starts, it first loads the configuration file to obtain the ID of the dispatching desk to be managed, and then obtains the corresponding line data from the database according to this ID. Different dispatching terminals can make their terminal software manage the same business data by modifying the configuration file. Usually, two dispatching terminals manage the data of the same dispatching desk. In this way, two dispatching terminals correspond to two dispatchers. If the two dispatchers operate on the same data point at the same time, a data inconsistency situation will occur. However, the traction power supply telecontrol system is a system with a relatively high safety level. The dispatcher can remotely control the on-site live switch through the terminal software. If the dispatcher makes a human error and operates the wrong switch, it may cause major safety accidents such as train suspension. Summary of the Invention
[0004] The technical problem to be solved by the present invention is the problem of data inconsistency that is likely to occur when two dispatchers corresponding to two dispatching terminals respectively operate on the same data point when the two dispatching terminals manage the same dispatching desk.
[0005] To solve the above technical problem, an embodiment of the present invention provides a dispatching method, including: receiving a query request sent when a first dispatching terminal logs in; wherein, the query request includes the device information of a pre-configured first dispatching terminal and a second dispatching terminal, and the dispatching modes of the first dispatching terminal and the second dispatching terminal; the query request is used to query whether the first dispatching terminal and the second dispatching terminal manage the same dispatching desk in the dispatching desk record and whether the dispatching modes of the first dispatching terminal and the second dispatching terminal conflict;
[0006] Making a decision on the query request according to the query request and / or the corresponding dispatching console record in accordance with a preset dispatching mode, and returning a processing result to the first dispatching terminal;
[0007] Wherein, the first dispatching terminal and the second dispatching terminal are used to manage the same dispatching console, and the dispatching console record is used to record the device information of the dispatching terminal, the dispatching mode, and the information of the dispatching console managed by the dispatching terminal.
[0008] In an exemplary embodiment, the above method further has the following features: The making a decision on the query request according to the query request and / or the corresponding dispatching console record in accordance with a preset dispatching mode, and returning a processing result to the first dispatching terminal includes:
[0009] Searching for a first dispatching console record according to the query request;
[0010] If the first dispatching console record is found, comparing whether the device information of the second dispatching terminal in the found first dispatching console record is consistent with the device information of the second dispatching terminal in the query request, and performing a corresponding first operation according to the comparison result;
[0011] If the first dispatching console record is not found, searching for a second dispatching console record of the second dispatching terminal according to the query request, and performing a corresponding second operation according to the search result.
[0012] In an exemplary embodiment, the above method further has the following features: Performing a corresponding first operation according to the comparison result includes:
[0013] If the comparison result is consistent, checking whether the second dispatching terminal is logged in; performing a corresponding third operation according to the check result;
[0014] If the comparison result is inconsistent, returning a reply indicating a device configuration error to the first dispatching terminal.
[0015] In an exemplary embodiment, the above method further has the following features: Performing a corresponding second operation according to the search result includes:
[0016] If the second dispatching console record is found, returning a reply indicating a device configuration error;
[0017] If the second dispatching console record is not found, generating a dispatching console record according to the query request, setting the status of the first dispatching terminal in the dispatching console; returning a reply indicating a successful login to the first dispatching terminal; wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the dual-operator mode.
[0018] In an exemplary embodiment, the above method further has the following features: Performing a corresponding third operation according to the inspection result includes:
[0019] If the second dispatching terminal has logged in, determine whether the dispatching station in the first dispatching station record is the same as the dispatching station in the second dispatching station record. If they are the same, determine whether there is a conflict between the dispatching mode in the second dispatching station record corresponding to the second dispatching terminal and the dispatching mode in the first dispatching station record; Perform a corresponding fourth operation according to the confirmation result;
[0020] If the second dispatching terminal has not logged in, set the dispatching station corresponding to the first dispatching terminal and the dispatching mode of the first dispatching terminal in the first dispatching station record; Set the status of the first dispatching terminal in the dispatching station; Return a reply indicating successful login to the first dispatching terminal.
[0021] In an exemplary embodiment, the above method further has the following features: Performing a corresponding fourth operation according to the determination result includes:
[0022] If the determination result is no conflict, set the status of the first dispatching terminal in the dispatching station and return a reply indicating successful login to the first dispatching terminal;
[0023] Wherein, the status includes the dispatching modes of the two dispatching terminals in the double-operator mode, the remaining time of the dispatching mode, and the online status;
[0024] If the determination result is a conflict, return a reply indicating a dispatching mode conflict to the first dispatching terminal.
[0025] In an exemplary embodiment, the above method further has the following features: After returning a reply indicating successful login to the first dispatching terminal, if an operation mode switching instruction sent by the first dispatching terminal is received; wherein, the operation mode switching instruction includes the device information of the first dispatching terminal;
[0026] Search for the first dispatching station record according to the device information of the first dispatching terminal;
[0027] If the dispatching mode in the found first dispatching station record is the mutually exclusive mode, determine whether the operation mode can be switched, and perform a corresponding fifth operation according to the determination result.
[0028] In an exemplary embodiment, the above method further has the following features:
[0029] Determine whether the operation mode can be switched, and perform a corresponding fifth operation according to the determination result, including:
[0030] If the second dispatching terminal has logged in and the operation mode of the second dispatching terminal is control, no operation mode switching is performed, and a reply indicating a failure to switch is returned to the first dispatching terminal;
[0031] If the second dispatching terminal has logged in and the operation mode of the second dispatching terminal is viewing, operation mode switching is performed, and a reply indicating a successful switch is returned to the dispatching terminal.
[0032] To solve the above problems, the present invention also provides a dispatching device, including: a memory and a processor;
[0033] The memory is used to store a program for dispatching;
[0034] The processor is used to read and execute the program for dispatching and perform the following operations:
[0035] Receive a query request sent when the first dispatching terminal logs in; wherein, the query request includes pre-configured device information of the first dispatching terminal and the second dispatching terminal, and the dispatching modes of the first dispatching terminal and the second dispatching terminal; the query request is used to query whether the first dispatching terminal and the second dispatching terminal manage the same dispatching station in the dispatching station record and whether the dispatching modes of the first dispatching terminal and the second dispatching terminal conflict;
[0036] Make a decision on the query request according to the query request and / or the corresponding dispatching station record according to a preset dispatching mode, and return a processing result to the first dispatching terminal;
[0037] Wherein, the first dispatching terminal and the second dispatching terminal are used to manage the same dispatching station, and the dispatching station record is used to record the device information of the dispatching terminal, the information of the dispatching terminal and the dispatching station managed by the dispatching terminal.
[0038] In an exemplary embodiment, the above device further has the following characteristics: the making a decision on the query request according to the query request and / or the corresponding dispatching station record according to a preset dispatching mode, and returning a processing result to the first dispatching terminal includes:
[0039] Find a first dispatching station record according to the query request;
[0040] If the first dispatching station record is found, compare whether the device information of the second dispatching terminal in the found first dispatching station record is consistent with the device information of the second dispatching terminal in the query request, and perform a corresponding first operation according to the comparison result;
[0041] If the first dispatching desk record is not found, search for the second dispatching desk record of the second dispatching terminal according to the query request, and perform a corresponding second operation according to the search result.
[0042] In an exemplary embodiment, the above device further has the following features: performing a corresponding first operation according to the comparison result, including:
[0043] If the comparison result is consistent, check whether the second dispatching terminal is logged in; perform a corresponding third operation according to the check result;
[0044] If the comparison result is inconsistent, return a reply indicating a device configuration error to the first dispatching terminal.
[0045] In an exemplary embodiment, the above device further has the following features: performing a corresponding second operation according to the search result, including:
[0046] If the second dispatching desk record is found, return a reply indicating a device configuration error;
[0047] If the second dispatching desk record is not found, generate a dispatching desk record according to the query request, set the status of the first dispatching terminal in the dispatching desk; return a reply indicating successful login to the first dispatching terminal; wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the dual-operator mode.
[0048] In an exemplary embodiment, the above device further has the following features: performing a corresponding third operation according to the check result includes:
[0049] If the second dispatching terminal has logged in, determine whether the dispatching desk in the first dispatching desk record is consistent with the dispatching desk in the second dispatching desk record. If they are consistent, determine whether there is a conflict between the dispatching mode of the second dispatching desk record corresponding to the second dispatching terminal and the dispatching mode in the first dispatching desk record; perform a corresponding fourth operation according to the confirmation result;
[0050] If the second dispatching terminal has not logged in, set the dispatching desk corresponding to the first dispatching terminal and the dispatching mode of the first dispatching terminal in the first dispatching desk record; set the status of the first dispatching terminal in the dispatching desk; return a reply indicating successful login to the first dispatching terminal.
[0051] In an exemplary embodiment, the above device further has the following features: performing a corresponding fourth operation according to the determination result includes:
[0052] If the determination result is no conflict, set the status of the first dispatching terminal in the dispatching desk, and return a reply indicating successful login to the first dispatching terminal;
[0053] Among them, the state includes the scheduling mode, the remaining time of the scheduling mode, and the online state of the two scheduling terminals in the double-seat mode;
[0054] If the determination result is a conflict, a reply indicating a scheduling mode conflict is returned to the first scheduling terminal.
[0055] In an exemplary embodiment, the above device further has the following features: after returning a reply indicating successful login to the first scheduling terminal, if an operation mode switching instruction sent by the first scheduling terminal is received; among them, the operation mode switching instruction includes the device information of the first scheduling terminal;
[0056] Search for the first dispatch console record according to the device information of the first scheduling terminal;
[0057] If the scheduling mode in the found first dispatch console record is a mutually exclusive mode, determine whether the operation mode can be switched, and execute a corresponding fifth operation according to the determination result.
[0058] In an exemplary embodiment, the above device further has the following features: determining whether the operation mode can be switched, and executing a corresponding fifth operation according to the determination result, including:
[0059] If the second scheduling terminal has logged in and the operation mode of the second scheduling terminal is control, do not switch the operation mode, and return a reply indicating a failed switch to the first scheduling terminal;
[0060] If the second scheduling terminal has logged in and the operation mode of the second scheduling terminal is view, switch the operation mode, and return a reply indicating a successful switch to the scheduling terminal.
[0061] In summary, the method and device provided by the embodiments of the present invention can avoid the problem of inconsistent data (the data inconsistency is mainly the inconsistent scheduling mode, and also includes the inconsistent remaining time of the scheduling mode, the online state, etc.) when two scheduling terminals control the same dispatch console. Description of the Drawings
[0062] Figure 1 It is a schematic diagram of the scheduling method according to Embodiment 1 of the present invention.
[0063] Figure 2 It is a flowchart of the scheduling method according to Embodiment 2 of the present invention.
[0064] Figure 3 It is a flowchart of the response processing to the query request according to Embodiment 2 of the present invention.
[0065] Figure 4 It is a schematic diagram of the processing of the operation switching command according to Embodiment 2 of the present invention.
[0066] Figure 5 Schematic diagram of a scheduling device according to Embodiment 3 of the present invention. Detailed implementation manners
[0067] To make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily.
[0068] Embodiment 1
[0069] Figure 1 Schematic diagram of the scheduling method according to Embodiment 1 of the present invention. As Figure 1 shown, the scheduling method of this embodiment includes:
[0070] S11. Receive a query request sent when the first scheduling terminal logs in.
[0071] In an exemplary embodiment, the query request includes device information of a pre-configured first scheduling terminal and a second scheduling terminal, and scheduling modes of the first scheduling terminal and the second scheduling terminal; the query request is used to query whether the first scheduling terminal and the second scheduling terminal manage the same scheduling console in the scheduling console record and whether the scheduling modes of the first scheduling terminal and the second scheduling terminal conflict.
[0072] In an exemplary embodiment, the first scheduling terminal and the second scheduling terminal are used to manage the same scheduling console.
[0073] S12. Make a decision on the query request according to the query request and / or the corresponding tuning console record according to a preset scheduling mode, and return a processing result to the first scheduling terminal.
[0074] In an exemplary embodiment, the scheduling console record is used to record device information of the scheduling terminal, a scheduling mode, and scheduling console information managed by the scheduling terminal.
[0075] In an exemplary embodiment, making a decision on the query request according to the query request and / or the corresponding scheduling console record according to a preset scheduling mode includes:
[0076] Find a first scheduling console record according to the query request;
[0077] If the first scheduling console record is found, compare whether the device information of the second scheduling terminal in the found first scheduling console record is consistent with the device information of the second scheduling terminal in the query request, and perform a corresponding first operation according to the comparison result;
[0078] If the first dispatching desk record is not found, search for the second dispatching desk record of the second dispatching terminal according to the query request, and perform a corresponding second operation according to the search result.
[0079] In an exemplary embodiment, performing a corresponding first operation according to the comparison result includes:
[0080] If the comparison result is consistent, check whether the second dispatching terminal is logged in; perform a corresponding third operation according to the check result;
[0081] If the comparison result is inconsistent, return a reply indicating a device configuration error to the first dispatching terminal.
[0082] In an exemplary embodiment, performing a corresponding second operation according to the search result includes:
[0083] If the second dispatching desk record is found, return a reply indicating a device configuration error;
[0084] If the second dispatching desk record is not found, generate a dispatching desk record according to the query request, set the status of the first dispatching terminal in the dispatching desk; return a reply indicating successful login to the first dispatching terminal; wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the double-operator mode.
[0085] In an exemplary embodiment, performing a corresponding third operation according to the check result includes:
[0086] If the second dispatching terminal has been logged in, determine whether the dispatching desk in the first dispatching desk record is the same as the dispatching desk in the second dispatching desk record. If they are the same, determine whether there is a conflict between the dispatching mode in the second dispatching desk record corresponding to the second dispatching terminal and the dispatching mode in the first dispatching desk record; perform a corresponding fourth operation according to the confirmation result;
[0087] If the second dispatching terminal is not logged in, set the dispatching desk corresponding to the first dispatching terminal and the dispatching mode of the first dispatching terminal in the first dispatching desk record; set the status of the first dispatching terminal in the dispatching desk; return a reply indicating successful login to the first dispatching terminal.
[0088] In an exemplary embodiment, performing a corresponding fourth operation according to the determination result includes:
[0089] If the determination result is non-conflicting, set the status of the first dispatching terminal in the dispatching desk, and return a reply indicating successful login to the first dispatching terminal;
[0090] wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the double-operator mode;
[0091] If the determined result is a conflict, a reply indicating a scheduling mode conflict is returned to the first dispatching terminal.
[0092] In an exemplary embodiment, after returning a reply indicating successful login to the first dispatching terminal, if an operation mode switching instruction sent by the first dispatching terminal is received; wherein, the operation mode switching instruction includes device information of the first dispatching terminal;
[0093] Search for the first dispatching desk record according to the device information of the first dispatching terminal;
[0094] If the scheduling mode in the found first dispatching desk record is a mutually exclusive mode, determine whether the operation mode can be switched, and execute a corresponding fifth operation according to the determination result.
[0095] In an exemplary embodiment, determining whether the operation mode can be switched, and executing a corresponding fifth operation according to the determination result includes:
[0096] If the second dispatching terminal has logged in and the operation mode of the second dispatching terminal is control, do not switch the operation mode, and return a reply indicating a failed switch to the first dispatching terminal;
[0097] If the second dispatching terminal has logged in and the operation mode of the second dispatching terminal is view, switch the operation mode, and return a reply indicating a successful switch to the dispatching terminal.
[0098] Embodiment Two
[0099] Figure 2 This is a flowchart of the dispatching method according to Embodiment Two of the present invention. As Figure 2 shown, the steps are as follows:
[0100] Step 201: Deploy three configuration files for each dispatching terminal.
[0101] Among them, the three configuration files are LocalDevice.xml, PairDevice.xml, and Dis p atcher.xml.
[0102] LocalDevice.xml sets the device type and ID of this dispatching desk workstation (i.e., this dispatching terminal), and the fragment is as follows:
[0103] <localdevice>< / localdevice>
[0104] <devicetype> 1< / devicetype>
[0105] <deviceid> 1< / deviceid>
[0106]
[0107] The PairDevice.xml sets the device type and ID of another device paired with this dispatching console workstation (i.e., the dispatching terminal paired with this dispatching terminal). The fragment is as follows:
[0108] <pairdevice>< / pairdevice>
[0109] <devicetype> 1< / devicetype>
[0110] <deviceid> 2< / deviceid>
[0111]
[0112] The Dispatcher.xml sets the dispatching console ID of this dispatching console workstation (i.e., this dispatching terminal). The fragment is as follows:
[0113] <dispatchers>< / dispatchers>
[0114] <dispatcher> 1< / dispatcher>
[0115]
[0116] Step 202: The dispatching terminal obtains the device type, device ID, and managed dispatching console ID of the local machine and the paired machine.
[0117] When the dispatching terminal starts up, it obtains the device type (DeviceType) and device ID (DeviceId) of the local machine and the paired machine by loading LocalDevice.xml and PairDevice.xml respectively, and obtains the managed dispatching console ID by loading Dispatcher.xml.
[0118] Step 203: The user inputs the username and password on the dispatching terminal to log in to the dispatching terminal.
[0119] It should be noted that only users with operation permissions can operate on the dispatching terminal. The user inputs the username and password on the dispatching terminal and can successfully log in to the dispatching terminal only after passing the verification of the traction power supply telecontrol system.
[0120] Step 204: The dispatching terminal sends a query request to the service module.
[0121] After the dispatching terminal logs in successfully, it sends a dispatching mode query request to the service module (hereinafter referred to as the service module for short) deployed on the application server and specifically handling dispatching mode services. Among them, the function of the service module is to cache the mode information of the dispatching terminal and perform associated management on paired dispatching terminals.
[0122] In an exemplary embodiment, the scheduling modes are divided into dual-operator concurrent mode, dual-operator mutual exclusion mode, dual-operator concurrent supervision mode, and dual-operator mutual exclusion supervision mode; their specific functions are as follows:
[0123] · Dual-operator concurrent mode: Both scheduling terminals can perform viewing and control operations, that is, both are in control mode.
[0124] · Dual-operator mutual exclusion mode: Mutual exclusion means operation mutual exclusion, that is, only one of the two scheduling terminals can control, and the other scheduling terminal can only view and cannot control.
[0125] · Dual-operator concurrent supervision mode: Both scheduling terminals can perform viewing and control operations, but before performing a control operation, a control request needs to be sent to the other party first, and the control operation can be executed only after the other party confirms the request, otherwise the control cannot continue.
[0126] · Dual-operator mutual exclusion supervision mode: Only one of the two scheduling terminals can control, and the other can only view and cannot control; the scheduling terminal that can perform control needs to send a control request to the other scheduling terminal before performing a control operation, and the control operation can be performed only after the other party confirms the request, otherwise the control cannot continue.
[0127] Step 205: The service module responds to the query request of the scheduling terminal.
[0128] The process of the service module for response processing (as Figure 3 shown) is as follows:
[0129] 1) Search for the dispatch console record of this scheduling terminal (i.e., the first dispatch console record in the above text). If the dispatch console record of this scheduling terminal is found, go to step 2); if the dispatch console record is not found, go to step 3).
[0130] 2) Determine whether the device information of the paired machine in the dispatch console record of this scheduling terminal (i.e., the scheduling terminal paired with this scheduling terminal in the above text, i.e., the second scheduling terminal) is consistent with the device information of the paired machine in the query request. If they are consistent, go to step 4); otherwise, go to step 10).
[0131] 3) Search for the dispatch console record of the paired machine (i.e., the second dispatch console record). If the dispatch console record of the paired machine is found, go to step 10); otherwise, go to step 11).
[0132] 4) Determine whether the paired machine has logged in. If it has logged in, go to step 5); otherwise, go to step 6).
[0133] 5) Determine whether the dispatch console and scheduling mode of the paired machine are consistent with the dispatch console and scheduling mode in the query request. If they are consistent, go to step 7); otherwise, go to step 8).
[0134] 6) Set the console and dispatching mode of this dispatching terminal in the console record, and proceed to step 7).
[0135] 7) Set the login status of the console terminal, clear the timeout count, and proceed to step 9).
[0136] 8) Return a receipt indicating a dispatching mode conflict to this dispatching terminal.
[0137] 9) Return a receipt indicating that the dispatching mode is valid to this dispatching terminal.
[0138] 10) Return a receipt indicating a device configuration error to this dispatching terminal.
[0139] 11) Generate a console record, which records the device information of this dispatching terminal, the device information of the paired machine, the dispatching modes of this dispatching terminal and the paired machine, the remaining time, and the online status, and proceed to step 9).
[0140] Step 206: After returning a response indicating that the dispatching mode is valid to this dispatching terminal, if the service module receives an operation mode switching command from this dispatching terminal, it processes the operation mode switching command.
[0141] In an exemplary embodiment, the two operation modes are: control mode and view mode. The control mode allows the user to view and control the console data managed by the dispatching terminal; the view mode only allows the user to view.
[0142] It should be noted that the dispatching terminal can actively switch the operation mode. When the dispatching terminal is in different operation modes, the operation permissions for the system are different. The user can, according to their own permissions and needs, actively switch the operation mode on the dispatching terminal. After the user performs the mode switching operation, the dispatching terminal sends an operation mode switching command to the service module.
[0143] The steps for processing the mode switching command (the process is as Figure 4 shown) are as follows:
[0144] A) Search for the console record of this dispatching terminal. If found, proceed to step B); otherwise, proceed to step C).
[0145] B) Judge the dispatching mode of this dispatching terminal. If it is the mutually exclusive mode, proceed to D); otherwise, proceed to E).
[0146] C) Return a receipt indicating that the console record cannot be found to this dispatching terminal.
[0147] D) Judge whether it is a request to switch the operation mode. If so, proceed to step F); otherwise, proceed to step G).
[0148] F) If the pairing machine is logged in and the operation mode of the pairing machine is control, proceed to step E), otherwise proceed to step G).
[0149] E) Return a receipt indicating that the operation mode cannot be switched to the present dispatching terminal.
[0150] G) Set the operation mode of the present dispatching terminal to control and return a receipt indicating successful operation mode switching to the present dispatching terminal.
[0151] Embodiment III
[0152] Figure 5 is a schematic diagram of the dispatching device according to the embodiment of the present invention. As Figure 5 shown, the dispatching device of this embodiment includes: a memory and a processor.
[0153] The memory is used to store a program for performance testing;
[0154] The processor is used to read and execute the program for performance testing and perform the following operations:
[0155] Receive a query request sent when the first dispatching terminal logs in; wherein, the query request includes the device information of the pre-configured first dispatching terminal and second dispatching terminal, and the dispatching modes of the first dispatching terminal and the second dispatching terminal; the query request is used to query whether the first dispatching terminal and the second dispatching terminal manage the same dispatching station in the dispatching station record and whether the dispatching modes of the first dispatching terminal and the second dispatching terminal conflict;
[0156] Make a decision on the query request according to the query request and / or the corresponding dispatching station record according to the preset dispatching mode, and return a processing result to the first dispatching terminal;
[0157] Wherein, the first dispatching terminal and the second dispatching terminal are used to manage the same dispatching station, and the dispatching station record is used to record the device information of the dispatching terminal, the information of the dispatching terminal and the dispatching station managed by the dispatching terminal.
[0158] In an exemplary embodiment, the making a decision on the query request according to the query request and / or the corresponding dispatching station record according to the preset dispatching mode, and returning a processing result to the first dispatching terminal includes:
[0159] Find the first dispatching station record according to the query request;
[0160] If the first dispatching station record is found, compare whether the device information of the second dispatching terminal in the found first dispatching station record is consistent with the device information of the second dispatching terminal in the query request, and perform a corresponding first operation according to the comparison result;
[0161] If the first dispatching desk record is not found, search for the second dispatching desk record of the second dispatching terminal according to the query request, and perform a corresponding second operation according to the search result.
[0162] In an exemplary embodiment, performing a corresponding first operation according to the comparison result includes:
[0163] If the comparison result is consistent, check whether the second dispatching terminal is logged in; perform a corresponding third operation according to the check result;
[0164] If the comparison result is inconsistent, return a reply indicating a device configuration error to the first dispatching terminal.
[0165] In an exemplary embodiment, performing a corresponding second operation according to the search result includes:
[0166] If the second dispatching desk record is found, return a reply indicating a device configuration error;
[0167] If the second dispatching desk record is not found, generate a dispatching desk record according to the query request, set the status of the first dispatching terminal in the dispatching desk; return a reply indicating successful login to the first dispatching terminal; wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the double-seat mode.
[0168] In an exemplary embodiment, performing a corresponding third operation according to the check result includes:
[0169] If the second dispatching terminal has been logged in, determine whether the dispatching desk in the first dispatching desk record is consistent with the dispatching desk in the second dispatching desk record. If they are consistent, determine whether there is a conflict between the dispatching mode in the second dispatching desk record corresponding to the second dispatching terminal and the dispatching mode in the first dispatching desk record; perform a corresponding fourth operation according to the confirmation result;
[0170] If the second dispatching terminal is not logged in, set the dispatching desk corresponding to the first dispatching terminal and the dispatching mode of the first dispatching terminal in the first dispatching desk record; set the status of the first dispatching terminal in the dispatching desk; return a reply indicating successful login to the first dispatching terminal.
[0171] In an exemplary embodiment, performing a corresponding fourth operation according to the determination result includes:
[0172] If the determination result is non-conflicting, set the status of the first dispatching terminal in the dispatching desk, and return a reply indicating successful login to the first dispatching terminal;
[0173] Wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the double-seat mode;
[0174] If the determined result is a conflict, a reply indicating a scheduling mode conflict is returned to the first scheduling terminal.
[0175] In an exemplary embodiment, after returning a reply indicating successful login to the first scheduling terminal, if an operation mode switching instruction sent by the first scheduling terminal is received; wherein, the operation mode switching instruction includes device information of the first scheduling terminal;
[0176] Search for the first dispatching desk record according to the device information of the first scheduling terminal;
[0177] If the scheduling mode in the found first dispatching desk record is a mutually exclusive mode, determine whether the operation mode can be switched, and perform a corresponding fifth operation according to the determination result.
[0178] In an exemplary embodiment, determining whether the operation mode can be switched and performing a corresponding fifth operation according to the determination result includes:
[0179] If the second scheduling terminal has logged in and the operation mode of the second scheduling terminal is control, do not switch the operation mode, and return a reply indicating a failed switch to the first scheduling terminal;
[0180] If the second scheduling terminal has logged in and the operation mode of the second scheduling terminal is view, switch the operation mode, and return a reply indicating a successful switch to the scheduling terminal.
[0181] Those of ordinary skill in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disc, etc. Optionally, all or part of the steps of the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each module / unit in the above embodiments can be implemented in the form of hardware or in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
[0182] The above are only the preferred embodiments of the present invention. Of course, the present invention can also have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these corresponding changes and deformations should all fall within the protection scope of the claims attached to the present invention.
Claims
1. A scheduling method, characterized in that, it includes: Receiving a query request sent when the first scheduling terminal logs in; wherein, the query request includes the device information of the pre-configured first scheduling terminal and second scheduling terminal, and the scheduling modes of the first scheduling terminal and the second scheduling terminal; the query request is used to query whether the first scheduling terminal and the second scheduling terminal manage the same scheduling console in the scheduling console record and whether the scheduling modes of the first scheduling terminal and the second scheduling terminal conflict; Making a decision on the query request according to the query request and / or the corresponding scheduling console record according to a preset scheduling mode, and returning a processing result to the first scheduling terminal, including: searching for the first scheduling console record according to the query request; If the first scheduling console record is found, comparing whether the device information of the second scheduling terminal in the found first scheduling console record is consistent with the device information of the second scheduling terminal in the query request. If the comparison result is consistent, checking whether the second scheduling terminal has logged in; performing a corresponding third operation according to the check result; If the comparison result is inconsistent, returning a reply indicating a device configuration error to the first scheduling terminal; If the first scheduling console record is not found, searching for the second scheduling console record of the second scheduling terminal according to the query request. If the second scheduling console record is found, returning a reply indicating a device configuration error; If the second scheduling console record is not found, generating a scheduling console record according to the query request, setting the status of the first scheduling terminal in the scheduling console; returning a reply indicating successful login to the first scheduling terminal; wherein, the status includes the scheduling modes of the two scheduling terminals in dual-seat mode, the remaining time of the scheduling mode, and the online status; wherein, the first scheduling terminal and the second scheduling terminal are used to manage the same scheduling console, and the scheduling console record is used to record the device information of the scheduling terminal, the scheduling mode, and the scheduling console information managed by the scheduling terminal.
2. The method according to claim 1, characterized in that, Performing a corresponding third operation according to the check result includes: If the second scheduling terminal has logged in, determining whether the scheduling console in the first scheduling console record is consistent with the scheduling console in the second scheduling console record. If they are consistent, determining whether the scheduling modes in the second scheduling console record corresponding to the second scheduling terminal and the first scheduling console record conflict; performing a corresponding fourth operation according to the confirmation result; If the second scheduling terminal has not logged in, setting the scheduling console corresponding to the first scheduling terminal and the scheduling mode of the first scheduling terminal in the first scheduling console record; setting the status of the first scheduling terminal in the scheduling console; returning a reply indicating successful login to the first scheduling terminal.
3. The method according to claim 2, characterized in that, Performing a corresponding fourth operation according to the determination result includes: If the determination result is non-conflicting, setting the status of the first scheduling terminal in the scheduling console, and returning a reply indicating successful login to the first scheduling terminal; wherein, the status includes the scheduling modes of the two scheduling terminals in dual-seat mode, the remaining time of the scheduling mode, and the online status; If the determined result is a conflict, return a reply indicating a scheduling mode conflict to the first scheduling terminal.
4. The method according to any one of claims 1-3, characterized in that: after returning a reply indicating successful login to the first scheduling terminal, if an operation mode switching instruction sent by the first scheduling terminal is received; wherein, the operation mode switching instruction includes device information of the first scheduling terminal; search for the first dispatching desk record according to the device information of the first scheduling terminal; if the scheduling mode in the found first dispatching desk record is a mutually exclusive mode, determine whether the operation mode can be switched, and perform a corresponding fifth operation according to the determination result.
5. The method according to claim 4, characterized in that: determine whether the operation mode can be switched, and perform a corresponding fifth operation according to the determination result, including: if the second scheduling terminal has logged in and the operation mode of the second scheduling terminal is control, do not switch the operation mode, and return a reply indicating a failed switch to the first scheduling terminal; if the second scheduling terminal has logged in and the operation mode of the second scheduling terminal is view, switch the operation mode, and return a reply indicating a successful switch to the scheduling terminal.
6. A scheduling device, comprising: a memory and a processor; characterized in that: the memory is used to store a program for scheduling; the processor is used to read and execute the program for scheduling and perform the following operations: receive a query request sent when the first scheduling terminal logs in; wherein, the query request includes device information of the first scheduling terminal and the second scheduling terminal configured in advance, and the scheduling modes of the first scheduling terminal and the second scheduling terminal; the query request is used to query whether the first scheduling terminal and the second scheduling terminal manage the same dispatching desk in the dispatching desk record and whether the scheduling modes of the first scheduling terminal and the second scheduling terminal conflict; make a decision on the query request according to the query request and / or the corresponding dispatching desk record according to a preset scheduling mode, and return a processing result to the first scheduling terminal, including: search for the first dispatching desk record according to the query request; if the first dispatching desk record is found, compare whether the device information of the second scheduling terminal in the found first dispatching desk record is consistent with the device information of the second scheduling terminal in the query request. If the comparison result is consistent, check whether the second scheduling terminal has logged in; perform a corresponding third operation according to the check result; if the comparison result is inconsistent, return a reply indicating a device configuration error to the first scheduling terminal; if the first dispatching desk record is not found, search for the second dispatching desk record of the second scheduling terminal according to the query request. If the second dispatching desk record is found, return a reply indicating a device configuration error; If no second dispatching console record is found, a dispatching console record is generated according to the query request, and the status of the first dispatching terminal in the dispatching console is set; a reply indicating successful login is returned to the first dispatching terminal; wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the dual-operator mode. Wherein, the first dispatching terminal and the second dispatching terminal are used to manage the same dispatching console, and the dispatching console record is used to record the device information of the dispatching terminal, the dispatching mode, and the dispatching console information managed by the dispatching terminal.
7. The device according to claim 6, characterized in that performing a corresponding third operation according to the inspection result includes: If the second dispatching terminal has logged in, determine whether the dispatching console in the first dispatching console record is the same as the dispatching console in the second dispatching console record. If they are the same, determine whether there is a conflict between the dispatching mode in the second dispatching console record corresponding to the second dispatching terminal and the dispatching mode in the first dispatching console record; perform a corresponding fourth operation according to the confirmation result; If the second dispatching terminal has not logged in, set the dispatching console corresponding to the first dispatching terminal and the dispatching mode of the first dispatching terminal in the first dispatching console record; set the status of the first dispatching terminal in the dispatching console; return a reply indicating successful login to the first dispatching terminal.
8. The device according to claim 6, characterized in that performing a corresponding fourth operation according to the determination result includes: If the determination result is no conflict, set the status of the first dispatching terminal in the dispatching console, and return a reply indicating successful login to the first dispatching terminal; wherein, the status includes the dispatching mode, the remaining time of the dispatching mode, and the online status of the two dispatching terminals in the dual-operator mode; If the determination result is a conflict, return a reply indicating a dispatching mode conflict to the first dispatching terminal.
9. The device according to any one of claims 6-8, characterized in that: After returning a reply indicating successful login to the first dispatching terminal, if an operation mode switching instruction sent by the first dispatching terminal is received, search for the first dispatching console record according to the device information of the first dispatching terminal; wherein, the operation mode switching instruction includes the device information of the first dispatching terminal; If the dispatching mode in the found first dispatching console record is the mutually exclusive mode, determine whether the operation mode can be switched, and perform a corresponding fifth operation according to the determination result.
10. The device according to claim 9, characterized in that: Determining whether the operation mode can be switched, and performing a corresponding fifth operation according to the determination result, includes: If the second dispatching terminal has logged in and the operation mode of the second dispatching terminal is control, do not switch the operation mode, and return a reply indicating a failed switch to the first dispatching terminal; If the second dispatching terminal has logged in and the operation mode of the second dispatching terminal is view, switch the operation mode, and return a reply indicating a successful switch to the dispatching terminal.
Citation Information
Patent Citations
Strategies for scheduling bandwidth-consuming media events
CN101194511A
Railway production command platform system and method for adjusting plan in compilation phase
CN102951187A