A data-driven aerospace measurement and control scheduling method and system
Through the data-driven aerospace measurement and control dispatching system, cluster deployment and independent business logic processing, the problems of low reliability and high maintenance cost of the aerospace measurement and control dispatching system are solved, and the effects of high reliability and low maintenance cost are achieved.
Patent Information
- Application Number
- CN202311610833.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing aerospace measurement and control dispatching system has problems of low reliability and high maintenance costs. This is mainly because the dispatch center carries all process logic relationships, resulting in single points of failure and complex joint debugging and testing, which increases system security risks and labor costs.
A data-driven aerospace measurement and control dispatching system is adopted, through a clustered deployed data center and a dispatch object that inherits the same parent class. The data center is only used to maintain data status synchronization. The dispatch object independently processes business logic and rollback logic, and the process of the dispatch object Logic changes only require adjustment of preset configuration parameters, reducing the scope and labor consumption of joint debugging tests.
It improves the reliability of the system, avoids single points of failure, and reduces maintenance costs. Through clustered deployment and independent business logic processing, it simplifies the joint debugging, testing and maintenance process.
Smart Images

Figure CN117930641B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of aerospace measurement and control, and in particular to a data-driven aerospace measurement and control scheduling method and system. Background Art
[0002] The space tracking and control system uses space tracking and control equipment to monitor and control spacecraft, as well as the return of spacecraft payload data. The space tracking and control system requires multiple devices and software to work together. These devices and software are often deployed in different physical environments, forming a typical distributed system. Figure 1 This is a schematic diagram of the existing aerospace measurement, control and dispatching system. Figure 1 As shown, the existing method is to set up a scheduling center in the scheduling system to schedule each scheduling object (the scheduling center sends a scheduling command, and the scheduling object replies with a scheduling response and a scheduling result). In addition, the scheduling center performs scheduling based on a scheduling template, which describes the process logic relationship between each scheduling object, including time relationship and event relationship. Each scheduling object only needs to receive a scheduling command, execute its own business, and reply to the execution result, without paying attention to the process logic position of its own business in the overall aerospace measurement and control mission.
[0003] However, in the existing method, the dispatch center carries all the process logic relationships in the space measurement and control mission, and the dispatch center is the single point of the system. Once the dispatch center fails, the space measurement and control system will inevitably fail, and the space measurement and control service cannot be provided, and the system reliability is poor. In addition, when the process logic relationship of a certain scheduling object is adjusted, the scheduling template must be newly created or adjusted to adapt. The addition and adjustment of the scheduling template may introduce new problems, which must be verified through strict joint debugging tests. On the one hand, it increases the potential safety risks of the system, and on the other hand, it also increases a lot of manpower costs.
[0004] In summary, the existing aerospace measurement, control and scheduling systems have technical problems of low reliability and high maintenance costs. Summary of the invention
[0005] The purpose of the present invention is to provide a data-driven aerospace measurement and control scheduling method and system to alleviate the technical problems of low reliability and high maintenance cost in the existing aerospace measurement and control scheduling system.
[0006] In the first aspect, the present invention provides a data-driven aerospace measurement and control scheduling system, comprising: a clustered data center and multiple scheduling objects that inherit the same parent class; the following virtual functions are defined in the parent class: virtual functions of business logic and virtual functions of business rollback; the data center is used to receive the running status of each of the scheduling objects; wherein the running status is a status in a preset state set; when the target scheduling object is in an observation state, the target scheduling object obtains the running status of all scheduling objects from the data center, and determines whether migration from the observation state to the start state is currently allowed based on preset configuration parameters; wherein the target scheduling object represents any scheduling object among the multiple scheduling objects; when it is determined to be allowed, the target scheduling object calls the virtual function of its own business logic to execute a preset task, and updates its own running status based on the task execution result; when it is determined not to be allowed, the observation state is maintained.
[0007] In an optional implementation, the preset configuration parameters include: a time trigger condition of a scheduling object and an event trigger condition of a scheduling object.
[0008] In an optional implementation, the target scheduling object is also used to: start a monitoring thread for manual operation events; wherein the manual operation events include: resume events, suspend events, start events, and rollback events; based on the monitoring thread, call preset operation event processing functions in sequence, and update its own operating status based on the function execution result; wherein the preset operation event processing functions include: resume event processing function, suspend event processing function, start event processing function, and rollback event processing function.
[0009] In an optional embodiment, when the preset operation event processing function is a recovery event processing function, the preset operation event processing function is called, and its own operating state is updated based on the function execution result, including: determining whether the current operating state is in a first target operating state; wherein the first target operating state includes: error state, manual state, stop state; if it is determined that it is not in the first target operating state, maintaining the current operating state; if it is determined that it is in the first target operating state, determining whether the current manual operation event is a recovery event, and the state of the recovery event is unhandled; if so, setting the state of the recovery event to handled, and starting an observation thread to migrate the current operating state to the observation state; if not, maintaining the current operating state.
[0010] In an optional embodiment, when the preset operation event processing function is a suspension event processing function, the preset operation event processing function is called, and its own operating state is updated based on the function execution result, including: determining whether the current operating state is in an observation state; if it is determined that it is not in an observation state, maintaining the current operating state; if it is determined that it is in an observation state, determining whether the current manual operation event is a suspension event, and the state of the suspension event is unhandled; if so, setting the state of the suspension event to handled, and migrating the current operating state to a manual state; if not, maintaining the current operating state.
[0011] In an optional embodiment, when the preset operation event processing function is a start event processing function, the preset operation event processing function is called, and its own running state is updated based on the function execution result, including: determining whether the current running state is in a second target running state; wherein the second target running state includes: manual state, stop state; if it is determined that it is not in the second target running state, maintaining the current running state; if it is determined that it is in the second target running state, determining whether the current manual operation event is a start event, and the state of the start event is unhandled; if so, setting the state of the start event to handled, and migrating the current running state to the start state, so as to call the virtual function of its own business logic to execute the preset task, and update the running state based on the task execution result; if not, maintaining the current running state.
[0012] In an optional implementation, when the preset operation event processing function is a rollback event processing function, the preset operation event processing function is called, and its own running state is updated based on the function execution result, including: determining whether the current running state is in a stopped state; if it is determined that it is not in a stopped state, maintaining the current running state; if it is determined that it is in a stopped state, determining whether the current manual operation event is a rollback event, and the state of the rollback event is unhandled; if so, setting the state of the rollback event to handled, and migrating the current running state to a rollback state, so as to call the virtual function cleanup task execution result of its own business rollback; if not, maintaining the current running state.
[0013] In a second aspect, the present invention provides a data-driven aerospace measurement and control scheduling method, which is applied to the data-driven aerospace measurement and control scheduling system described in any of the aforementioned embodiments, and the method includes: when a target scheduling object is in an observation state, the target scheduling object obtains the operating status of all scheduling objects from a clustered data center; wherein the target scheduling object represents any scheduling object among multiple scheduling objects that inherit the same parent class; the following virtual functions are defined in the parent class: a virtual function of business logic and a virtual function of business rollback; the data center is used to receive the operating status of each of the scheduling objects; the operating status is a status in a preset state set; based on preset configuration parameters, it is determined whether migration from the observation state to the start state is currently allowed; if it is determined to be allowed, the virtual function of its own business logic is called to execute a preset task, and its own operating status is updated based on the task execution result; if it is determined not to be allowed, the observation state is maintained.
[0014] In a third aspect, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the steps of the data-driven aerospace measurement, control and scheduling method described in the aforementioned embodiment are implemented.
[0015] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the data-driven aerospace measurement, control and scheduling method described in the aforementioned embodiment is implemented.
[0016] The present invention provides a data-driven aerospace measurement and control scheduling system. Different from the traditional scheduling system, the clustered data center deployed in the system does not carry the task process logic, but is only used to maintain the synchronization of the data state, thereby avoiding single point failure and greatly improving the reliability of the system. In addition, all scheduling objects in the system inherit the same parent class. When the process logic of the scheduling object changes, it is only necessary to adjust the preset configuration parameters of the scheduling object, and the scope of the joint debugging test is limited to the scheduling object, which reduces the possibility of introducing new problems due to state changes, and also reduces the personnel consumption caused by the joint debugging test verification, thereby reducing the maintenance cost of the aerospace measurement and control scheduling system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is a schematic diagram of the existing aerospace measurement, control and dispatching system;
[0019] Figure 2 A schematic diagram of performing a measurement and control task for an existing dispatching system;
[0020] Figure 3 A schematic diagram of the composition of a data-driven aerospace measurement, control and scheduling system provided by an embodiment of the present invention;
[0021] Figure 4 The aerospace measurement and control scheduling system provided by the embodiment of the present invention is executed Figure 2 Schematic diagram of the task shown;
[0022] Figure 5 A schematic diagram of state transition of a scheduling object provided by an embodiment of the present invention;
[0023] Figure 6 A flow chart of a data-driven aerospace measurement and control scheduling method provided by an embodiment of the present invention;
[0024] Figure 7 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0026] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0028] Space tracking and control tasks involve a series of complex operations such as orbit calculation, control calculation, equipment configuration, equipment control, and software startup. If all operations are done manually, it will waste human resources and be prone to errors. The commonly used method is to build a dispatch center, such as Figure 1As shown, the existing method is to set up a scheduling center in the scheduling system to schedule various scheduling objects, and the scheduling center performs scheduling according to the scheduling template. Figure 2 The schematic diagram of an existing scheduling system executing a measurement and control task. The scheduling center is responsible for scheduling and controlling the four scheduling objects A, B, C, and D. In a space measurement and control task, the process logic relationship of the four scheduling objects is described in the scheduling template. Among them, T1 and T2 are two trigger times. When the current time meets the requirements of T1 and T2, the scheduling center can trigger the start of scheduling objects A and C respectively; after scheduling object A ends, the scheduling center triggers the start of scheduling object B; when scheduling objects B and C end, the scheduling center triggers the start of scheduling object D; after scheduling object D ends, this space measurement and control task ends.
[0029] Although the above-mentioned dispatch center-based model can better solve the problem of automated operation of various dispatch objects, it is gradually found in practical applications that the dispatch center carries all the process logic relationships in aerospace measurement and control tasks, which results in:
[0030] 1) When the process logic relationship of a scheduling object is adjusted, a new scheduling template must be created or adjusted to adapt. A notable feature of the aerospace measurement and control system is that the characteristics of the measurement and control objects are constantly changing, and the technical parameters of the measurement and control equipment are also constantly changing. This leads to the scheduling templates that must be continuously added and adjusted according to requirements. Each addition and adjustment may introduce new problems and must be verified through strict joint debugging tests. On the one hand, it increases the potential safety risks of the system, and on the other hand, it also increases a lot of manpower costs.
[0031] 2) The dispatch center becomes the single point of the entire system. Once the dispatch center fails, the aerospace measurement and control system will inevitably fail, and the aerospace measurement and control service cannot be provided. If the dispatch center is deployed in a master-slave / cluster mode, the business logic carried by the dispatch center is extremely complex. How to efficiently and accurately complete the synchronization of the current business logic operation status is a difficult problem, and there is currently no ideal solution.
[0032] In view of this, an embodiment of the present invention provides a data-driven aerospace measurement, control and scheduling system to alleviate the technical problems involved in the above text.
[0033] Embodiment 1
[0034] Figure 3 A schematic diagram of the composition of a data-driven aerospace measurement and control scheduling system provided for an embodiment of the present invention, the aerospace measurement and control scheduling system includes: a clustered deployed data center and multiple scheduling objects that inherit the same parent class; the following virtual functions are defined in the parent class: virtual functions of business logic and virtual functions of business rollback.
[0035] The data center is used to receive the operating status of each scheduling object; wherein the operating status is a status in a preset status set.
[0036] When the target scheduling object is in the observation state, the target scheduling object obtains the operating status of all scheduling objects from the data center, and determines whether migration from the observation state to the start state is currently allowed based on preset configuration parameters; wherein the target scheduling object represents any scheduling object among multiple scheduling objects.
[0037] If it is determined to be allowed, the target scheduling object calls the virtual function of its own business logic to execute the preset task, and updates its own running status based on the task execution result.
[0038] If it is determined that this is not allowed, maintain observation status.
[0039] Specifically, in the aerospace measurement and control scheduling system provided by the embodiment of the present invention, the data center can use the existing message middleware and be built in a clustered manner to provide data services to the outside. In addition, the embodiment of the present invention configures a programming framework for all scheduling objects in the system. The programming framework is used to standardize the process behavior of each scheduling object in the aerospace measurement and control system in the aerospace measurement and control task. The programming framework contains a parent class, recorded as the ObjFramework class, and the parent class defines the virtual functions of the business logic and the virtual functions of the business rollback. Each scheduling object needs to inherit the ObjFramework class and implement the above two virtual functions.
[0040] The virtual function of business logic is represented by bool doSomething(), which is the business logic content of the scheduling object. The return result of the method is of Boolean type. If the return value is true, it means that the business logic ends normally; if the return value is false, it means that the business logic ends abnormally. The virtual function of business rollback is represented by void rollBack(), which is the content that runs when the scheduling object needs to roll back the business.
[0041] In the embodiment of the present invention, each scheduling object implements the process logic in the space measurement and control mission through preset configuration parameters according to the programming framework. Specifically, when the target scheduling object is in the observation state, the target scheduling object will obtain the running state of all scheduling objects and cyclically observe the specified running state, where the specified running state represents the running state of the scheduling object (also called the predecessor node) that affects the migration of its own running state. Figure 2 Taking the application scenario in as an example, scheduling object B will cyclically observe the running status of scheduling object A; scheduling object D will cyclically observe the running status of scheduling object B and scheduling object C.
[0042] After obtaining the specified running state, the target scheduling object needs to determine whether it is currently allowed to migrate from the observation state to the start state based on its own preset configuration parameters. If not allowed, the observation state is maintained to continue to determine whether the state migration can be performed; if allowed, the target scheduling object immediately calls the virtual function of its own business logic to execute the preset task and update its own running state based on the task execution result. Specifically, after the scheduling object runs (that is, executes the preset task), if the operation is correct, it migrates to the stop state; if the operation is wrong, it migrates to the error state.
[0043] In the aerospace measurement and control scheduling system, the conditions for the target scheduling object to migrate from the observation state to the start state need to be specifically configured according to the actual mission requirements to obtain the preset configuration parameters. The business logic content and business rollback content of the target scheduling object also need to be adaptively configured according to the actual mission requirements.
[0044] Figure 4 To implement the aerospace measurement and control scheduling system provided by the embodiment of the present invention Figure 2 A schematic diagram of the task shown is Figure 4 As shown in the figure, the scheduling objects A, B, C, and D are functionally divided into two parts. The upper part is the content of the programming framework, which is responsible for the process logic of each scheduling object in the aerospace measurement and control mission, and the lower part is the business logic of the scheduling object itself. Each scheduling object interacts with the data center, including data writing (sending its own operating status to the data center) and data reading (obtaining the operating status of all scheduling objects under observation). All scheduling objects operate in the manner described above. Therefore, it is only necessary to set the corresponding preset configuration parameters for each scheduling object. Through a unified data center and programming framework, distributed collaboration between scheduling objects can be achieved, and the process logic in the aerospace measurement and control mission can be jointly realized.
[0045] The embodiment of the present invention provides a data-driven aerospace measurement and control scheduling system. Different from the traditional scheduling system, the system uses a clustered data center, and the data center does not carry the task process logic, but is only used to maintain the synchronization of the data state, thereby avoiding single point failures and greatly improving the reliability of the system. In addition, all scheduling objects in the system inherit the same parent class. When the process logic of the scheduling object changes, it is only necessary to adjust the preset configuration parameters of the scheduling object, and the scope of the joint debugging test is limited to the scheduling object, which reduces the possibility of introducing new problems due to state changes, and also reduces the personnel consumption caused by the joint debugging test verification, thereby reducing the maintenance cost of the aerospace measurement and control scheduling system.
[0046] In an optional implementation, the preset configuration parameters include: a time trigger condition of the scheduling object and an event trigger condition of the scheduling object.
[0047] Among them, the time trigger condition or the event trigger condition can be set to empty, that is, the time trigger condition or the event trigger condition can be set. The time trigger condition represents the requirement for the start time of the scheduling object, and the event trigger condition represents the requirement for the preceding node of the scheduling object (that is, the scheduling object whose execution logic precedes it). In an embodiment of the present invention, when the event trigger condition is not empty, the event trigger condition may refer to the operating status of a specified scheduling object (one or more scheduling objects) in the aerospace measurement and control scheduling system. Each scheduling object should migrate from the observation state to the start state only when it is determined that the current known state meets its corresponding time trigger condition and event trigger condition.
[0048] Figure 5 A schematic diagram of the state transition of a scheduling object provided by an embodiment of the present invention. In the aerospace measurement and control scheduling system, the scheduling object includes six operating states: Figure 5 The six operating states are represented by circles in the figure. The six operating states are: manual state, observation state, start state, stop state, error state and rollback state. If all scheduling objects constitute a set O, O = {obj_1, obj_2, ..., obj_n}, then each scheduling object (obj_i) maintains a current state (s), recorded as obj_i.s, and reports it to the data center, where: obj_i.s∈{manual state, observation state, start state, stop state, error state, rollback state}.
[0049] In the embodiment of the present invention, the migration between the running states of the scheduling objects can be divided into two types: Figure 5 The solid line in the figure indicates automatic migration, and the dotted line indicates migration caused by manual operation events. Specifically, automatic migration means that the scheduling object is initially in the observation state, cyclically observing the running state of the scheduling object that affects its own running state migration. When both the time trigger condition and the event trigger condition meet the requirements, the scheduling object automatically migrates to the start state, and the start state indicates that the scheduling object is running. After the scheduling object runs, if the operation is correct, it automatically migrates to the stop state; if the operation is wrong, it automatically migrates to the error state.
[0050] refer to Figure 5, the migration caused by manual operation events includes the following situations: in the observation state, you can enter the manual state through the "suspend event". In the manual state, the scheduling object will no longer observe the data state in the data center, that is, the scheduling object will not start automatically; in the manual state and the stop state, you can migrate to the start state through the "start event"; in the stop state, you can migrate to the rollback state through the "rollback event". In the rollback state, the scheduling object will clean up the results generated in this operation; in the error state, stop state, and manual state, you can migrate to the observation state through the "restore event". Suspend events, resume events, start events, and rollback events can all be triggered by users sending corresponding commands, that is, users send suspend commands to trigger suspend events, users send resume commands to trigger resume events, users send start commands to trigger start events, and users send rollback commands to trigger rollback events.
[0051] In order to ensure the accurate migration of the running state of the scheduling object, each scheduling object (obj_i) needs to maintain a latest operation event (e) recorded as obj_i.e. Where obj_i.e is a tuple, obj_i.e = (name, state); name ∈ {suspend event, resume event, start event, rollback event}; state ∈ {processed, unprocessed}.
[0052] From the description above, we can know that in order to standardize the process behavior of the scheduling object in the space measurement and control mission, the structure of the ObjFramework class inherited by the scheduling object should include the following:
[0053] String objName; / / The name of the scheduling object
[0054] DateTime startTime = -1; / / Time trigger condition of the scheduling object, initially -1
[0055] List <string>preNode; / / Event triggering conditions for scheduling objects
[0056] Bool watched; / / indicates whether it is in the observation state
[0057] virtual bool doSomething(); / / Business logic of scheduling object
[0058] virtual void rollBack(); / / Schedule object rollback operation
[0059] ObjFramework(String objName,DateTime startTime,List <string>preNode); / / Constructor to schedule object creation
[0060] void watch(); / / Observe thread
[0061] void operate(); / / manually operate thread
[0062] void operate1(); / / Restore event operation method
[0063] void operate2(); / / suspend event operation method
[0064] void operate3(); / / Start event operation method
[0065] void operate4(); / / Fallback event operation method
[0066] In an optional implementation, in addition to obtaining the running status of all scheduling objects from the data center in the observation state, the target scheduling object is also used to:
[0067] Start a monitoring thread for manual operation events; wherein the manual operation events include: resume events, suspend events, start events, and rollback events.
[0068] Based on the monitoring thread, the preset operation event processing function is called in sequence, and its own operation status is updated based on the function execution result; wherein the preset operation event processing function includes: resume event processing function, suspend event processing function, start event processing function, and rollback event processing function.
[0069] In other words, the constructor of the ObjFramework class is:
[0070]
[0071] Among them, setting the start time of the scheduling object and setting the preceding node is to set the configuration parameters for the scheduling object; starting the observation thread means that the scheduling object enters the observation state; starting the operation thread means that the scheduling object starts the monitoring thread for manual operation events.
[0072] When starting the watch thread, you can refer to the pseudo code of the following example:
[0073]
[0074]
[0075] When starting the operation thread operate, you can refer to the pseudo code of the following example:
[0076]
[0077]
[0078] In an optional implementation, when the preset operation event processing function is a recovery event processing function, the preset operation event processing function is called, and its own running state is updated based on the function execution result, specifically including the following contents:
[0079] Determine whether the current running state is in the first target running state; wherein the first target running state includes: error state, manual state, and stop state.
[0080] When it is determined that the system is not in the first target operating state, the current operating state is maintained.
[0081] When it is determined that the system is in the first target running state, it is determined whether the current manual operation event is a recovery event, and the state of the recovery event is unprocessed.
[0082] If so, the state of the recovery event is set to processed, and the observation thread is started to migrate the current running state to the observation state.
[0083] If not, maintain the current operating state.
[0084] That is to say, when calling operate1() to resume the event processing function, the pseudo code that runs can be referred to as follows:
[0085]
[0086]
[0087] In an optional implementation, when the preset operation event processing function is a suspension event processing function, the preset operation event processing function is called, and its own running state is updated based on the function execution result, specifically including the following contents:
[0088] Determine whether the current running state is in the observation state.
[0089] If it is determined that the system is not under observation, the current operating state is maintained.
[0090] When it is determined that the state is in the observation state, it is determined whether the current manual operation event is a suspended event, and the state of the suspended event is unprocessed.
[0091] If so, the status of the pending event is set to processed and the current running status is migrated to manual status.
[0092] If not, maintain the current operating state.
[0093] That is to say, when calling the opertate2() suspend event processing function, the pseudo code running can be referred to as follows:
[0094]
[0095] In an optional implementation, when the preset operation event processing function is a startup event processing function, the preset operation event processing function is called, and its own running state is updated based on the function execution result, specifically including the following contents:
[0096] Determine whether the current running state is in the second target running state; wherein the second target running state includes: manual state, stop state.
[0097] If it is determined that the system is not in the second target operating state, the current operating state is maintained.
[0098] When it is determined that the system is in the second target running state, it is determined whether the current manual operation event is a start event, and the state of the start event is unprocessed.
[0099] If so, the status of the start event is set to processed, and the current running status is migrated to the start status to call the virtual function of its own business logic to execute the preset task, and update the running status based on the task execution result.
[0100] If not, maintain the current operating state.
[0101] That is to say, when calling operate3() to start the event processing function, the pseudo code running can be referred to as follows:
[0102]
[0103]
[0104] In an optional implementation, when the preset operation event processing function is a rollback event processing function, the preset operation event processing function is called, and its own running state is updated based on the function execution result, specifically including the following contents:
[0105] Determine whether the current running state is in the stopped state.
[0106] If it is determined that the system is not in a stopped state, the current running state is maintained.
[0107] When it is determined that the system is in the stopped state, it is determined whether the current manual operation event is a rollback event, and the state of the rollback event is unprocessed.
[0108] If so, the state of the rollback event is set to processed, and the current running state is migrated to the rollback state to call the virtual function of its own business rollback to clean up the task execution result.
[0109] If not, maintain the current operating state.
[0110] That is to say, when the operate4() fallback event processing function is called, the pseudo code that runs can be referred to as follows:
[0111]
[0112]
[0113] In summary, the embodiment of the present invention provides a data-driven aerospace measurement and control scheduling system. Different from the traditional scheduling system construction method, the data center does not carry the task process logic, but only maintains the synchronization of the running status of each scheduling object. The advantages of this are:
[0114] 1) Data centers can apply existing message middleware and implement clustered deployment, avoiding single point failures and greatly improving system reliability.
[0115] 2) For changes in the process logic of the scheduling object, only the configuration parameters of the scheduling object need to be adjusted. The scope of the joint debugging test is limited to the scheduling object, which reduces the possibility of introducing new problems due to state changes and also reduces the manpower consumption caused by the joint debugging test verification.
[0116] 3) By designing a programming framework, the collaborative work between scheduling objects is realized. Each scheduling object only needs to focus on its own business logic and rollback logic, which improves the stability of the system.
[0117] Embodiment 2
[0118] An embodiment of the present invention further provides a data-driven aerospace tracking and control scheduling method, which is applied to the data-driven aerospace tracking and control scheduling system provided in the above-mentioned embodiment 1. The data-driven aerospace tracking and control scheduling method provided in the embodiment of the present invention is specifically introduced below.
[0119] Figure 6 is a flow chart of a data-driven aerospace measurement and control scheduling method provided by an embodiment of the present invention, such as Figure 6 As shown, the method specifically comprises the following steps:
[0120] Step S102: When the target scheduling object is in the observation state, the target scheduling object obtains the running state of all scheduling objects from the clustered deployed data center.
[0121] Among them, the target scheduling object represents any scheduling object among multiple scheduling objects that inherit the same parent class; the following virtual functions are defined in the parent class: virtual functions of business logic and virtual functions of business rollback; the data center is used to receive the operating status of each scheduling object; the operating status is the status in the preset status set.
[0122] Step S104: determining whether migration from the observation state to the start state is currently allowed based on preset configuration parameters.
[0123] If it is determined to be allowed, the following step S106 is executed; if it is determined not to be allowed, the observation state is maintained.
[0124] Step S106, calling the virtual function of its own business logic to execute the preset task, and updating its own running status based on the task execution result.
[0125] The embodiment of the present invention provides a data-driven aerospace measurement and control scheduling method, in which the aerospace measurement and control scheduling system uses a clustered data center, and the data center does not carry the task process logic, and is only used to maintain the synchronization of the data state, thereby avoiding single point failures and greatly improving the reliability of the system. In addition, all scheduling objects in the aerospace measurement and control scheduling system inherit the same parent class. When the process logic of the scheduling object changes, it is only necessary to adjust the preset configuration parameters of the scheduling object, and the scope of the joint debugging test is limited to the scheduling object, which reduces the possibility of introducing new problems due to state changes, and also reduces the personnel consumption caused by the joint debugging test verification, thereby reducing the maintenance cost of the aerospace measurement and control scheduling system.
[0126] Optionally, the preset configuration parameters include: a time trigger condition of the scheduling object and an event trigger condition of the scheduling object.
[0127] Optionally, the method further comprises the following steps:
[0128] Step S201, start a monitoring thread for manual operation events; wherein the manual operation events include: resume events, suspend events, start events, and rollback events.
[0129] Step S202, based on the monitoring thread, call the preset operation event processing function in sequence, and update its own running status based on the function execution result; wherein the preset operation event processing function includes: resume event processing function, suspend event processing function, start event processing function, and rollback event processing function.
[0130] Optionally, when the preset operation event processing function is a recovery event processing function, in the above step S202, the preset operation event processing function is called, and its own running state is updated based on the function execution result, which specifically includes the following contents:
[0131] Determine whether the current running state is in the first target running state; wherein the first target running state includes: error state, manual state, and stop state.
[0132] When it is determined that the system is not in the first target operating state, the current operating state is maintained.
[0133] When it is determined that the system is in the first target running state, it is determined whether the current manual operation event is a recovery event, and the state of the recovery event is unprocessed.
[0134] If so, the state of the recovery event is set to processed, and the observation thread is started to migrate the current running state to the observation state.
[0135] If not, maintain the current operating state.
[0136] Optionally, when the preset operation event processing function is a suspension event processing function, in the above step S202, the preset operation event processing function is called, and its own running state is updated based on the function execution result, which specifically includes the following contents:
[0137] Determine whether the current running state is in the observation state.
[0138] If it is determined that the system is not under observation, the current operating state is maintained.
[0139] When it is determined that the state is in the observation state, it is determined whether the current manual operation event is a suspended event, and the state of the suspended event is unprocessed.
[0140] If so, the status of the pending event is set to processed and the current running status is migrated to manual status.
[0141] If not, maintain the current operating state.
[0142] Optionally, when the preset operation event processing function is a start event processing function, in the above step S202, the preset operation event processing function is called, and its own running state is updated based on the function execution result, which specifically includes the following contents:
[0143] Determine whether the current running state is in the second target running state; wherein the second target running state includes: manual state, stop state.
[0144] If it is determined that the system is not in the second target operating state, the current operating state is maintained.
[0145] When it is determined that the system is in the second target running state, it is determined whether the current manual operation event is a start event, and the state of the start event is unprocessed.
[0146] If so, the status of the start event is set to processed, and the current running status is migrated to the start status to call the virtual function of its own business logic to execute the preset task, and update the running status based on the task execution result.
[0147] If not, maintain the current operating state.
[0148] Optionally, when the preset operation event processing function is a rollback event processing function, in the above step S202, the preset operation event processing function is called, and its own running state is updated based on the function execution result, which specifically includes the following contents:
[0149] Determine whether the current running state is in the stopped state.
[0150] If it is determined that the system is not in a stopped state, the current running state is maintained.
[0151] When it is determined that the system is in the stopped state, it is determined whether the current manual operation event is a rollback event, and the state of the rollback event is unprocessed.
[0152] If so, the state of the rollback event is set to processed, and the current running state is migrated to the rollback state to call the virtual function of its own business rollback to clean up the task execution result.
[0153] If not, maintain the current operating state.
[0154] Embodiment 3
[0155] See also Figure 7 An embodiment of the present invention provides an electronic device, which includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected via the bus 62; the processor 60 is used to execute an executable module stored in the memory 61, such as a computer program.
[0156] The memory 61 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0157] The bus 62 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0158] Among them, the memory 61 is used to store programs, and the processor 60 executes the program after receiving the execution instruction. The method executed by the device defined by the process disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 60 or implemented by the processor 60.
[0159] The processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 60. The above processor 60 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and completes the steps of the above method in combination with its hardware.
[0160] A computer program product of a data-driven aerospace measurement, control and scheduling method and system provided in an embodiment of the present invention includes a computer-readable storage medium storing a non-volatile program code executable by a processor. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0161] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0162] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0163] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0164] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the invention product is usually placed when in use, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third" and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0165] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0166] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.< / string> < / string>
Claims
1. A data-driven aerospace measurement, control and scheduling system, characterized in that: include: A clustered data center and multiple scheduling objects that inherit the same parent class; the following virtual functions are defined in the parent class: virtual functions of business logic and virtual functions of business rollback; the virtual functions of business logic are used to define the business logic content of the scheduling object; the virtual functions of business rollback are used to define the content that runs when the scheduling object needs to roll back the business; The data center is used to receive the running status of each of the scheduling objects; wherein the running status is a status in a preset state set; the preset state set includes the following running states: manual state, observation state, start state, stop state, error state and rollback state; When the target scheduling object is in the observation state, the target scheduling object obtains the running state of all scheduling objects from the data center, and determines whether it is currently allowed to migrate from the observation state to the start state based on preset configuration parameters; wherein the target scheduling object represents any scheduling object among the multiple scheduling objects; the preset configuration parameters include: the time trigger condition of the scheduling object and the event trigger condition of the scheduling object; If it is determined to be allowed, the target scheduling object calls the virtual function of its own business logic to execute the preset task, and updates its own running state based on the task execution result; If it is determined that this is not allowed, maintain observation status.
2. The data-driven aerospace measurement, control and dispatching system according to claim 1, characterized in that: The target scheduling object is also used to: Start a monitoring thread for manual operation events; wherein the manual operation events include: resume events, suspend events, start events, and rollback events; Based on the monitoring thread, the preset operation event processing function is called in sequence, and its own operation status is updated based on the function execution result; wherein the preset operation event processing function includes: resume event processing function, suspend event processing function, start event processing function, and rollback event processing function.
3. The data-driven aerospace measurement, control and dispatching system according to claim 2, characterized in that: When the preset operation event processing function is a recovery event processing function, calling the preset operation event processing function and updating its own running state based on the function execution result includes: Determine whether the current running state is in a first target running state; wherein the first target running state includes: error state, manual state, and stop state; When it is determined that the first target operating state is not reached, maintaining the current operating state; In the case of determining that the first target running state is in place, determining whether the current manual operation event is a recovery event, and the state of the recovery event is unprocessed; If yes, the state of the recovery event is set to processed, and an observation thread is started to migrate the current running state to the observation state; If not, the current operating state is maintained.
4. The data-driven aerospace measurement, control and dispatching system according to claim 2, characterized in that: When the preset operation event processing function is a suspension event processing function, calling the preset operation event processing function and updating its own running state based on the function execution result includes: Determine whether the current running state is in the observation state; When it is determined that the state is not under observation, maintaining the current operating state; In the case of determining that the state is in the observation state, determining whether the current manual operation event is a pending event, and the state of the pending event is unprocessed; If yes, the state of the pending event is set to processed, and the current running state is migrated to the manual state; If not, the current operating state is maintained.
5. The data-driven aerospace measurement, control and dispatching system according to claim 2, characterized in that: When the preset operation event processing function is a startup event processing function, calling the preset operation event processing function and updating its own running state based on the function execution result includes: Determine whether the current running state is in the second target running state; wherein the second target running state includes: manual state, stop state; When it is determined that the second target operating state is not reached, maintaining the current operating state; In the case of determining that the second target running state is in place, determining whether the current manual operation event is a start event, and whether the state of the start event is unprocessed; If yes, the state of the start event is set to processed, and the current running state is migrated to the start state to call the virtual function of its own business logic to execute the preset task, and update the running state based on the task execution result; If not, the current operating state is maintained.
6. The data-driven aerospace measurement, control and dispatching system according to claim 2, characterized in that: When the preset operation event processing function is a rollback event processing function, calling the preset operation event processing function and updating its own running state based on the function execution result includes: Determine whether the current running state is in the stopped state; When it is determined that the current operation state is not stopped, maintaining the current operation state; In the case of determining that the system is in the stopped state, determining whether the current manual operation event is a rollback event, and the state of the rollback event is unprocessed; If yes, the state of the rollback event is set to processed, and the current running state is migrated to the rollback state to call the virtual function of the business rollback to clean up the task execution result; If not, the current operating state is maintained.
7. A data-driven aerospace measurement and control scheduling method, characterized in that: A data-driven aerospace measurement, control and scheduling system applied to any one of claims 1 to 6, the method comprising: When the target scheduling object is in the observation state, the target scheduling object obtains the running state of all scheduling objects from the clustered deployed data center; wherein the target scheduling object represents any scheduling object among multiple scheduling objects that inherit the same parent class; the following virtual functions are defined in the parent class: virtual functions of business logic and virtual functions of business rollback; the data center is used to receive the running state of each of the scheduling objects; the running state is a state in a preset state set; the virtual function of business logic is used to define the business logic content of the scheduling object; the virtual function of business rollback is used to define the content to be run when the scheduling object needs a business rollback; the preset state set includes the following running states: manual state, observation state, start state, stop state, error state and rollback state; Determine whether migration from the observation state to the start state is allowed based on preset configuration parameters; the preset configuration parameters include: time trigger conditions of the scheduling object and event trigger conditions of the scheduling object; If it is allowed, call the virtual function of its own business logic to execute the preset task, and update its own running status based on the task execution result; If it is determined that this is not allowed, maintain observation status.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the data-driven aerospace measurement, control and scheduling method described in claim 7 are implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by the processor, the data-driven aerospace measurement, control and scheduling method according to claim 7 is implemented.
Citation Information
Patent Citations
Software development method
CN108491192A
Task state determining method and device
CN112579247A
Deployment of pre-scheduled tasks in clusters
US20130067493A1
System and method for handling storage events in a distributed data grid
US20130074083A1
Autonomic management system and method of virtual network
WO2014015697A1
