CN115114690A - Arranging method and arranging device for flight engineering algorithm and electronic equipment - Google Patents
Arranging method and arranging device for flight engineering algorithm and electronic equipment Download PDFInfo
- Publication number
- CN115114690A CN115114690A CN202210861339.5A CN202210861339A CN115114690A CN 115114690 A CN115114690 A CN 115114690A CN 202210861339 A CN202210861339 A CN 202210861339A CN 115114690 A CN115114690 A CN 115114690A
- Authority
- CN
- China
- Prior art keywords
- operator
- dependent
- post
- function
- functional
- 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.)
- Granted
Links
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 256
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000001419 dependent effect Effects 0.000 claims abstract description 323
- 230000006870 function Effects 0.000 claims description 430
- 238000004364 calculation method Methods 0.000 claims description 28
- 238000007689 inspection Methods 0.000 claims description 10
- 238000003860 storage Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 6
- 238000012800 visualization Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 10
- 238000011161 development Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000013461 design Methods 0.000 description 5
- 238000005457 optimization Methods 0.000 description 5
- 238000012827 research and development Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/12—Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/15—Vehicle, aircraft or watercraft design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/20—Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
-
- 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/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Optimization (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Pure & Applied Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Aviation & Aerospace Engineering (AREA)
- Automation & Control Theory (AREA)
- Architecture (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a flight engineering algorithm arrangement method, an arrangement device and electronic equipment, wherein the arrangement method comprises the following steps: determining an initial function operator which does not carry a pre-dependent identification code in the algorithm function selection area as a target function operator, and adding the target function operator to the algorithm arrangement area in a parallel manner; determining an initial functional operator corresponding to the post-dependent identification code carried by the target functional operator as a first post-dependent operator, and adding the first post-dependent operator to the algorithm arrangement region; determining the initial function operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as a second post-dependent operator, and adding the second post-dependent operator to the algorithm arrangement area; and generating a flight engineering algorithm based on each functional operator existing in the algorithm arrangement region. According to the arrangement method and the arrangement device, algorithm flow visualization is achieved, and arrangement efficiency of flight engineering algorithms is improved.
Description
Technical Field
The application relates to the technical field of computers, in particular to a flight engineering algorithm arrangement method, an arrangement device and electronic equipment.
Background
The aircraft engineering algorithm refers to an engineering calculation method required in aircraft development and design, and relates to a plurality of specialties in the aircraft development process. In the face of complex and huge aircraft engineering algorithms which are continuously developed, an algorithm arrangement technology is particularly important.
At present, the conventional method for arranging the algorithm is to draw a flow diagram, convert the flow diagram into a sequential control language, and finally generate an assembly language which can be recognized by a computer to realize the sequential control of the operation of the algorithm. However, this algorithm arrangement is inefficient and wastes a lot of human resources and time. In addition, the aircraft engineering algorithm has the requirements of serial operation and parallel operation, so that the sequential flow control method is not universal.
Disclosure of Invention
In view of this, an object of the present application is to provide a flight engineering algorithm arrangement method, an arrangement device, and an electronic device, where a user may select a required initial function operator through a flight engineering operator library, add the initial function operator and an initial function operator having a dependency relationship with the initial function operator to an algorithm function selection area, and combine and connect the operators through the dependency relationship between the initial function operators, thereby quickly constructing an aircraft engineering algorithm operation flow, implementing algorithm flow visualization, and improving the arrangement efficiency of a flight engineering algorithm. And according to the dependency relationship among the initial function operators, the serial and parallel sequence of the algorithm operation is fully considered, the optimization of algorithm flow arrangement is realized, and the problem of low efficiency in the execution of the aircraft engineering algorithm is solved.
In a first aspect, an embodiment of the present application provides a flight engineering algorithm arrangement method, where the arrangement method includes:
responding to the selection operation of a user on at least one functional operator in the flight engineering operator library, and determining at least one initial functional operator;
for each initial function operator, determining the initial function operator having a dependency relationship with the initial function operator, and adding the initial function operator and the initial function operator having a dependency relationship with the initial function operator to an algorithm function selection area of a user interface;
for each initial function operator in the algorithm function selection area, displaying identification codes corresponding to other initial function operators which the initial function operator depends on at the position of the initial function operator in the algorithm function selection area;
determining an initial function operator which does not carry a pre-dependent identification code in the algorithm function selection area as a target function operator, and adding each target function operator to an algorithm arrangement area of the user interface in a parallel manner;
for each target function operator, judging whether the target function operator carries a post-dependency identification code, if so, determining an initial function operator corresponding to the post-dependency identification code carried by the target function operator in the algorithm function selection area as a first post-dependency operator, and adding the first post-dependency operator to the algorithm arrangement area; the first post-dependent operator is connected with the target function operator in series;
for each first post-dependent operator, judging whether the first post-dependent operator carries a post-dependent identification code, if so, determining an initial function operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection region as a second post-dependent operator, and marking the second post-dependent operator;
for each second post-dependent operator, judging whether the number of marks of the second post-dependent operator is equal to the number of the pre-dependent identification codes carried by the second post-dependent operator;
if yes, adding the second post-dependent operator to the algorithm arrangement region, and determining the second post-dependent operator as a first post-dependent operator; the second post-dependent operator is connected in series with the first post-dependent operator carrying the identification code corresponding to the second post-dependent operator;
for each first post-dependent operator, judging whether the first post-dependent operator carries a post-dependent identification code again, if so, returning to execute the step of determining an initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as a second post-dependent operator;
and if not, generating a flight engineering algorithm based on the functional operators existing in the algorithm arrangement region and the connection relation among the functional operators.
Further, before the operation responding to the selection of the user for at least one functional operator in the flight engineering operator library, the arranging method further comprises the following steps:
aiming at each function operator to be generated, determining each needed sub-function operator in the function operators to be generated and a calculation task corresponding to each sub-function operator;
generating corresponding functional operators based on each sub-functional operator required in the functional operator to be generated and the calculation task corresponding to each sub-functional operator, and determining the identification codes corresponding to the functional operators;
for each functional operator, determining the dependency relationship between the functional operator and other functional operators, and adding the identification codes of the other functional operators having the dependency relationship with the functional operator to the front dependency and/or the rear dependency of the functional operator;
and storing the functional operator and the identification codes of the front dependency and/or the rear dependency carried by the functional operator in the flight engineering operator library.
Further, for each initial functional operator, determining an initial functional operator having a dependency relationship with the initial functional operator includes:
judging whether the initial function operator carries a front-dependent identification code and/or a rear-dependent identification code or not based on the flight engineering operator library;
if so, determining the functional operator corresponding to the pre-dependent identification code carried by the initial functional operator and/or the functional operator corresponding to the post-dependent identification code carried by the initial functional operator as the initial functional operator with the dependency relationship with the initial functional operator.
Further, the arranging method further comprises the following steps:
aiming at each initial function operator in the algorithm function selection area, judging whether a deleting instruction of the user for the initial function operator is received or not;
and if so, deleting the initial function operator from the algorithm function selection area.
Further, the arranging method further comprises the following steps:
responding to the configuration operation of the user on the configuration parameters corresponding to the initial function operator aiming at each initial function operator in the algorithm function selection area;
carrying out specification inspection on the configuration parameters, and judging whether the configuration parameters meet preset inspection rules or not;
if yes, configuring the initial function operator based on the configuration parameters;
if not, displaying prompt information on the user interface; wherein, the prompt message is used to represent that the configuration parameter does not conform to the check rule.
Further, for each initial function operator in the algorithm function selection area, displaying, at a position where the initial function operator is located in the algorithm function selection area, identification codes corresponding to other initial function operators on which the initial function operator depends, including:
determining a dependent function operator having a dependency relationship with the initial function operator based on the flight engineering operator library, and judging whether the dependent function operator has a pre-dependent identification code and/or a post-dependent identification code;
if so, judging whether the pre-dependent identification code carried by the dependent function operator and/or the post-dependent identification code carried by the dependent function operator is the same as the identification code corresponding to any initial function operator in the algorithm function selection area;
if so, displaying the pre-dependent identification code and/or the post-dependent identification code carried by the dependent function operator at the position of the initial function operator in the algorithm function selection area.
In a second aspect, an embodiment of the present application further provides an arrangement device for a flight engineering algorithm, where the arrangement device includes:
the initial function operator determining module is used for responding to the selection operation of a user on at least one function operator in the flight engineering operator library and determining at least one initial function operator;
the first adding module is used for determining an initial function operator having a dependency relationship with the initial function operator aiming at each initial function operator, and adding the initial function operator and the initial function operator having the dependency relationship with the initial function operator into an algorithm function selection area of the user interface;
the display module is used for displaying identification codes corresponding to other initial function operators which the initial function operators depend on at the positions where the initial function operators are located in the algorithm function selection area aiming at each initial function operator in the algorithm function selection area;
the second adding module is used for determining the initial function operator which does not carry the pre-dependent identification code in the algorithm function selection area as a target function operator, and adding each target function operator to the algorithm arrangement area of the user interface in a parallel mode;
the first post-dependent operator determining module is used for judging whether the target function operator carries a post-dependent identification code or not aiming at each target function operator, if so, determining an initial function operator corresponding to the post-dependent identification code carried by the target function operator in the algorithm function selection area as a first post-dependent operator, and adding the first post-dependent operator into the algorithm arrangement area; the first post-dependent operator is connected with the target function operator in series;
the second post-dependent operator determining module is used for judging whether the first post-dependent operator carries a post-dependent identification code or not aiming at each first post-dependent operator, if so, determining an initial function operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as a second post-dependent operator, and marking the second post-dependent operator;
the first judgment module is used for judging whether the number of the marks of each second post-dependent operator is equal to the number of the front-dependent identification codes carried by the second post-dependent operator or not for each second post-dependent operator;
a third adding module, configured to add the second post-dependent operator to the algorithm arrangement region if the first post-dependent operator is determined to be the first post-dependent operator; the second post-dependent operator is connected in series with the first post-dependent operator carrying the identification code corresponding to the second post-dependent operator;
the second judgment module is used for judging whether the first post-dependent operator carries the post-dependent identification code or not for each first post-dependent operator again, and if yes, returning to execute the step of determining the initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as the second post-dependent operator;
and the algorithm generating module is used for generating the flight engineering algorithm based on the functional operators existing in the algorithm arrangement region and the connection relation among the functional operators if the algorithm generating module does not generate the flight engineering algorithm.
Further, the orchestration device further comprises a functional operator building module, before the operation of responding to the selection of at least one functional operator in the flight engineering operator library by the user, for:
aiming at each function operator to be generated, determining each needed sub-function operator in the function operators to be generated and a calculation task corresponding to each sub-function operator;
generating a corresponding functional operator based on each sub-functional operator required in the functional operator to be generated and a calculation task corresponding to each sub-functional operator, and determining an identification code corresponding to the functional operator;
for each functional operator, determining the dependency relationship between the functional operator and other functional operators, and adding the identification codes of the other functional operators having the dependency relationship with the functional operator to the front dependency and/or the rear dependency of the functional operator;
and storing the functional operator and the identification code of the pre-dependency and/or the post-dependency carried by the functional operator in the flight engineering operator library.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the programming method of flight engineering algorithms as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to execute the steps of the arrangement method of flight engineering algorithms as described above.
According to the arranging method and the arranging device for the flight engineering algorithm, a user can select the required initial function operator through the flight engineering operator library, the initial function operator and the initial function operator with the dependency relationship with the initial function operator are added into the algorithm function selection area, the operators are combined and connected through the dependency relationship among the initial function operators, the aircraft engineering algorithm operation flow is quickly established, algorithm flow visualization is achieved, and arranging efficiency of the flight engineering algorithm is improved. And according to the dependency relationship among the initial function operators, the serial and parallel sequence of the algorithm operation is fully considered, the optimization of algorithm flow arrangement is realized, and the problem of low efficiency in the execution of the aircraft engineering algorithm is solved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flowchart of a method for scheduling flight engineering algorithms according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an arrangement device for flight engineering algorithms according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an arrangement device for another flight engineering algorithm provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
The aircraft engineering algorithm is an engineering calculation method required in aircraft research and development and design, relates to multiple specialties in the aircraft research and development process, such as engineering strength specialties and the like, develops rapidly in depth and breadth in recent years, is particularly suitable for processing aircraft manufacturing and flight data, and supports engineering software to be applied in a large scale. In order to meet different engineering calculation requirements and provide support for airplane design, airplane engineering algorithms based on different engineering software are continuously developed and used, for example, a civil airplane body dynamic landing response load engineering calculation method, an engineering calculation method for connecting a rod and a plate in an airplane structure and the like. In the face of complex and huge aircraft engineering algorithms which are continuously developed, an algorithm arrangement technology is particularly important. In addition, some algorithm functions are both independent and dependent on each other based on the applicability of the algorithm. The output of some algorithm functions needs to be used as the input condition of other algorithm functions, and the output of some algorithm functions needs to be used as the trigger condition of other algorithm functions, so that the compiling, deploying and operating processes in the development of the automatic algorithm are needed, and the aircraft engineering calculation needs also need to be realized by orderly organizing engineering calculation software.
The research shows that the conventional scheme for solving the problems at present realizes the sequential control of the operation of the algorithm by a method of drawing a flow block diagram, converting the flow block diagram into a sequential control language and finally generating an assembly language which can be identified by a computer, but the aircraft engineering algorithm has the requirements of serial operation and parallel operation, so the sequential flow control method is not universal, the dependence of each function in the algorithm is not considered in the prior art, and an effective scientific method is not available for the multifunctional packaging and arrangement of the algorithm by adopting the serial operation mode. Moreover, in the prior art, the engineering algorithm with high calculation overlap ratio needs to rewrite codes, which can bring limitation to development efficiency. Therefore, how to improve the flexibility of the programming of the aircraft engineering algorithm and reduce the utilization of resources is a technical problem to be solved at present.
Based on the above, the embodiment of the application provides a flight engineering algorithm arrangement method, which realizes algorithm flow visualization, improves arrangement efficiency of flight engineering algorithms, realizes algorithm flow arrangement optimization, and alleviates the problem of low execution efficiency of aircraft engineering algorithms.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for arranging a flight engineering algorithm according to an embodiment of the present disclosure. As shown in fig. 1, a method for arranging a flight engineering algorithm provided in an embodiment of the present application includes:
s101, responding to the selection operation of a user on at least one functional operator in the flight engineering operator library, and determining at least one initial functional operator.
It should be noted that the functional operators refer to the operators required for constructing the final flight engineering algorithm. Each functional operator comprises a data parameter preparation program, a data legality checking program and an algorithm function program, each functional operator is used for completing a group of related calculation tasks, and each functional operator has a unique identification code. The identification codes refer to identification IDs corresponding to the functional operators, the identification codes of all the functional operators are different, and different identification codes are used for representing different functional operators. A complete flight algorithm flow consists of a plurality of functional operators, one functional operator consists of a plurality of sub-functional operators, and the sub-functional operators and the corresponding calculation tasks in each functional operator are configured and fixed. The flight engineering operator library refers to a database for storing all functional operators which may be used in the design of an aircraft engineering algorithm. The aircraft engineering algorithm is an engineering calculation method required in aircraft research and development and design, relates to multiple specialties in the aircraft research and development process, such as engineering strength specialties and the like, is particularly suitable for processing aircraft manufacturing and flight data, and supports engineering software to be applied in a large scale. The initial function operator refers to a function operator selected by a user in the flight engineering operator library, and the function operator selected by the user is used as the initial function operator.
For the step S101, in a specific implementation, in response to a selection operation of a user on at least one functional operator in the flight engineering operator library, the functional operator selected by the user is used as an initial functional operator, and the at least one initial functional operator is determined.
As an optional implementation manner, before responding to a selection operation of a user on at least one functional operator in a flight engineering operator library, the programming method of a flight engineering algorithm provided in an embodiment of the present application further includes:
a: and aiming at each function operator to be generated, determining each needed sub-function operator in the function operator to be generated and a calculation task corresponding to each sub-function operator.
B: and generating corresponding functional operators based on each sub-functional operator required in the functional operator to be generated and the calculation task corresponding to each sub-functional operator, and determining the identification codes corresponding to the functional operators.
It should be noted that the functional operator to be generated refers to the functional operator to be constructed.
For the step a and the step B, in a specific implementation, for each to-be-generated functional operator, each required sub-functional operator in the to-be-generated functional operator and a calculation task corresponding to each sub-functional operator are determined first. And generating corresponding functional operators based on each sub-functional operator required in the functional operator to be generated and the calculation task corresponding to each sub-functional operator, and generating corresponding identification codes for the generated functional operators.
C: for each functional operator, determining the dependency relationship between the functional operator and other functional operators, and adding the identification codes of other functional operators having the dependency relationship with the functional operator to the front dependency and/or the rear dependency of the functional operator.
It should be noted that the dependency relationship refers to a connection relationship between a functional operator and other functional operators. According to embodiments provided herein, a dependency relationship may include a pre-dependency and a post-dependency. Pre-dependency refers to the fact that between two functional operators, the former functional operator needs to depend on the latter functional operator to operate. If the functional operator can be operated independently, the previously dependent ID of the functional operator is displayed as empty. Post-dependency refers to the condition between two functional operators, where the result of a computation of a previous functional operator is the input or trigger condition of a subsequent functional operator. And if the calculation result of the functional operator is not the input or the trigger condition of other functional operators, displaying the post-dependent identification ID of the functional operator as null.
And for the step C, in specific implementation, determining the dependency relationship between the function operator and other function operators for each constructed function operator, and then adding the identification codes of the other function operators having the dependency relationship with the function operator to the front dependency and/or the rear dependency of the function operator. As an example, for functional operator a, it is determined that functional operator B and functional operator C have a dependency relationship with functional operator a. The functional operator A needs to depend on the functional operator B for operation, and the dependency relationship between the functional operator A and the functional operator B is the former dependency; and if the calculation result of the functional operator A is the input or trigger condition of the functional operator C, the dependency relationship between the functional operator A and the functional operator C is the post-dependency. At this time, the identification code of the functional operator B needs to be added to the pre-dependency of the functional operator a, and the identification code of the functional operator C needs to be added to the post-dependency of the functional operator a.
D: and storing the functional operator and the identification codes of the front dependency and/or the rear dependency carried by the functional operator in the flight engineering operator library.
For the step D, in a specific implementation, after the pre-dependency and the post-dependency of each functional operator and each functional operator are determined, the identification codes of the pre-dependency and/or the post-dependency carried by each functional operator and each functional operator are stored in the flight engineering operator library. Therefore, when the flight engineering algorithm is arranged, the required flight engineering algorithm is constructed by utilizing the constructed functional operator, and the development efficiency of the flight engineering algorithm is improved. For the aircraft engineering algorithm with high calculated contact ratio, the algorithm can be rearranged by changing the functional calculation in the aircraft engineering algorithm, and the workload of algorithm development is also reduced.
S102, aiming at each initial function operator, determining the initial function operator having a dependency relationship with the initial function operator, and adding the initial function operator and the initial function operator having a dependency relationship with the initial function operator into an algorithm function selection area of the user interface.
It should be noted that, the user interface refers to a web-based UI interface for displaying the function operator selected by the user and the arrangement of the function operator. According to an embodiment provided by the application, the user interface is divided into two parts: the algorithm function selects regions and the algorithm layout region. The algorithm function selection area is used for displaying each initial function operator required by the algorithm. The algorithm layout area is used for placing the initial function operators in the algorithm function selection area, judging the serial or parallel connection mode among the initial function operators and constructing an aircraft engineering algorithm implementation flow.
For the step S102, in a specific implementation, for each determined initial function operator, an initial function operator having a dependency relationship with the initial function operator is determined, and the initial function operator having a dependency relationship with the initial function operator are added to the algorithm function selection area of the user interface.
As an optional implementation manner for step S102, the determining, for each initial functional operator, an initial functional operator having a dependency relationship with the initial functional operator includes:
and 1021, judging whether the initial function operator carries a pre-dependency identification code and/or a post-dependency identification code based on the flight engineering operator library.
And 1022, if yes, determining the functional operator corresponding to the pre-dependent identification code carried by the initial functional operator and/or the functional operator corresponding to the post-dependent identification code carried by the initial functional operator as the initial functional operator having a dependency relationship with the initial functional operator.
In specific implementation, in step 1021 and step 1022, for each initial function operator, based on the constructed flight engineering operator library, it is determined whether the initial function operator carries a pre-dependency identification code and/or a post-dependency identification code. If yes, execute the above step 1022, and determine the functional operator corresponding to the pre-dependent identification code carried by the initial functional operator and/or the functional operator corresponding to the post-dependent identification code carried by the initial functional operator as the initial functional operator having a dependency relationship with the initial functional operator. And when the initial functional operator determined by the user is the functional operator A, judging that the functional operator A carries the front-dependent identification code and the rear-dependent identification code based on the constructed flight engineering operator library, executing the step B, wherein the front-dependent identification code carried by the functional operator A is the identification code of the functional operator B, the rear-dependent identification code carried by the functional operator A is the identification code of the functional operator C, and determining the functional operator B and the functional operator C as the initial functional operator having the dependency relationship with the functional operator A.
As an optional implementation manner, the arrangement method of the flight engineering algorithm provided in the embodiment of the present application further includes:
i: and aiming at each initial function operator in the algorithm function selection area, judging whether a deleting instruction of the user for the initial function operator is received or not.
II: and if so, deleting the initial function operator from the algorithm function selection area.
It should be noted that the delete instruction is an instruction to delete an initial function operator from the algorithm function selection area.
And aiming at the step I and the step II, in specific implementation, judging whether a deleting instruction of the initial function operator by the user is received or not aiming at each initial function operator added into an algorithm function selection area of a user interface, if so, executing the step II, and deleting the initial function operator from the algorithm function selection area.
As an optional implementation manner, the arrangement method of the flight engineering algorithm provided in the embodiment of the present application further includes:
i: responding to the configuration operation of the user on the configuration parameters corresponding to the initial function operator aiming at each initial function operator in the algorithm function selection area;
ii: carrying out specification inspection on the configuration parameters, and judging whether the configuration parameters meet preset inspection rules or not;
iii: if yes, configuring the initial function operator based on the configuration parameters;
iv: and if not, displaying prompt information on the user interface.
The configuration instruction is an instruction for configuring each initial function operator in the algorithm function selection area. Configuration parameters refer to parameters used to configure computational tasks in the respective initial functional operators. According to the embodiments provided in the present application, the configuration parameters may include material parameters, fastener parameters, working conditions, and the like in the initial function operator, and the present application is not particularly limited thereto. The check rule refers to a preset rule for judging whether the configuration parameters input by the user are qualified or not. According to the embodiments provided in the present application, the check rule may be a rule that checks whether the configuration parameter input by the user is a computable numerical value instead of a special character, a rule that checks whether none of the configuration parameters input by the user is empty, a rule that checks whether the special parameter is not 0, or the like, and the present application is not particularly limited. The prompt message is used for indicating that the configuration parameters input by the user do not accord with the check rule.
In specific implementation, for each initial function operator added to the algorithm function selection area of the user interface, in response to the configuration operation of the user on the configuration parameter corresponding to the initial function operator, receiving the configuration parameter corresponding to the initial function operator sent by the user. And then, carrying out specification inspection on the configuration parameters input by the user, and judging whether the configuration parameters meet preset inspection rules or not. According to the embodiment provided by the application, when the specification is checked, a general specification checking code segment is established, the code segment comprises all checking rules, and the input of the code segment is the configuration parameters input by a user to be checked. And if the configuration parameters meet the preset check rules, executing step iii, and configuring the initial function operator based on the configuration parameters input by the user. And if the configuration parameters do not accord with the preset check rules, executing the step iv, and displaying prompt information on the user interface to remind the user that the input configuration parameters do not accord with the check rules. And the specification checking code segment will also output information for configuration parameters that do not comply with the rules.
S103, aiming at each initial function operator in the algorithm function selection area, displaying the identification codes corresponding to other initial function operators depended by the initial function operator at the position of the initial function operator in the algorithm function selection area.
For step S103, in a specific implementation, for each initial function operator in the algorithm function selection area, the identification codes corresponding to other initial function operators that the initial function operator depends on are displayed at the position of the initial function operator in the algorithm function selection area.
As an optional implementation manner for step S103, for each initial function operator in the algorithm function selection area, displaying, at a position of the initial function operator in the algorithm function selection area, identification codes corresponding to other initial function operators that the initial function operator depends on, includes:
and 1031, determining a dependent function operator having a dependency relationship with the initial function operator based on the flight engineering operator library, and judging whether the dependent function operator has a pre-dependent identification code and/or a post-dependent identification code.
And 1032, if yes, judging whether the pre-dependent identification code carried by the dependent function operator and/or the post-dependent identification code carried by the dependent function operator is the same as the identification code corresponding to any initial function operator in the algorithm function selection area.
And 1033, if yes, displaying the pre-dependent identification code and/or the post-dependent identification code carried by the dependent function operator at the position of the initial function operator in the algorithm function selection area.
It should be noted that the dependent function operator refers to a function operator with pre-dependency or post-dependency with the initial function operator.
And aiming at the steps 1031 to 1033, in specific implementation, based on the constructed flight engineering operator library, determining the dependent function operators with the dependency relationship among the initial function operators. And judging whether the determined dependent function operator has a pre-dependent identification code and/or a post-dependent identification code. If yes, go to step 1032. And when the determined dependent function operator has a pre-dependent identification code and/or a post-dependent identification code, judging whether the pre-dependent identification code carried by the dependent function operator and/or the post-dependent identification code carried by the dependent function operator is the same as the identification code corresponding to any initial function operator in the algorithm function selection area. If yes, go to step 1033. And when the front-dependent identification code carried by the dependent function operator and/or the back-dependent identification code carried by the dependent function operator is the same as the identification code of any initial function operator in the algorithm function selection area, displaying the front-dependent identification code and/or the back-dependent identification code carried by the dependent function operator at the position of the initial function operator in the algorithm function selection area.
Thus, all initial function operators in the algorithm function selection area do not have a dependency relationship with each other, and for each initial function operator, the dependent function operator having the dependency relationship with the initial function operator is determined in the flight engineering operator library, and judging whether the pre-dependent identification code carried by the dependent function operator and/or the post-dependent identification code carried by the dependent function operator is the same as the identification code of any initial function operator in the algorithm function selection area, if the identification codes are the same, the dependent function operator is considered to have been added to the algorithm function selection area, at the moment, the pre-dependent identification code and/or the post-dependent identification code carried by the dependent function operator are displayed at the position of the initial function operator in the algorithm function selection area, namely, the dependency relationship between the initial function operator and other initial function operators in the algorithm function selection area is obtained. And taking the identification code of the initial function operator in the algorithm function selection area as a query condition, querying in an airplane engineering operator library, and displaying the identification ID on which the queried function operator depends, so as to obtain the dependency relationship of all the initial function operators in the algorithm function selection area.
S104, determining the initial function operator which does not carry the pre-dependent identification code in the algorithm function selection area as a target function operator, and adding each target function operator to the algorithm arrangement area of the user interface in a parallel mode.
It should be noted that the target function operator refers to an initial function operator that can be independently operated in the algorithm function selection area.
For the above step S104, in a specific implementation, it is determined which initial function operators in the algorithm function selection region do not carry the pre-dependent identification code, the initial function operators in the algorithm function selection region that do not carry the pre-dependent identification code are determined as target function operators, and each determined target function operator is added to the algorithm arrangement region of the user interface in a parallel manner. At the moment, the target function operators in the algorithm arrangement region do not have dependency relationship, so that parallel connection is carried out, and a distributed computing framework is accessed to execute a plurality of computing tasks contained in each target function operator in parallel. When the algorithm is executed, the algorithms starting from the target function operator are executed in parallel, so that the optimization of algorithm flow arrangement is realized, and the problem of low efficiency in the execution of the aircraft engineering algorithm is solved.
S105, judging whether the target function operator carries a post-dependence identification code or not aiming at each target function operator, if so, determining an initial function operator corresponding to the post-dependence identification code carried by the target function operator in the algorithm function selection area as a first post-dependence operator, and adding the first post-dependence operator to the algorithm arrangement area.
It should be noted that the first post-dependent operator refers to an initial functional operator having a post-dependent relationship with the target functional operator in the algorithm function selection region. The result of the calculation of the target function operator is the input or trigger condition of the first post-dependent operator.
In the step S105, it is determined whether the target function operator carries a post-dependency identification code for each target function operator added to the algorithm arrangement region, and if yes, the initial function operator corresponding to the post-dependency identification code carried by the target function operator in the algorithm function selection region is determined as a first post-dependency operator, and the first post-dependency operator is added to the algorithm arrangement region. At this time, the first post-dependent operator and the target function operator are connected in series, and the target function operator and the first post-dependent operator need to be executed in series and sequentially during execution. As an example, for example, when the determined target function operator is a function operator a in the algorithm arrangement region, and a function operator corresponding to the post-dependent identification code carried by the function operator a is a function operator B, it is determined that the function operator a carries the post-dependent identification code, the function operator B is determined as a first post-dependent operator, the function operator B is added to the algorithm arrangement region, and the function operator a and the function operator B are connected in a serial connection manner.
S106, aiming at each first post-dependent operator, judging whether the first post-dependent operator carries a post-dependent identification code, if so, determining an initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as a second post-dependent operator, and marking the second post-dependent operator.
It should be noted that the second post-dependent operator refers to an initial functional operator having a post-dependent relationship with the first post-dependent operator in the algorithm function selection region. The result of the computation of the first post-dependent operator is the input or trigger condition of the second post-dependent operator.
As for the step S106, in a specific implementation, it is determined whether each first post-dependent operator added to the algorithm arrangement region carries a post-dependent identification code, if so, the initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection region is determined as a second post-dependent operator, and the second post-dependent operator is marked. As an example, continuing the embodiment in step S105, the functional operator B is determined as a first post-dependent operator, the functional operator B carries a post-dependent identification code, and the post-dependent identification code corresponds to the functional operator C, when it is determined that the functional operator B carries the post-dependent identification code, the functional operator C corresponding to the post-dependent identification code carried by the functional operator B is determined as a second post-dependent operator, and the functional operator C is marked.
S107, aiming at each second post-dependent operator, judging whether the number of marks of the second post-dependent operator is equal to the number of the front-dependent identification codes carried by the second post-dependent operator.
In step S107, in a specific implementation, for each second post-dependent operator added to the algorithm arrangement area, it is determined whether the number of labels of the second post-dependent operator is equal to the number of pre-dependent identification codes carried by the second post-dependent operator, and if yes, the following step S108 is performed. As an example, continuing the embodiment in step S106, when the functional operator C is determined as the second post-dependent operator, it is determined whether the number of marked marks of the functional operator C is equal to the number of pre-dependent identification codes carried by the functional operator C, and if so, the following step S108 is performed.
And S108, if so, adding the second post-dependent operator into the algorithm arrangement region, and determining the second post-dependent operator as the first post-dependent operator.
With respect to the step S108, in a specific implementation, when it is determined that the number of labels of the second post-dependent operator is equal to the number of pre-dependent identification codes carried by the second post-dependent operator, the second post-dependent operator is added to the algorithm arrangement region, and at this time, the second post-dependent operator is connected in series with the first post-dependent operator carrying the identification code corresponding to the second post-dependent operator. And determining the second post-dependent operator as the first post-dependent operator. As an example, in the embodiment in the continuation step S106, the functional operator C is added to the algorithm arrangement region, and since the functional operator B carries the identification code corresponding to the functional operator C, the functional operator B and the functional operator C need to be connected in series at this time, and the functional operator C is added after the functional operator B. And then determining the functional operator C as a first post-dependent operator.
And S109, judging whether the first post-dependent operator carries a post-dependent identification code or not for each first post-dependent operator, if so, returning to execute the step of determining the initial function operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as a second post-dependent operator.
For the above step S109, in a specific implementation, it is determined again whether each first post-dependent operator determined in step S108 carries a post-dependent identification code, and if yes, the step returns to execute step S106 to determine, as a second post-dependent operator, an initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area.
And S110, if not, generating a flight engineering algorithm based on the functional operators existing in the algorithm arrangement region and the connection relation among the functional operators.
Here, each of the functional operators existing in the algorithm arrangement region includes the target functional operator, the first post-dependent functional operator, and the second post-dependent functional operator added in the above-described steps. The connection relation among the functional operators refers to the parallel relation among the target functional operators, the serial connection relation between the target functional operators and the first post-dependent operators, and the serial connection relation between the first post-dependent operators and the second post-dependent operators. For the above step S110, in a specific implementation, it is determined again whether each first post-dependent operator determined in step S108 carries an identification code of a post-dependence, and if not, a flight engineering algorithm is generated based on each functional operator existing in the algorithm arrangement region and a connection relationship between the functional operators.
According to the arranging method of the flight engineering algorithm, a user can select the required initial function operator through the flight engineering operator library, the initial function operator with the dependency relationship between the initial function operator and the initial function operator is added to the algorithm function selection area, the operators are combined and connected through the dependency relationship between the initial function operators, the aircraft engineering algorithm operation flow is quickly established, algorithm flow visualization is achieved, and arranging efficiency of the flight engineering algorithm is improved. And according to the dependency relationship among the initial function operators, the serial and parallel sequence of the algorithm operation is fully considered, the optimization of algorithm flow arrangement is realized, and the problem of low efficiency in the execution of the aircraft engineering algorithm is solved.
Referring to fig. 2 and 3, fig. 2 is a schematic structural diagram of an arrangement device for a flight engineering algorithm according to an embodiment of the present application, and fig. 3 is a schematic structural diagram of an arrangement device for another flight engineering algorithm according to an embodiment of the present application. As shown in fig. 2, the organizing apparatus 200 includes:
an initial functional operator determining module 201, configured to determine at least one initial functional operator in response to a user's selection operation on at least one functional operator in the flight engineering operator library;
a first adding module 202, configured to determine, for each initial function operator, an initial function operator having a dependency relationship with the initial function operator, and add the initial function operator and the initial function operator having a dependency relationship with the initial function operator to an algorithm function selection area of a user interface;
a display module 203, configured to, for each initial function operator in the algorithm function selection area, display, at a position of the initial function operator in the algorithm function selection area, an identification code corresponding to another initial function operator that the initial function operator depends on;
a second adding module 204, configured to determine an initial function operator that does not carry a pre-dependent identification code in the algorithm function selection area as a target function operator, and add each target function operator to the algorithm arrangement area of the user interface in a parallel manner;
a first post-dependent operator determining module 204, configured to determine, for each target function operator, whether the target function operator carries a post-dependent identification code, and if so, determine an initial function operator corresponding to the post-dependent identification code carried by the target function operator in the algorithm function selection area as a first post-dependent operator, and add the first post-dependent operator to the algorithm arrangement area; the first post-dependent operator is connected with the target function operator in series;
a second post-dependent operator determining module 206, configured to determine, for each first post-dependent operator, whether the first post-dependent operator carries a post-dependent identification code, if so, determine, as a second post-dependent operator, an initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area, and mark the second post-dependent operator;
the first judging module 207 is configured to judge, for each second post-dependent operator, whether the number of labels of the second post-dependent operator is equal to the number of pre-dependent identification codes carried by the second post-dependent operator;
a third adding module 208, configured to add the second post-dependent operator to the algorithm arrangement region and determine the second post-dependent operator as the first post-dependent operator if the second post-dependent operator is the first post-dependent operator; the second post-dependent operator is connected in series with the first post-dependent operator carrying the identification code corresponding to the second post-dependent operator;
a second determining module 209, configured to determine, for each first post-dependent operator, whether the first post-dependent operator carries a post-dependent identification code again, and if yes, return to perform the step of determining, as a second post-dependent operator, the initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area;
and an algorithm generating module 210, configured to generate a flight engineering algorithm based on the functional operators existing in the algorithm arrangement region and the connection relationships among the functional operators if the flight engineering algorithm is not the same as the flight engineering algorithm.
Further, as shown in fig. 3, the orchestration device 200 further includes a functional operator building module 211, and before the operation of responding to the selection of at least one functional operator in the flight engineering operator library by the user, the functional operator building module 211 is configured to:
aiming at each function operator to be generated, determining each needed sub-function operator in the function operators to be generated and a calculation task corresponding to each sub-function operator;
generating corresponding functional operators based on each sub-functional operator required in the functional operator to be generated and the calculation task corresponding to each sub-functional operator, and determining the identification codes corresponding to the functional operators;
for each functional operator, determining the dependency relationship between the functional operator and other functional operators, and adding the identification codes of the other functional operators having the dependency relationship with the functional operator to the front dependency and/or the rear dependency of the functional operator;
and storing the functional operator and the identification code of the pre-dependency and/or the post-dependency carried by the functional operator in the flight engineering operator library.
Further, when the first adding module 202 is configured to determine, for each initial functional operator, an initial functional operator having a dependency relationship with the initial functional operator, the first adding module 202 is further configured to:
judging whether the initial function operator carries a front-dependent identification code and/or a rear-dependent identification code or not based on the flight engineering operator library;
if so, determining the functional operator corresponding to the pre-dependent identification code carried by the initial functional operator and/or the functional operator corresponding to the post-dependent identification code carried by the initial functional operator as the initial functional operator with the dependency relationship with the initial functional operator.
Further, as shown in fig. 3, the arrangement apparatus 200 further includes an initial function operator deleting module 212, where the initial function operator deleting module 212 is specifically configured to:
aiming at each initial function operator in the algorithm function selection area, judging whether a deleting instruction of the user for the initial function operator is received or not;
and if so, deleting the initial function operator from the algorithm function selection area.
Further, as shown in fig. 3, the layout apparatus 200 further includes an initial function operator configuration module 213, where the initial function operator configuration module 213 is specifically configured to:
responding to the configuration operation of the user on the configuration parameters corresponding to the initial function operator for each initial function operator in the algorithm function selection area;
performing specification inspection on the configuration parameters, and judging whether the configuration parameters meet preset inspection rules or not;
if so, configuring the initial function operator based on the configuration parameters;
if not, displaying prompt information on the user interface; wherein, the prompt message is used to represent that the configuration parameter does not conform to the check rule.
Further, when the display module 203 is configured to, for each initial function operator in the algorithm function selection area, display the identification codes corresponding to other initial function operators, on the position of the initial function operator in the algorithm function selection area, where the initial function operator depends on, the display module 203 is further configured to:
determining a dependent function operator having a dependency relationship with the initial function operator based on the flight engineering operator library, and judging whether the dependent function operator has a pre-dependent identification code and/or a post-dependent identification code;
if so, judging whether the pre-dependent identification code carried by the dependent function operator and/or the post-dependent identification code carried by the dependent function operator is the same as the identification code corresponding to any initial function operator in the algorithm function selection area;
if so, displaying the pre-dependent identification code and/or the post-dependent identification code carried by the dependent function operator at the position of the initial function operator in the algorithm function selection area.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 400 includes a processor 410, a memory 420, and a bus 430.
The memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 runs, the processor 410 communicates with the memory 420 through the bus 430, and when the machine-readable instructions are executed by the processor 410, the steps of the method for arranging the flight engineering algorithm in the method embodiment shown in fig. 1 may be performed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of the method for arranging a flight engineering algorithm in the method embodiment shown in fig. 1 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A method for orchestrating flight engineering algorithms, the method comprising:
responding to the selection operation of a user on at least one functional operator in the flight engineering operator library, and determining at least one initial functional operator;
for each initial function operator, determining the initial function operator having a dependency relationship with the initial function operator, and adding the initial function operator and the initial function operator having a dependency relationship with the initial function operator to an algorithm function selection area of a user interface;
for each initial function operator in the algorithm function selection area, displaying identification codes corresponding to other initial function operators which the initial function operator depends on at the position of the initial function operator in the algorithm function selection area;
determining an initial function operator which does not carry a pre-dependent identification code in the algorithm function selection area as a target function operator, and adding each target function operator to an algorithm arrangement area of the user interface in a parallel manner;
for each target function operator, judging whether the target function operator carries a post-dependence identification code, if so, determining an initial function operator corresponding to the post-dependence identification code carried by the target function operator in the algorithm function selection area as a first post-dependence operator, and adding the first post-dependence operator to the algorithm arrangement area; the first post-dependent operator is connected with the target function operator in series;
for each first post-dependent operator, judging whether the first post-dependent operator carries a post-dependent identification code, if so, determining an initial function operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection region as a second post-dependent operator, and marking the second post-dependent operator;
for each second post-dependent operator, judging whether the number of marks of the second post-dependent operator is equal to the number of the pre-dependent identification codes carried by the second post-dependent operator;
if so, adding the second post-dependent operator to the algorithm arrangement region, and determining the second post-dependent operator as a first post-dependent operator; the second post-dependent operator is connected in series with the first post-dependent operator carrying the identification code corresponding to the second post-dependent operator;
for each first post-dependent operator, judging whether the first post-dependent operator carries a post-dependent identification code again, if so, returning to execute the step of determining an initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as a second post-dependent operator;
and if not, generating a flight engineering algorithm based on the functional operators existing in the algorithm arrangement region and the connection relation among the functional operators.
2. The orchestration method according to claim 1, wherein prior to the operation in response to user selection of at least one functional operator in a library of flight engineering operators, the orchestration method further comprises:
aiming at each function operator to be generated, determining each needed sub-function operator in the function operators to be generated and a calculation task corresponding to each sub-function operator;
generating corresponding functional operators based on each sub-functional operator required in the functional operator to be generated and the calculation task corresponding to each sub-functional operator, and determining the identification codes corresponding to the functional operators;
for each functional operator, determining the dependency relationship between the functional operator and other functional operators, and adding the identification codes of the other functional operators having the dependency relationship with the functional operator to the front dependency and/or the rear dependency of the functional operator;
and storing the functional operator and the identification codes of the front dependency and/or the rear dependency carried by the functional operator in the flight engineering operator library.
3. The arrangement method according to claim 2, wherein for each initial functional operator, determining the initial functional operator having a dependency relationship with the initial functional operator comprises:
judging whether the initial function operator carries a front-dependent identification code and/or a rear-dependent identification code based on the flight engineering operator library;
if so, determining the functional operator corresponding to the pre-dependent identification code carried by the initial functional operator and/or the functional operator corresponding to the post-dependent identification code carried by the initial functional operator as the initial functional operator with the dependency relationship with the initial functional operator.
4. The programming method according to claim 1, further comprising:
aiming at each initial function operator in the algorithm function selection area, judging whether a deleting instruction of the user for the initial function operator is received or not;
and if so, deleting the initial function operator from the algorithm function selection area.
5. The programming method according to claim 1, further comprising:
responding to the configuration operation of the user on the configuration parameters corresponding to the initial function operator aiming at each initial function operator in the algorithm function selection area;
carrying out specification inspection on the configuration parameters, and judging whether the configuration parameters meet preset inspection rules or not;
if so, configuring the initial function operator based on the configuration parameters;
if not, displaying prompt information on the user interface; wherein, the prompt message is used to represent that the configuration parameter does not conform to the check rule.
6. The arrangement method according to claim 2, wherein for each initial function operator in the algorithm function selection area, displaying the identification codes corresponding to other initial function operators depended on by the initial function operator at the position of the initial function operator in the algorithm function selection area, comprises:
determining a dependent function operator having a dependency relationship with the initial function operator based on the flight engineering operator library, and judging whether the dependent function operator has a pre-dependent identification code and/or a post-dependent identification code;
if so, judging whether the pre-dependent identification code carried by the dependent function operator and/or the post-dependent identification code carried by the dependent function operator is the same as the identification code corresponding to any initial function operator in the algorithm function selection area;
if so, displaying the pre-dependent identification code and/or the post-dependent identification code carried by the dependent function operator at the position of the initial function operator in the algorithm function selection area.
7. An arrangement of flight engineering algorithms, comprising:
the initial function operator determining module is used for responding to the selection operation of a user on at least one function operator in the flight engineering operator library and determining at least one initial function operator;
the first adding module is used for determining an initial function operator having a dependency relationship with the initial function operator aiming at each initial function operator, and adding the initial function operator and the initial function operator having the dependency relationship with the initial function operator into an algorithm function selection area of the user interface;
the display module is used for displaying the identification codes corresponding to other initial function operators which the initial function operator depends on at the position of the initial function operator in the algorithm function selection area aiming at each initial function operator in the algorithm function selection area;
the second adding module is used for determining the initial function operator which does not carry the pre-dependent identification code in the algorithm function selection area as a target function operator and adding each target function operator to the algorithm arrangement area of the user interface in a parallel mode;
the first post-dependent operator determining module is used for judging whether the target function operator carries a post-dependent identification code or not aiming at each target function operator, if so, determining an initial function operator corresponding to the post-dependent identification code carried by the target function operator in the algorithm function selection area as a first post-dependent operator, and adding the first post-dependent operator into the algorithm arrangement area; the first post-dependent operator is connected with the target function operator in series;
the second post-dependent operator determining module is used for judging whether the first post-dependent operator carries a post-dependent identification code or not aiming at each first post-dependent operator, if so, determining an initial function operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as a second post-dependent operator, and marking the second post-dependent operator;
the first judgment module is used for judging whether the number of the marks of each second post-dependent operator is equal to the number of the front-dependent identification codes carried by the second post-dependent operator or not for each second post-dependent operator;
a third adding module, configured to add the second post-dependent operator to the algorithm arrangement region if the first post-dependent operator is determined to be the first post-dependent operator; the second post-dependent operator is connected in series with the first post-dependent operator carrying the identification code corresponding to the second post-dependent operator;
the second judgment module is used for judging whether the first post-dependent operator carries the post-dependent identification code or not for each first post-dependent operator again, and if yes, returning to execute the step of determining the initial functional operator corresponding to the post-dependent identification code carried by the first post-dependent operator in the algorithm function selection area as the second post-dependent operator;
and the algorithm generation module is used for generating a flight engineering algorithm based on the functional operators existing in the algorithm arrangement region and the connection relation among the functional operators if the algorithm generation module does not exist.
8. The orchestration device according to claim 7, further comprising a functional operator building module, prior to the selection operation in response to a user for at least one functional operator in a library of flight engineering operators, to:
aiming at each function operator to be generated, determining each needed sub-function operator in the function operators to be generated and a calculation task corresponding to each sub-function operator;
generating corresponding functional operators based on each sub-functional operator required in the functional operator to be generated and the calculation task corresponding to each sub-functional operator, and determining the identification codes corresponding to the functional operators;
for each functional operator, determining the dependency relationship between the functional operator and other functional operators, and adding the identification codes of the other functional operators having the dependency relationship with the functional operator to the front dependency and/or the rear dependency of the functional operator;
and storing the functional operator and the identification codes of the front dependency and/or the rear dependency carried by the functional operator in the flight engineering operator library.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the method of programming a flight engineering algorithm of any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the method of orchestration of flight engineering algorithms according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210861339.5A CN115114690B (en) | 2022-07-20 | 2022-07-20 | Flight engineering algorithm arranging method, flight engineering algorithm arranging device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210861339.5A CN115114690B (en) | 2022-07-20 | 2022-07-20 | Flight engineering algorithm arranging method, flight engineering algorithm arranging device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115114690A true CN115114690A (en) | 2022-09-27 |
CN115114690B CN115114690B (en) | 2024-06-21 |
Family
ID=83334457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210861339.5A Active CN115114690B (en) | 2022-07-20 | 2022-07-20 | Flight engineering algorithm arranging method, flight engineering algorithm arranging device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115114690B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016044778A1 (en) * | 2014-09-19 | 2016-03-24 | Hamish Forsythe | Method and system for an automatic sensing, analysis, composition and direction of a 3d space, scene, object, and equipment |
US20200104401A1 (en) * | 2018-09-28 | 2020-04-02 | Splunk Inc. | Real-Time Measurement And System Monitoring Based On Generated Dependency Graph Models Of System Components |
CN114429211A (en) * | 2022-02-07 | 2022-05-03 | 北京百度网讯科技有限公司 | Method, apparatus, device, medium and product for generating information |
-
2022
- 2022-07-20 CN CN202210861339.5A patent/CN115114690B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016044778A1 (en) * | 2014-09-19 | 2016-03-24 | Hamish Forsythe | Method and system for an automatic sensing, analysis, composition and direction of a 3d space, scene, object, and equipment |
US20200104401A1 (en) * | 2018-09-28 | 2020-04-02 | Splunk Inc. | Real-Time Measurement And System Monitoring Based On Generated Dependency Graph Models Of System Components |
CN114429211A (en) * | 2022-02-07 | 2022-05-03 | 北京百度网讯科技有限公司 | Method, apparatus, device, medium and product for generating information |
Non-Patent Citations (2)
Title |
---|
余军;: "基于JBPM4的飞机EO落实跟踪***应用实践", 装备制造技术, no. 03, 15 March 2016 (2016-03-15), pages 201 - 203 * |
王里付等: "基于Petri网和遗传算法的飞行训练计划优化编排", 《武汉理工大学学报(信息与管理工程版)》, vol. 34, no. 02, 15 April 2012 (2012-04-15), pages 197 - 201 * |
Also Published As
Publication number | Publication date |
---|---|
CN115114690B (en) | 2024-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210150136A1 (en) | Apparatuses, systems, and methods for providing a visual program for machine vision systems | |
CN106557457B (en) | QT-based system for automatically generating cross-platform complex flow chart | |
US8782554B2 (en) | Context menu dependency on many objects of different type | |
CN107798030B (en) | Splitting method and device of data table | |
CN108038009B (en) | Front-end and back-end interaction method and device based on Web application and computer equipment | |
EP2769302B1 (en) | Use of dynamic profiles for creating and using a distributed computing environment | |
CN116301735B (en) | Method, device and storage medium for organizing software elements into software data links | |
CN113791760A (en) | Commercial intelligent instrument panel generation method and device, electronic equipment and storage medium | |
CN116662039B (en) | Industrial information parallel detection method, device and medium based on shared memory | |
CN115114690A (en) | Arranging method and arranging device for flight engineering algorithm and electronic equipment | |
CN115543534A (en) | Training task management method and device, electronic equipment and storage medium | |
CN114816389B (en) | Management system building method, device, equipment and medium based on meta-model | |
CN116382658A (en) | Compiling method and device of AI model, computer equipment and storage medium | |
US11726818B1 (en) | System for executing tasks in different programming languages | |
CN113626032A (en) | List page configuration method and device and storage medium | |
CN114064188A (en) | Design method and design device of monitoring interface and electronic equipment | |
CN112394972B (en) | Cloud application publishing method, device, equipment and storage medium | |
CN103136353B (en) | Enterprise information management system man-machine interaction event-handling method and system | |
US20180239640A1 (en) | Distributed data processing system, and distributed data processing method | |
CN113986305B (en) | B/S model upgrade detection method, device, equipment and storage medium | |
CN114594964B (en) | Method and device for generating output constant pool of software package | |
CN114637564B (en) | Data visualization method and device, electronic equipment and storage medium | |
CN116204267B (en) | Method and device for generating intellectual property flow form | |
CN112256243B (en) | Behavior customization method, apparatus, device and storage medium | |
CN116521616A (en) | Baseline management method, device, electronic equipment and 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 |