CN108647021A - Digital aircraft real-time two-dimensional operation interface source program artificial intelligence writing method - Google Patents
Digital aircraft real-time two-dimensional operation interface source program artificial intelligence writing method Download PDFInfo
- Publication number
- CN108647021A CN108647021A CN201810284641.2A CN201810284641A CN108647021A CN 108647021 A CN108647021 A CN 108647021A CN 201810284641 A CN201810284641 A CN 201810284641A CN 108647021 A CN108647021 A CN 108647021A
- Authority
- CN
- China
- Prior art keywords
- interface
- control
- operation interface
- dimensional operation
- digital aircraft
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Human Computer Interaction (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing methods.Interface is divided into design module and control module, and user completes the design work of operation interface, including look & feel in designing module, and control selection, control function match, the design result completed is with the file preservation of unified format.Control module reads the design result file of unified format description, it is automatically performed interface drafting, operational module has universal communication interface with digital aircraft Simulation Software Design, functional compartment simulation software bound in control in interface sends control command, realizes the real-time control of cross aerial vehicle simulation process.It is automatically performed the generation of simulated program and two-dimensional operation program using artificial intelligence Writing method, improves development efficiency.The present invention can realize effective control to digital aerial vehicle simulation program by digital aircraft two dimension interface.
Description
Technical field
The present invention relates to program control technologies, more particularly to a kind of digital aircraft Real-time Two-dimensional operation interface source program
Artificial intelligence Writing method.
Background technology
Digital aircraft is constituted according to the building block of actual aircraft, and parameter keeps one with actual aircraft
It causes, by carrying out dynamic analog to aircraft subsystems and its component, can show the working condition of aerocraft system, take off
Show the operation principle of each system and mutual cooperation relation.For each component, principle model, telecommunication interface mould are established
Type, error model, failure model go out the state of flight of actual aircraft in ground simulation, have reflected the operation principle of component,
The reliability of telecommunication interface and component when use.
In digital aircraft simulation process, program runtime and actual time often mismatch.Interested in user
Period, for the more life-like simulation process for completing each digital aircraft, the simulation state amount of each second of concern will select
It uses real-time simulation pattern (simulation time is unified with actual time);And it is then generally selected in user's degree of concern little period
High-speed simulation pattern obtains emulation data as early as possible.Therefore just there is demand to the manipulation of digital aerial vehicle simulation process.
Invention content
The purpose of the present invention is to provide a kind of writings of digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence
Method, user interface source code can automatically generate, and voluntarily complete interface by user, and self-defining operation circle
The function that face has reduces repeated work, improves working efficiency to cope with different emulation operating modes.
To achieve the goals above, the present invention adopts the following technical scheme that:
A kind of digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method, including:
Establish two-dimensional operation interface control library;
The design of operation interface is completed in designing module in conjunction with two-dimensional operation interface control;
The interface result is carried out to the description of unified format;
Two-dimensional operation interface source code is write according to design result;
Digital aircraft management by synchronization program receives operational order, implements relevant operation to digital aerial vehicle simulation program.
Preferably, the two-dimensional operation widget library refers to:
The set being made of the different function control in two-dimensional operation interface.
Wherein, specific control is including but not limited to controls such as button, indicator lights.
Preferably, the specific steps packet of two-dimensional operation interface is completed in designing module in conjunction with two-dimensional operation widget library
It includes:
The control needed for user is selected from widget library, determines the positions and dimensions information of each control.
Operational order ready for use is selected in optional operating function list.
Binding relationship is established between selected operational order and control, determines which operational order each control controls.
Determine display interface background, font generic attribute information.
Preferably, described interface result is subjected to the concrete operations flow of defined unified format storage such as
Under:
Two-dimensional operation interface result is saved as to the file of unified format description;
The design result description at two-dimensional operation interface is including but not limited to interface title, interface number, operational mode, interface
Background color, interface background picture, interface dimensions information height, width, interface layout line information and control information;
Form of presentation is including but not limited to standardized data library format, standardized XML.
Preferably, two-dimensional operation interface source code is write according to design result to be as follows:
Write interface integrity attribute code;
Write in interface includes control correlative code;
Write the correlative code that operation interface sends operational order to digital aircraft time synchronization management program (RTI).
Preferably, digital aircraft management by synchronization program receives operational order, implements phase to digital aerial vehicle simulation program
Closing the specific steps operated includes:
RTI receives the operational order of operation interface transmission by communication interface
Unified operation management is carried out to digital aircraft according to instruction is received
Preferably, the communication modes of the simulated program, RTI and operation module use TCP/IP communication modes.
Interface module and widget library have provided the interface platform of unified standard to the user, and user can basis
Itself is needed, and builds the display interface with oneself style, the problem of avoiding by unified format constraint so that interface is applicable in model
It encloses more extensively, application is more flexible.
And preserve the unified format descriptor of interface final design result and preserve designed interface with unified standard,
Interface involved by different user can be mutually general, facilitates the unified scale development at interface.It unites between digital aircraft and interface
One communication modes and control instruction equally ensure that the versatility between the aircraft of different model and interface.
Therefore, digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method can be widely used in a variety of
The simulation process of type aircraft controls, and ensure that the versatility at digital aircraft and interface.People makes operating function and interface
The decisions such as design, the process that communication is established between the generation of programmer's code, program and operating function is realized is then by artificial intelligence journey
Sequence person independently completes, high efficiency and time conservation.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 attached drawings are digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method flow chart;
Fig. 2 attached drawings are digital aircraft Real-time Two-dimensional operational design functions of modules selection interface.
Specific implementation mode
In order to keep the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below to the embodiment of the present invention
In technical solution clearly completely described.
As shown in Figure 1, below by specific embodiment, the present invention is described in further detail.
The invention discloses a kind of digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing methods, specifically
Include the following steps:
Step 1:Establish two-dimensional operation interface control library;
Step 2:The design of operation interface is completed in designing module in conjunction with two-dimensional operation interface control;Step 3:By institute
State the description that interface result carries out unified format;
Step 4:Two-dimensional operation interface source code is write according to design result;
Step 5:Digital aircraft management by synchronization program receives operational order, implements phase to digital aerial vehicle simulation program
Close operation;
In the following, will one by one be described to above-mentioned key step.
1, widget library is established
The structure at digital aircraft two-dimensional operation interface depends on its widget library and the function library corresponding to control, control
The tool that two-dimensional operation interface is interacted with user, such as button etc. are mainly stored in part library.Mainly storing user in function library can
With the control command applied to digital aircraft.
In widget library based on button control, user is added realizing it by way of being drawn to interface in widget library
It carries, the underlying attribute of button includes the pattern of button, and the function of binding.Pattern mainly includes the size of button, color, font
Deng;Function is the instruction uniquely bound therewith in function library, and one of the attribute of function as button control binds preservation therewith.
2, the design at two-dimensional operation interface is completed in designing module
It is required from widget library selection two-dimensional operation interface in generated two-dimensional operation interface program design module
Control, using ship to air missile as embodiment, it is button control to draw the control selected when ship to air missile, by the form for clicking button
Realize that guided missile accelerates or have a try to wait simulation operations with naval vessel
In generated two-dimensional operation interface program design module selection operation is waited for from feature list selection as shown in Figure 2
It instructs, the operational order chosen in the present embodiment is:Accelerate emulator command.The binding information of control and operational order is stored in system
In one format descriptor, by taking red guided missile accelerates emulation button control as an example, by button control and operational order " acce l
Erate " is bound together, therefore should be stored control operation in the unified format descriptor of save button control information and be referred to
The relevant information of order, information include band display operation order number, operational order title etc..
The attributes such as design interface size, background, color in interface property setting, and it is stored in unified format descriptor
In.
3, design result unifies format description
The design result description at two-dimensional operation interface is including but not limited to interface title, interface number, operational mode, interface
Background color, interface background picture, interface dimensions information (height, width), interface layout (line information) and control information.
Form of presentation is including but not limited to standardized data library format, XML format.
XML descriptions are selected in the description of two-dimensional operation interface result.
4, two-dimensional operation interface source code is write according to design result and writes interface integrity attribute code
Write interface integrity attribute code;
Write in interface includes control correlative code;
Write the correlative code that operation interface sends operational order to digital aircraft time synchronization management program (RTI);
Each process is hereafter described in detail successively.
Interface integrity attribute includes mainly interface size, layout, background, binding data library etc..Artificial intelligence program person reads
It goes bail for and deposits the xml document of design result and get above-mentioned attribute.Interface layout (n rows m row) points out that interface can be divided by n x
The rectangle of m grid composition, interface size (long, wide) record the size of the rectangle.Square of the artificial intelligence program person in the n x m
Rectangular coordinate system is established in shape interface, origin is located at the position of 0 row 0 row, and X-axis is line number, and Y-axis is columns, so far appoints in interface
Some positions can be uniquely determined by ranks.Background information is the absolute address of a certain background picture, is obtained artificial behind change of address
The picture is inserted into background by intelligent program person.
On the basis of completing above-mentioned interface integrity attribute program writing, each control corresponding source in two-dimentional interface is write
Code.Each relevant source code writing step of control is consistent, is followed successively by:Control property setting, control and operational order binding, control
Part is drawn.
Wherein control property needs artificial intelligence program person to be obtained from the xml document for preserving design result, and attribute is main
Including the information such as control size, position, color, frame, write setting source code successively.Each control can be tied up with operational order
It is fixed, structure is passed through to operational order I D according to operational order name acquiring by the database root of access deposit operation instruction
The unified preservations of control I D, bound operational order title and current operation instruction I D are established binding and closed by the form of list
System.After artificial intelligence program person gets the location information (row, column) of control, it can determine in interface coordinate system described above
For position of the control in interface, display source code of the control in interface is write.Added with red guided missile in the present embodiment
For speed emulation button control, line information is 3 row, 11 row, and dimension information is 1 width 3 of height, and program is established above
The position that coordinate is (3,11) is searched out in coordinate system, places the Input that size is (1,3).
It is fixed code that operation interface, which communicates relevant code with management by synchronization program (RT I), which is stored in
In code library.Artificial intelligence program person selects corresponding fixed code, and complete book by fetcher code library from code library
It writes.
5, digital aircraft management by synchronization program receives operational order, implements relevant operation to digital aerial vehicle simulation program
The realization of control process depends on management by synchronization program (RT I), when multiple digital aircrafts are carrying out distributed number
When word emulates, in order to ensure that the synchronism of each digital aircraft simulation process, RTI can send to each digital aircraft and control
System order, to ensure that process is consistent.Operation module is just instructed by sending user's defined function to RTI, then realizes logarithm by RTI
The manipulation of word aerial vehicle simulation process.
The RTI that the digital aircraft simulation process of every batch of has its mating will be each for distributed digital aircraft
Unified simulation step length is arranged in digital entities, and after starting emulation, RTI sends initiation command, each number to each digital entities
Entity respectively completes the emulation command of a step-length, and each digital entities are sent completely instruction to RTI after the completion, be in later etc.
The state of waiting for does not continue to carry out simulation process, and RTI summarizes the emulation performance of each digital entities, when the neat each number of collection
After instruction is completed in the emulation of entity, RTI sends the initiation command of next step-length to each entity, and each digital entities terminate
It waits for, continues to complete the emulation of a step-length;If RTI completes instruction without collecting the emulation of neat all digital entities, other
The digital entities for completing emulation will always be in wait state, until all digital entities complete emulation.
Wherein start pause function realization principle be:RTI receives the mark of modification digital aircraft after pause instruction
Position, makes it be constantly in recurrent state, and when user again taps on pause button, RTI receives pause instruction again, restores number
The flag bit of word aircraft program, digital aircraft EP (end of program) cycle, restores emulation;
Accelerate emulator command realization principle be:After RTI receives the acceleration emulator command transmitted by operation interface, it will emulate
It is set as acceleration pattern, the simulation step length of digital aircraft is less than the real time of regulation step-length at this time, unrelated with the real time,
RTI is received after the regulation step-length operation that each digital entities are sent finishes instruction, synchronous with the reality time without carrying out, directly to
Each digital entities send the order for executing emulation in next step;
Synchronization simulation function realization principle is:After RTI receives the instruction transmitted by operation interface, emulation is set as real
When pattern, at this time the simulation step length of digital aircraft be equal to the regulation step-length of reality, RTI receives the regulation that each digital entities are sent
After step-length operation finishes instruction, need to carry out the time synchronization with reality, the thread is in sleep state during synchronizing, and has synchronized
Cheng Houzai sends the order for continuing emulation to each digital entities, and each entity is emulated with real-time speed.
Illustrate above procedure by taking the acceleration of step 4 emulation control as an example.
User, which clicks, accelerates emulation button, operation module to read the operational order node for accelerating emulation button xml document, obtain
Take the operational order of binding.Operation module sends out acceleration emulation command to RTI, and RT I are forwarded to each digital aircraft accelerates emulation
Thus instruction completes that the operational order bound in emulation button is accelerated to implement.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other
The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part
It is bright.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest range caused.
Claims (7)
1. digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method, wherein digital aircraft two dimension manipulate
Interface is divided into design module and operation module, it is characterised in that:
The method specifically includes following steps:
Step 1:Establish two-dimensional operation interface control library;
Step 2:The design of operation interface is completed in designing module in conjunction with two-dimensional operation interface control;Step 3:By the boundary
Face design result carries out the description of unified format;
Step 4:Two-dimensional operation interface source code is write according to design result;
Step 5:Digital aircraft management by synchronization program receives operational order, implements related behaviour to digital aerial vehicle simulation program
Make.
2. digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method according to claim 1,
It is characterized in that, the widget library in the step 1 refers to:
The set widget library being made of the different function control in two-dimensional operation interface;
Wherein, specific control is including but not limited to button, indicator light control.
3. digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method according to claim 1,
It is characterized in that, the step 2 concrete operations flow is as follows:
The control needed for user is selected from widget library, determines the positions and dimensions information of each control;
Operational order ready for use is selected in optional operating function list;
Binding relationship is established between selected operational order and control, determines which operational order each control controls;
Determine display interface background, font generic attribute information.
4. digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method according to claim 1,
It is characterized in that, the step 3 concrete operations flow is as follows:
Two-dimensional operation interface result is saved as to the file of unified format description;
The design result description at two-dimensional operation interface is including but not limited to interface title, interface number, operational mode, interface background
Color, interface background picture, interface dimensions information height, width, interface layout line information and control information;
Form of presentation is including but not limited to standardized data library format, standardized XML.
5. digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method according to claim 1,
It is characterized in that, the step 4 concrete operations flow is as follows:
Write interface integrity attribute code;
Write in interface includes control correlative code;
Write the correlative code that operation interface sends operational order to digital aircraft time synchronization management program (RTI).
6. digital aircraft Real-time Two-dimensional operation interface source program artificial intelligence Writing method according to claim 1,
It is characterized in that, the specific steps of the step 5 include:
RTI receives the operational order of operation interface transmission by communication interface;
Unified operation management is carried out to digital aircraft according to instruction is received.
7. digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method according to claim 1,
It is characterized in that, the communication modes of the simulated program, two-dimensional operation program and management by synchronization program use TCP/IP communication modes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284641.2A CN108647021A (en) | 2018-04-02 | 2018-04-02 | Digital aircraft real-time two-dimensional operation interface source program artificial intelligence writing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284641.2A CN108647021A (en) | 2018-04-02 | 2018-04-02 | Digital aircraft real-time two-dimensional operation interface source program artificial intelligence writing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108647021A true CN108647021A (en) | 2018-10-12 |
Family
ID=63745277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810284641.2A Pending CN108647021A (en) | 2018-04-02 | 2018-04-02 | Digital aircraft real-time two-dimensional operation interface source program artificial intelligence writing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108647021A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005250954A (en) * | 2004-03-05 | 2005-09-15 | Toshiba Corp | Distributed simulation system |
CN101950157A (en) * | 2010-07-30 | 2011-01-19 | 北京航空航天大学 | Flight simulation system with high instantaneity |
CN102508692A (en) * | 2011-09-28 | 2012-06-20 | 天津大学 | Simulation and verification method of control method of near space aircraft |
CN104484171A (en) * | 2014-12-11 | 2015-04-01 | 深圳市路通网络技术有限公司 | System, method and associated equipment for designing terminal interface |
-
2018
- 2018-04-02 CN CN201810284641.2A patent/CN108647021A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005250954A (en) * | 2004-03-05 | 2005-09-15 | Toshiba Corp | Distributed simulation system |
CN101950157A (en) * | 2010-07-30 | 2011-01-19 | 北京航空航天大学 | Flight simulation system with high instantaneity |
CN102508692A (en) * | 2011-09-28 | 2012-06-20 | 天津大学 | Simulation and verification method of control method of near space aircraft |
CN104484171A (en) * | 2014-12-11 | 2015-04-01 | 深圳市路通网络技术有限公司 | System, method and associated equipment for designing terminal interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Fishwick | Simpack: Getting started with simulation programming in c and c++ | |
CN105739983B (en) | Shell script editing device and its implementation | |
CN111507020B (en) | Graphical display method for distributed simulation results of electromechanical systems of multi-electric aircraft | |
CN109710357B (en) | Method and system for realizing server operation based on Unity3D engine | |
CN101482828B (en) | Universal distributed vision simulation system based on HLA and its implementing method | |
CN109858111A (en) | RLV virtual emulation Platform Designing and implementation method | |
CN110855482A (en) | Three-dimensional dynamic communication network analog simulation method, system and storage medium | |
CN102609585A (en) | Aircraft instrument efficient modeling design method based on components | |
CN111708563B (en) | Method and device for updating UI control in game | |
CN102385762B (en) | Modelica integrated three-dimensional scene simulation system | |
CN110673844A (en) | Image processing software development method and system | |
CN108536964A (en) | Storage medium, satellite constellation covering performance simulating analysis and its system | |
CN106960036A (en) | A kind of database building method for gesture identification | |
CN105022288A (en) | Simulation system of industrial electronic embedded system | |
CN107145673A (en) | A kind of combined simulation system and method | |
CN114281509B (en) | Spacecraft multiuser collaborative task planning system based on scene description | |
CN108647021A (en) | Digital aircraft real-time two-dimensional operation interface source program artificial intelligence writing method | |
CN108595175A (en) | Digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method | |
CN112860965A (en) | Network simulation visual simulation platform based on log | |
CN115292631A (en) | Container internal file management method and system based on Web | |
CN115544766B (en) | Off-line simulation system oriented to digital twin production line | |
Sampson | Process-oriented patterns for concurrent software engineering | |
Hu et al. | A rapid development method of virtual assembly experiments based on 3d game engine | |
CN111899333B (en) | Visual simulation method and system for complex equipment system based on model and storage medium thereof | |
CN109426529A (en) | Method, apparatus and terminal based on X window system graphic plotting |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181012 |