CN116501650B - Method, device and medium for executing carrier rocket measurement and control flow engine - Google Patents
Method, device and medium for executing carrier rocket measurement and control flow engine Download PDFInfo
- Publication number
- CN116501650B CN116501650B CN202310760664.7A CN202310760664A CN116501650B CN 116501650 B CN116501650 B CN 116501650B CN 202310760664 A CN202310760664 A CN 202310760664A CN 116501650 B CN116501650 B CN 116501650B
- Authority
- CN
- China
- Prior art keywords
- flow
- data
- item
- information
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 95
- 238000005259 measurement Methods 0.000 title claims abstract description 64
- 238000013507 mapping Methods 0.000 claims abstract description 62
- 230000008569 process Effects 0.000 claims abstract description 41
- 230000000737 periodic effect Effects 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010276 construction Methods 0.000 claims description 6
- 238000012360 testing method Methods 0.000 abstract description 34
- 238000012986 modification Methods 0.000 abstract description 9
- 230000004048 modification Effects 0.000 abstract description 9
- 230000006870 function Effects 0.000 description 28
- 230000008901 benefit Effects 0.000 description 4
- 238000013500 data storage Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Testing Of Engines (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides an execution method, a device and a medium of a carrier rocket measurement and control flow engine, comprising the following steps: constructing a data table for measurement and control flow information of the carrier rocket based on the configuration file; determining a flow item mapping table based on the data table; searching a flow entity object contained in a target flow item in a flow item mapping table according to the name of the target flow item; executing each flow entity object: therefore, the flow engine can construct a data table of measurement and control flow information of the carrier rocket according to the configuration information, further abstract the measurement and control flow information into flow entity objects, and if the configuration file is required to be correspondingly modified, the data table is correspondingly changed when the subsequent test or launching task is required to be modified, then the flow item mapping table is correspondingly changed, and then the corresponding flow entity object is selected in the flow mapping table to be executed; therefore, the software code does not need to be modified any more, the risk brought by code modification is avoided, and the reliability of the actual test and the launching process of the carrier rocket is improved.
Description
Technical Field
The application relates to the technical field of carrier rocket measurement and control software design, in particular to an execution method, device and medium of a carrier rocket measurement and control flow engine.
Background
The test launch control software is core software for testing and launching control of the carrier rocket and mainly completes testing and launching tasks of the carrier rocket in technical array sites and launching array sites. In the running process of the test launch control software, various test projects need to be tested to ensure that the state of the carrier rocket is good, and the launch task can be executed.
In the prior test and control software design process, a set of complete code logic is customized and realized for each test item, so that the test and control software has huge scale and more redundant codes. When the functional requirements change (such as a new rocket test project), a large amount of modification is needed to be carried out on the software codes, the workload is large, unknown risks can be introduced in the modification of the codes, the reliability of the launch control software for the launch vehicle is reduced, and meanwhile, the reliability of the actual test and the launching process of the launch vehicle is also reduced.
Disclosure of Invention
Aiming at the problems existing in the prior art, the embodiment of the application provides a method, a device and a medium for executing a measurement and control flow engine of a carrier rocket, which are used for solving or partially solving the technical problems that when the test or launching function requirements of the measurement and launching control software of the carrier rocket are changed in the prior art, a large amount of software codes are required to be modified, so that the reliability of the actual test and launching process of the carrier rocket is reduced.
In a first aspect of the present application, a method for executing a measurement and control flow engine of a carrier rocket is provided, where the method includes:
constructing a data table for measurement and control flow information of the carrier rocket based on the configuration file;
when the measurement and control task of the carrier rocket needs to be executed, determining a flow item mapping table based on the data table;
acquiring a target flow item name to be executed, and searching a flow entity object contained in the target flow item in a flow item mapping table according to the target flow item name;
and executing each flow entity object.
In the above scheme, the constructing a data table for measurement and control flow information of the launch vehicle based on the configuration file includes:
analyzing the configuration file to obtain each flow item contained in the measurement and control flow information, the flow step contained in the flow item, the functional module called by the flow step, the execution condition of each flow step and the data information required after the flow step is executed;
creating a corresponding data table for the flow item, the flow step, the function module called by the flow step, the execution condition of the flow step and the data information required after the flow step is executed respectively; wherein the data table comprises: field name, data type, field meaning, and remark information.
In the above solution, the determining the flow item mapping table based on the data table includes:
reading flow item data from a data table corresponding to the flow item information;
and storing the flow item name in the flow item data into a key value item in the flow item mapping table.
In the above scheme, the method further comprises:
traversing each flow item name in the flow item mapping table, and searching a flow step contained in each flow item name in a data table corresponding to the flow step based on the flow item name;
and storing the flow steps contained in each flow item name into the value item in the flow item mapping table.
In the above scheme, the method further comprises:
traversing all value items in the flow item mapping table to obtain corresponding flow steps;
if the type of the flow step is determined to be the service type, searching an input parameter in a data table corresponding to the function module called by the flow step, and storing the service output parameter as attribute information in the flow item mapping table;
if the type of the flow step is determined to be the condition type, searching for execution condition information in a data table corresponding to the execution condition of the flow step, and storing the execution condition information as attribute information in the flow item mapping table;
if the type of the flow step is determined to be a storage type, searching a corresponding data object in a data table corresponding to the data information required after the flow step is executed, and storing the data object as attribute information in the flow item mapping table; the data object includes: data type, data value, and data sequence number.
In the above scheme, the method further comprises:
acquiring task types of flow items in the measurement and control flow information;
and saving the flow item of which the task type is periodic task into a periodic flow list, and adding a corresponding execution state into the periodic flow list.
In the above solution, the executing each of the flow entity objects includes:
when the flow entity object is a non-periodic flow, acquiring an object type of the flow entity object;
if the object type is a service type, calling a service function module corresponding to the flow entity object, and transmitting parameters needed by the service function module;
if the object type is the nested type, continuing to analyze the flow entity object, and executing corresponding operation according to the analysis result;
if the object type is a delay type, executing a waiting command;
if the object type is a conditional type, acquiring corresponding state information after executing the process entity object, and continuing to execute a subsequent process according to the state information;
and if the object type is a storage type, storing the data information obtained after the execution of the flow step.
In the above solution, the executing each of the flow entity objects includes:
when the flow entity object is a periodic flow, traversing a periodic flow list to obtain each periodic flow;
and establishing a corresponding thread for each periodic flow Cheng Chuang, and periodically executing the flow entity object by using the thread based on a preset time interval.
In a second aspect of the present application, there is provided an execution device of a launch vehicle measurement and control process engine, the device comprising:
the construction unit is used for constructing a data table for the measurement and control flow information of the carrier rocket based on the configuration file;
the determining unit is used for determining a flow item mapping table based on the data table when the measurement and control task of the carrier rocket is required to be executed;
the searching unit is used for acquiring a target flow item name to be executed and searching a flow entity object contained in the target flow item in a flow item mapping table according to the target flow item name;
and the execution unit is used for executing each flow entity object.
In a third aspect of the application, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the first aspects.
The application provides an execution method, a device and a medium of a carrier rocket measurement and control flow engine, wherein the method comprises the following steps: constructing a data table for measurement and control flow information of the carrier rocket based on the configuration file; when the measurement and control task of the carrier rocket needs to be executed, determining a flow item mapping table based on the data table; acquiring a name of a target flow item to be executed; searching a flow entity object contained in the target flow item in a flow item mapping table according to the name of the target flow item; executing each flow entity object: therefore, the flow engine can construct a data table of measurement and control flow information of the carrier rocket according to the configuration information, further abstract the measurement and control flow information into flow entity objects, and if the configuration file is required to be correspondingly modified, the data table is correspondingly changed when the subsequent test or launching task is required to be modified, then the flow item mapping table is correspondingly changed, and then the corresponding flow entity object is selected in the flow mapping table to be executed; therefore, the software code does not need to be modified any more, the risk brought by code modification is avoided, and the reliability of the actual test and the launching process of the carrier rocket is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 illustrates a flow diagram of a method of execution of a launch vehicle measurement and control flow engine according to one embodiment of the present application;
FIG. 2 is a schematic diagram of an execution device of a measurement and control flow engine of a carrier rocket according to one embodiment of the present application;
FIG. 3 shows a schematic diagram of a computer-readable storage medium structure according to one embodiment of the application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the application provides an execution method of a carrier rocket measurement and control flow engine, as shown in fig. 1, comprising the following steps:
s110, constructing a data table for measurement and control flow information of the carrier rocket based on the configuration file.
In order to better understand the technical solution of the present application, the concept of the following flow engine is first introduced. The flow engine is an important component of the test launch control software, belongs to a general processing module, is responsible for the scheduling control command or the test flow of the carrier rocket, and has no requirement on the execution content of specific services. The flow engine has the functions of analyzing and scheduling the test flow of the carrier rocket, executing a command or a calculation program according to a certain rule according to a control logic defined by a user, monitoring the execution state and timely performing exception handling.
The test instruction is generally triggered by an interaction event on the software interface (for example, a user sends a certain operation instruction), or can be triggered by a background periodic task at fixed time, and the executed result data and state data are written into a corresponding memory in real time and can be fed back to the software interface as required.
The functions that the flow engine may provide include: providing a function of executing a service, providing a data access function, providing a function of executing a periodic flow, and providing a function of supporting execution of a nested flow:
the function of providing executive service is mainly called by external interface, and a flow item is started and executed according to the input parameters. The execution process comprises the following steps: and according to the analyzed flow steps, sequentially executing the steps in sequence, judging the category of the flow step for each specific flow step, and selecting a corresponding execution branch. After each step is executed, judging the execution state, if the step is passed, continuing to execute the next step, if the step is not passed, stopping the flow, and prompting an error.
The flow engine may provide data access functionality:
in the execution process of the flow steps, data needs to be acquired from outside, and after the execution is finished, the data or the execution state needs to be updated, so that the flow engine module has the function of reading and writing the external data. Such as querying and reading the latest value of the specified data via the interface.
For example, assuming that the designated data is a stand-alone power distribution state, when the stand-alone power distribution is successful, the value of the power distribution state may be changed from 0 to 1, then the latest value is 1, and the latest value is returned.
The function of writing data is: and calling a write data interface, converting the appointed data into binary data of a corresponding data type, and storing the binary data into an appointed data storage area.
The flow engine has a function of executing a periodic flow:
in an actual application scenario, there are tasks that need to be periodically executed at certain time intervals, and the flow engine can support the periodic tasks. The periodic tasks are divided into two types, namely, the periodic tasks are triggered by an external command and repeatedly executed according to a set period after being started; and secondly, starting by default, automatically starting a task after the module is loaded, and repeatedly executing according to a set period.
The flow engine starts the thread executed on time, and the function of the thread is periodically called to execute by the functional module according to the set time interval.
To facilitate flow multiplexing, the flow engine also supports execution of nested flows:
the nested process means that the process step is also a sub-process step, and the process engine needs to analyze the situation, so as to ensure the normal execution of the process step.
For example, when the launch vehicle performs the testing and launching process, there are many process steps, such as when performing the launching task, the overall process steps include: distribution, performing inspection, interpretation of data results, and the like. The power distribution flow comprises the following steps: the power distribution of the single machine A, the power distribution of the single machine B, the power distribution of the single machine C and the checking of the power distribution state of each single machine are carried out, so that the total flow step and the power distribution flow step are a nested flow, and when the power distribution flow step is executed, the configuration file still needs to be analyzed to obtain the sub-flow steps contained in the power distribution flow step, thereby executing the flow steps in sequence.
When the test flow item changes or the test flow item is newly added, in order to avoid modifying a large number of codes, a configuration file is preset, and the configuration file contains measurement and control flow information when the carrier rocket executes the test and launch tasks. Each test flow item may correspond to a separate configuration file, or may correspond to a total configuration file.
When executing the test item or the launching item, in order to realize the calling and execution of the flow information, the configuration file needs to be analyzed to obtain various measurement and control flow information of the carrier rocket, and a corresponding data table is constructed for the measurement and control flow information.
In one embodiment, constructing a data table for measurement and control flow information based on a configuration file includes:
analyzing the configuration file to obtain each flow item contained in the measurement and control flow information, the flow step contained in the flow item, the function module called by the flow step, the execution condition of each flow step and the data information required after executing the flow step;
creating a corresponding data table for the flow item, the flow step, the function module called by the flow step, the execution condition of the flow step and the data information required after the flow step is executed respectively; wherein the data table comprises: field name, data type, field meaning, and remark information.
Specifically, after the configuration file is parsed, all measurement and control flow information in the configuration file can be obtained, including: the method comprises a flow item, flow steps contained in the flow item, a function module called by the flow steps, execution conditions of each flow step and data information needed after the flow steps are executed. The process item comprises the following steps: the names of the flow items, whether the flow items are periodic flow tasks, the execution period of the periodic tasks, whether default starting and the like, and the data tables corresponding to the flow items are shown in table 1:
TABLE 1
The flow steps comprise: step number, the number of the process item to which the process step belongs, step category, step information, etc., and the corresponding data table is shown in table 2:
TABLE 2
The functional module called by the flow step comprises: the number of the functional module, the number of the process step to which the functional module belongs, input parameters and the like, and the corresponding data table is shown in table 3:
TABLE 3 Table 3
The execution conditions of the flow steps include: the corresponding data table is shown in table 4, including the condition number, the sequence number of the flow step, the condition type, the data number, the data type number, the expression, etc.:
TABLE 4 Table 4
The data information required after executing the flow steps includes: the sequence numbers of the flow steps, the sequence numbers of the data, the corresponding data values and the like, and the data table is shown in table 5:
TABLE 5
S111, when the measurement and control task of the carrier rocket needs to be executed, determining a flow item mapping table based on the data table.
After the data table of the measurement and control flow information is built, when the measurement and control task of the carrier rocket needs to be executed, a flow engine is started, and then the flow engine initializes (analyzes) the data table to obtain each flow entity object, and the flow entity objects are stored in a flow item mapping table.
The process entity object can be understood as each process step, and for each process step in the process item mapping table, the process entity object can be executed as one process entity object, and if the execution is successful, the next process entity object is continued; if the execution fails, the execution is terminated. And the execution process can be paused, resumed or terminated according to the user's requirements during the execution of the process steps.
In one embodiment, determining a flow item mapping table based on a data table includes:
reading flow item data from a data table corresponding to the flow item information;
storing the names of the flow items in the flow item data into key value items in the flow item mapping table;
traversing each flow item name in the flow item mapping table, and searching a flow step contained in each flow item name in a data table corresponding to the flow step based on the flow item name;
storing the flow steps contained in each flow item name into the value item in the flow item mapping table; wherein key and value are a key-value pair.
In one embodiment, the method further comprises:
traversing all value items in the flow item mapping table to obtain corresponding flow steps;
if the type of the flow step is determined to be the service type, searching for input parameters in a data table corresponding to the function module called in the flow step, and storing the service output parameters as attribute information in a flow item mapping table;
if the type of the flow step is determined to be the condition type, searching the execution condition information in a data table corresponding to the execution condition of the flow step, and storing the execution condition information as attribute information in the flow item mapping table;
if the type of the flow step is determined to be a storage type, searching a corresponding data object in a data table corresponding to the data information required after the flow step, and storing the data object as attribute information in a flow item mapping table; the data object includes: data type, data value, and data sequence number.
In one embodiment, the method further comprises:
acquiring task types of flow items in measurement and control flow information;
and saving the flow item with the task type being the periodic task into a periodic flow list, and adding a corresponding execution state into the periodic flow list.
In this embodiment, the task types of some flow items are periodic, and the task types can be automatically and periodically executed without external triggering conditions; some of the process items are non-periodic in task type and require an external trigger condition (e.g., satisfying a certain execution condition or receiving a trigger instruction from an external user). Therefore, the process items of the periodic tasks need to be screened out, and errors in the follow-up measurement and control process are avoided.
The method is equivalent to connecting each flow item, the used flow step, the execution condition corresponding to the flow step, the functional module used by the flow step and the data required to be acquired after the flow step is executed in series, and the required information is conveniently searched in the flow item mapping table when the test task is executed in the follow-up.
S112, obtaining a target flow item name to be executed, and searching a flow entity object contained in the target flow item in a flow item mapping table according to the target flow item name.
When executing the measurement and control flow, the flow engine is a specific implementation for providing functional services externally, so that the target flow item name to be executed needs to be obtained from the input parameters, and the flow entity object contained in the target flow item is searched in the flow item mapping table according to the target flow item name.
It can be understood that, because the names of the flow items are stored in the flow item mapping table, the flow steps corresponding to the flow items; therefore, after the names of the flow items are determined, the corresponding flow entity objects can be searched in the flow item mapping table according to the names of the flow items.
S113, executing each flow entity object.
In one embodiment, executing each flow entity object includes:
when the flow entity object is a non-periodic flow, acquiring an object type of the flow entity object;
if the object type is the service type, calling a service function module corresponding to the flow entity object, and transmitting parameters required by the service function module;
if the object type is the nested type, continuing to analyze the streaming entity object, and executing corresponding operation according to the analysis result;
if the object type is a delay type, executing a waiting command;
if the object type is the condition type, acquiring corresponding state information after executing the flow entity object, and continuing to execute the subsequent flow according to the state information;
and if the object type is the storage type, storing the data information obtained after the execution of the flow step.
In one embodiment, executing each flow entity object includes:
when the process entity object is a periodic process, traversing a periodic process list to obtain each periodic process;
a corresponding thread is built for each periodic flow Cheng Chuang, and the process entity objects are executed periodically with the thread based on a preset time interval.
Specifically, when executing each aperiodic flow entity object, the following five object types are included:
1. service type
At this time, the corresponding service function module needs to be called, and parameters needed by the service function module book are transmitted.
2. Nested measurement type
If the flow entity object is of a nested type, the flow entity object is described as a nested flow, and the flow entity object needs to be parsed at this time, which refers to the specific implementation process in step S110.
3、waitTime
And if the delay type is the delay type, performing delay processing and executing a waiting command.
4. Condition type condition
At this time, the subsequent specific execution operation needs to be determined according to the execution condition, wherein the execution condition comprises a plurality of computing functions, which are mainly used for obtaining the condition determination result and are classified into more than, more than or equal to, not equal to, less than or equal to, and further comprise computing functions such as computing expressions, expression conversion and the like.
After the execution of a certain step of the process is completed, the corresponding result or state information needs to be acquired to determine how to execute the next step.
5. Storage type save
Executing the data storage flow, and sequentially writing each data to be stored into the corresponding data area.
When the periodic flow entity object is executed, after the flow engine is loaded, the periodic flow list is traversed, and an independent thread is created for each periodic flow entity object to schedule and execute.
In the execution function of the thread, task information of the process entity object is firstly obtained, and then the process task is periodically executed according to a set time interval. Before each period is executed, the start-stop state of the flow entity object is judged according to the state data of the data area.
According to the embodiment of the application, the measurement and control flow information in the running process of the carrier rocket measurement and control software is generalized and abstracted, the measurement and control flow information is summarized into the flow items, the steps included in the flow, the functional modules called in the steps, the execution conditions, the data storage and other data tables, and the data tables are analyzed and processed, so that the unified and standardized processing of the test flow is realized.
When the test flow changes, for example, the existing flow is required to be modified, or a new test flow is required to be added, the method can be realized by only modifying the configuration file to change the information in the corresponding data table, or recombining different sub-flows in the data table, the code is not required to be modified, the reusability of the software code is improved, the flexible configuration of the test flow is realized, the development efficiency is improved, the code modification is reduced, the probability of introducing risks is reduced, and the reliability of carrier rocket test and launching is improved.
Based on the same inventive concept as in the foregoing embodiments, this embodiment further provides an execution device of a launch vehicle measurement and control flow engine, as shown in fig. 2, where the device includes:
a construction unit 21, configured to construct a data table for measurement and control flow information of the carrier rocket based on the configuration file;
a determining unit 22, configured to determine a flow item mapping table based on the data table when the measurement and control task of the carrier rocket needs to be executed;
a searching unit 23, configured to obtain a target procedure item name to be executed, and search a procedure entity object included in the target procedure item in a procedure item mapping table according to the target procedure item name;
an execution unit 24, configured to execute each of the flow entity objects.
Since the device described in the embodiments of the present application is a device used for implementing the method for executing the measurement and control flow engine of the carrier rocket in the embodiments of the present application, based on the method described in the embodiments of the present application, a person skilled in the art can understand the specific structure and the deformation of the device, and therefore, the detailed description thereof is omitted herein. All devices used in the method of the embodiment of the application are within the scope of the application.
Based on the same inventive concept, this embodiment provides a computer-readable storage medium 300, as shown in fig. 3, on which a computer program 311 is stored, which computer program 311, when executed by a processor, implements the steps of any of the methods described above.
Through one or more embodiments of the present application, the present application has the following benefits or advantages:
the application provides an execution method, a device and a medium of a carrier rocket measurement and control flow engine, wherein the method comprises the following steps: constructing a data table for measurement and control flow information of the carrier rocket based on the configuration file; when the measurement and control task of the carrier rocket needs to be executed, determining a flow item mapping table based on the data table; acquiring a name of a target flow item to be executed; searching a flow entity object contained in the target flow item in a flow item mapping table according to the name of the target flow item; executing each flow entity object: therefore, the flow engine can construct a data table of measurement and control flow information of the carrier rocket according to the configuration information, further abstract the measurement and control flow information into flow entity objects, and if the configuration file is required to be correspondingly modified, the data table is correspondingly changed when the subsequent test or launching task is required to be modified, then the flow item mapping table is correspondingly changed, and then the corresponding flow entity object is selected in the flow mapping table to be executed; therefore, the software code does not need to be modified any more, the risk brought by code modification is avoided, and the reliability of the actual test and the launching process of the carrier rocket is improved.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present application is not directed to any particular programming language. It will be appreciated that the teachings of the present application described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed application requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a gateway, proxy server, system according to embodiments of the present application may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present application can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present application may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
The above description is not intended to limit the scope of the application, but is intended to cover any modifications, equivalents, and improvements within the spirit and principles of the application.
Claims (6)
1. The method for executing the carrier rocket measurement and control flow engine is characterized by comprising the following steps:
constructing a data table for measurement and control flow information of the carrier rocket based on the configuration file;
when the measurement and control task of the carrier rocket needs to be executed, determining a flow item mapping table based on the data table;
acquiring a target flow item name to be executed, and searching a flow entity object contained in the target flow item in a flow item mapping table according to the target flow item name;
executing each flow entity object; wherein,,
the construction of the data table for the measurement and control flow information of the carrier rocket based on the configuration file comprises the following steps:
analyzing the configuration file to obtain each flow item contained in the measurement and control flow information, the flow step contained in the flow item, the functional module called by the flow step, the execution condition of each flow step and the data information required after the flow step is executed;
creating a corresponding data table for the flow item, the flow step, the function module called by the flow step, the execution condition of the flow step and the data information required after the flow step is executed respectively; wherein the data table comprises: field name, data type, field meaning and remark information;
the determining a flow item mapping table based on the data table includes:
reading flow item data from a data table corresponding to the flow item information;
storing the flow item name in the flow item data into a key value item in the flow item mapping table;
the method further comprises the steps of:
traversing each flow item name in the flow item mapping table, and searching a flow step contained in each flow item name in a data table corresponding to the flow step based on the flow item name;
storing the flow steps contained in each flow item name into a value item in the flow item mapping table;
the method further comprises the steps of:
traversing all value items in the flow item mapping table to obtain corresponding flow steps;
if the type of the flow step is determined to be the service type, searching an input parameter in a data table corresponding to the function module called by the flow step, and storing the input parameter as attribute information in the flow item mapping table;
if the type of the flow step is determined to be the condition type, searching for execution condition information in a data table corresponding to the execution condition of the flow step, and storing the execution condition information as attribute information in the flow item mapping table;
if the type of the flow step is determined to be a storage type, searching a corresponding data object in a data table corresponding to the data information required after the flow step is executed, and storing the data object as attribute information in the flow item mapping table; the data object includes: data type, data value, and data sequence number.
2. The method of claim 1, wherein the method further comprises:
acquiring task types of flow items in the measurement and control flow information;
and saving the flow item of which the task type is periodic task into a periodic flow list, and adding a corresponding execution state into the periodic flow list.
3. The method of claim 1, wherein said executing each of said process entity objects comprises:
when the flow entity object is a non-periodic flow, acquiring an object type of the flow entity object;
if the object type is a service type, calling a service function module corresponding to the flow entity object, and transmitting parameters needed by the service function module;
if the object type is the nested type, continuing to analyze the flow entity object, and executing corresponding operation according to the analysis result;
if the object type is a delay type, executing a waiting command;
if the object type is a conditional type, acquiring corresponding state information after executing the process entity object, and continuing to execute a subsequent process according to the state information;
and if the object type is a storage type, storing the data information obtained after the execution of the flow step.
4. The method of claim 1, wherein said executing each of said process entity objects comprises:
when the flow entity object is a periodic flow, traversing a periodic flow list to obtain each periodic flow;
and establishing a corresponding thread for each periodic flow Cheng Chuang, and periodically executing the flow entity object by using the thread based on a preset time interval.
5. An execution device of a carrier rocket measurement and control flow engine, which is characterized by comprising:
the construction unit is used for constructing a data table for the measurement and control flow information of the carrier rocket based on the configuration file;
the determining unit is used for determining a flow item mapping table based on the data table when the measurement and control task of the carrier rocket is required to be executed;
the searching unit is used for acquiring a target flow item name to be executed and searching a flow entity object contained in the target flow item in a flow item mapping table according to the target flow item name;
an execution unit, configured to execute each of the flow entity objects; wherein,,
the construction of the data table for the measurement and control flow information of the carrier rocket based on the configuration file comprises the following steps:
analyzing the configuration file to obtain each flow item contained in the measurement and control flow information, the flow step contained in the flow item, the functional module called by the flow step, the execution condition of each flow step and the data information required after the flow step is executed;
creating a corresponding data table for the flow item, the flow step, the function module called by the flow step, the execution condition of the flow step and the data information required after the flow step is executed respectively; wherein the data table comprises: field name, data type, field meaning and remark information;
the determining a flow item mapping table based on the data table includes:
reading flow item data from a data table corresponding to the flow item information;
storing the flow item name in the flow item data into a key value item in the flow item mapping table;
traversing each flow item name in the flow item mapping table, and searching a flow step contained in each flow item name in a data table corresponding to the flow step based on the flow item name;
storing the flow steps contained in each flow item name into a value item in the flow item mapping table;
traversing all value items in the flow item mapping table to obtain corresponding flow steps;
if the type of the flow step is determined to be the service type, searching an input parameter in a data table corresponding to the function module called by the flow step, and storing the input parameter as attribute information in the flow item mapping table;
if the type of the flow step is determined to be the condition type, searching for execution condition information in a data table corresponding to the execution condition of the flow step, and storing the execution condition information as attribute information in the flow item mapping table;
if the type of the flow step is determined to be a storage type, searching a corresponding data object in a data table corresponding to the data information required after the flow step is executed, and storing the data object as attribute information in the flow item mapping table; the data object includes: data type, data value, and data sequence number.
6. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310760664.7A CN116501650B (en) | 2023-06-27 | 2023-06-27 | Method, device and medium for executing carrier rocket measurement and control flow engine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310760664.7A CN116501650B (en) | 2023-06-27 | 2023-06-27 | Method, device and medium for executing carrier rocket measurement and control flow engine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116501650A CN116501650A (en) | 2023-07-28 |
CN116501650B true CN116501650B (en) | 2023-09-12 |
Family
ID=87320564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310760664.7A Active CN116501650B (en) | 2023-06-27 | 2023-06-27 | Method, device and medium for executing carrier rocket measurement and control flow engine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116501650B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508657A (en) * | 2011-10-18 | 2012-06-20 | 北京空间飞行器总体设计部 | Method for maintaining embedded software module of spacecraft |
CN102722170A (en) * | 2012-05-10 | 2012-10-10 | 北京宇航系统工程研究所 | Fault detection method used in test-launching stage of launch vehicle |
CN105487975A (en) * | 2015-11-27 | 2016-04-13 | 贵州航天风华精密设备有限公司 | Self organization method for spacecraft test software processes |
KR20180117953A (en) * | 2017-04-20 | 2018-10-30 | 한국항공우주연구원 | Method and System for Testing a Simulator |
RU2678717C1 (en) * | 2017-11-09 | 2019-01-31 | Российская Федерация, от имени которой выступает Государственная корпорация по космической деятельности "РОСКОСМОС" | Method for building a software system for automating and visualizing testing of embedded software for electronic devices |
CN110781184A (en) * | 2019-09-16 | 2020-02-11 | 平安科技(深圳)有限公司 | Data table construction method, device, equipment and storage medium |
CN111159034A (en) * | 2019-12-25 | 2020-05-15 | 中国人民解放军63920部队 | Software testing method and device |
CN112463595A (en) * | 2020-11-17 | 2021-03-09 | 杜晨飞 | Mobile terminal software development processing method based on cloud computing and cloud computing software platform |
CN112991512A (en) * | 2021-02-08 | 2021-06-18 | 北京京航计算通讯研究所 | Rapid scene model construction method based on measurement and control task analysis system model base |
CN112985193A (en) * | 2021-04-30 | 2021-06-18 | 星河动力(北京)空间科技有限公司 | Control method, device and system of carrier rocket and storage medium |
CN113254107A (en) * | 2021-06-23 | 2021-08-13 | 星河动力(北京)空间科技有限公司 | Telemetering data resolving method and device, electronic equipment and computer storage medium |
CN115686634A (en) * | 2023-01-03 | 2023-02-03 | 东方空间技术(山东)有限公司 | Processing method, device, terminal and storage medium for testing, issuing and controlling flow instructions |
CN115756589A (en) * | 2022-12-05 | 2023-03-07 | 航天科工火箭技术有限公司 | Configuration method, device, medium and equipment of rocket launching task planning platform |
CN115964273A (en) * | 2021-12-06 | 2023-04-14 | 北京航空航天大学 | Spacecraft test script automatic generation method based on deep learning |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1374111A2 (en) * | 2000-07-26 | 2004-01-02 | Volkswagen Aktiengesellschaft | Method, computer program, and system for carrying out a project |
-
2023
- 2023-06-27 CN CN202310760664.7A patent/CN116501650B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508657A (en) * | 2011-10-18 | 2012-06-20 | 北京空间飞行器总体设计部 | Method for maintaining embedded software module of spacecraft |
CN102722170A (en) * | 2012-05-10 | 2012-10-10 | 北京宇航系统工程研究所 | Fault detection method used in test-launching stage of launch vehicle |
CN105487975A (en) * | 2015-11-27 | 2016-04-13 | 贵州航天风华精密设备有限公司 | Self organization method for spacecraft test software processes |
KR20180117953A (en) * | 2017-04-20 | 2018-10-30 | 한국항공우주연구원 | Method and System for Testing a Simulator |
RU2678717C1 (en) * | 2017-11-09 | 2019-01-31 | Российская Федерация, от имени которой выступает Государственная корпорация по космической деятельности "РОСКОСМОС" | Method for building a software system for automating and visualizing testing of embedded software for electronic devices |
WO2021051625A1 (en) * | 2019-09-16 | 2021-03-25 | 平安科技(深圳)有限公司 | Data table construction method, apparatus and device, and storage medium |
CN110781184A (en) * | 2019-09-16 | 2020-02-11 | 平安科技(深圳)有限公司 | Data table construction method, device, equipment and storage medium |
CN111159034A (en) * | 2019-12-25 | 2020-05-15 | 中国人民解放军63920部队 | Software testing method and device |
CN112463595A (en) * | 2020-11-17 | 2021-03-09 | 杜晨飞 | Mobile terminal software development processing method based on cloud computing and cloud computing software platform |
CN112991512A (en) * | 2021-02-08 | 2021-06-18 | 北京京航计算通讯研究所 | Rapid scene model construction method based on measurement and control task analysis system model base |
CN112985193A (en) * | 2021-04-30 | 2021-06-18 | 星河动力(北京)空间科技有限公司 | Control method, device and system of carrier rocket and storage medium |
CN113254107A (en) * | 2021-06-23 | 2021-08-13 | 星河动力(北京)空间科技有限公司 | Telemetering data resolving method and device, electronic equipment and computer storage medium |
CN115964273A (en) * | 2021-12-06 | 2023-04-14 | 北京航空航天大学 | Spacecraft test script automatic generation method based on deep learning |
CN115756589A (en) * | 2022-12-05 | 2023-03-07 | 航天科工火箭技术有限公司 | Configuration method, device, medium and equipment of rocket launching task planning platform |
CN115686634A (en) * | 2023-01-03 | 2023-02-03 | 东方空间技术(山东)有限公司 | Processing method, device, terminal and storage medium for testing, issuing and controlling flow instructions |
Non-Patent Citations (1)
Title |
---|
魏伟 ; 陈三楚 ; 敦怡 ; 华清 ; 王宇飞 ; 甘霖.用于卫星入轨段测控的箭载天基测控中继系统_魏伟.《中国空间科学技术》.2022,第64-70页. * |
Also Published As
Publication number | Publication date |
---|---|
CN116501650A (en) | 2023-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7270764B2 (en) | artificial intelligence chip verification | |
US8799875B2 (en) | Streamlining unit testing through hot code swapping | |
US20030217354A1 (en) | Scope-based breakpoint selection and operation | |
US11681511B2 (en) | Systems and methods for building and deploying machine learning applications | |
CN105204917B (en) | The method and device of loading configuration file in application program launching | |
CN111782527A (en) | Interface testing method and device, computer equipment and storage medium | |
CN109284222B (en) | Software unit, project testing method, device and equipment in data processing system | |
CN112230904A (en) | Code generation method and device based on interface document, storage medium and server | |
CN110134598B (en) | Batch processing method, device and system | |
CN113626333A (en) | Automatic interface testing method and device | |
CN116501650B (en) | Method, device and medium for executing carrier rocket measurement and control flow engine | |
WO2023207973A1 (en) | Compiler test method and apparatus, case generation method and apparatus, and instruction storage structure | |
CN117195568A (en) | Simulation engine performance analysis method and device based on discrete event | |
US9710360B2 (en) | Optimizing error parsing in an integrated development environment | |
CN113051173B (en) | Method, device, computer equipment and storage medium for arranging and executing test flow | |
CN110688430B (en) | Method and device for obtaining data bypass and electronic equipment | |
CN114691496A (en) | Unit testing method, unit testing device, computing equipment and medium | |
CN110597736B (en) | Test data generation method and device | |
CN114528214A (en) | Unit testing method and device | |
CN112948188A (en) | Log file screening method, system and medium | |
Norlén | Architecture for a Symbolic Execution Environment | |
CN114924960A (en) | Case testing method, case testing device, case testing storage medium and case testing equipment | |
CN112486421B (en) | Data storage method and device, electronic equipment and storage medium | |
CN113342696A (en) | Unit testing method and device and storage medium | |
CN115993989A (en) | Code identification method, apparatus, computing device, and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |