CN108595175A - Digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method - Google Patents
Digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method Download PDFInfo
- Publication number
- CN108595175A CN108595175A CN201810284824.4A CN201810284824A CN108595175A CN 108595175 A CN108595175 A CN 108595175A CN 201810284824 A CN201810284824 A CN 201810284824A CN 108595175 A CN108595175 A CN 108595175A
- Authority
- CN
- China
- Prior art keywords
- interface
- display interface
- dimensional display
- control
- artificial intelligence
- 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
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000005540 biological transmission Effects 0.000 claims abstract description 8
- 238000013461 design Methods 0.000 claims description 35
- 238000004891 communication Methods 0.000 claims description 6
- 238000013473 artificial intelligence Methods 0.000 abstract description 17
- 230000008569 process Effects 0.000 abstract description 7
- 238000011161 development Methods 0.000 abstract description 3
- 238000004088 simulation Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
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/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明公开了一种数字飞行器实时二维显示界面源程序人工智能书写方法,可以根据用户设计的二维界面信息,自动书写二维显示界面的源程序,并生成对应的界面。二维界面源程序书写过程依赖于所建立的二维显示控件库和统一格式描述的界面信息存储文件。人工智能程序员根据存储文件依次书写界面整体属性的相关代码、界面中所包含的控件相关代码、控件与数字飞行器实时状态量数据源的数据传输代码,控件中数据显示的相关代码。书写完成后对源程序自动编译部署。采用人工智能书写方法,自动完成二维显示源程序书写,避免重复操作,提高了开发效率。通过上述方式,本发明能够有效实现数字飞行器相关状态量的实时二维显示。
The invention discloses an artificial intelligence writing method for a real-time two-dimensional display interface source program of a digital aircraft, which can automatically write the source program of the two-dimensional display interface according to the two-dimensional interface information designed by a user, and generate a corresponding interface. The writing process of two-dimensional interface source program depends on the established two-dimensional display control library and the interface information storage file described in a unified format. According to the stored files, the artificial intelligence programmer writes the relevant codes of the overall properties of the interface, the relevant codes of the controls contained in the interface, the data transmission codes between the controls and the real-time state quantity data source of the digital aircraft, and the relevant codes of the data display in the controls. After the writing is completed, the source program is automatically compiled and deployed. Using the artificial intelligence writing method, the two-dimensional display source program writing is automatically completed, avoiding repeated operations, and improving development efficiency. Through the above method, the present invention can effectively realize the real-time two-dimensional display of relevant state quantities of the digital aircraft.
Description
技术领域technical field
本发明涉及二维显示技术,特别是涉及一种数字飞行器实时二维显示界面源程序人工智能书写方法。The invention relates to a two-dimensional display technology, in particular to an artificial intelligence writing method for a real-time two-dimensional display interface source program of a digital aircraft.
背景技术Background technique
数字飞行器是按照真实飞行器的组成部件而构成的,其参数与真实飞行器保持一致,通过对飞行器各个子系统及其部件进行动态模拟,可以展示飞行器系统的工作情况,揭示各系统的工作原理和相互间的协作关系。对于每一个部件,建立了原理模型,电信接口模型,误差模型,失效模型,在地面模拟出真实飞行器的飞行状态,反映出了部件的工作原理,使用时的电信接口和部件的可靠性。The digital aircraft is constructed according to the components of the real aircraft, and its parameters are consistent with the real aircraft. By dynamically simulating each subsystem and its components of the aircraft, the working conditions of the aircraft system can be displayed, and the working principle and interaction of each system can be revealed. collaboration between. For each component, the principle model, telecommunication interface model, error model, and failure model are established to simulate the flight status of the real aircraft on the ground, reflecting the working principle of the component, the telecommunication interface and the reliability of the component during use.
数字飞行器运行时只是一个单独的运行窗口,飞行器仿真周期内状态量的动态变化不能清晰直观的反映出来,用户不能实时监测数字飞行器的运行状态,因此需要依靠数字飞行器配套的辅助显示工具,二维显示是其中的一种手段。传统的二维显示界面的界面风格和所显示的状态量信息是固定的,而对于不同飞行器,例如卫星,导弹,战机,用户所关心的状态量是不一样的,因此对于不同飞行器的动态模拟过程就需要不同的配套显示界面。本发明可根据用户需求自行设计显示界面,自行选择所关心的状态量,减少了重复工作,提升了工作效率。When the digital aircraft is running, it is only a single running window. The dynamic changes of the state quantities in the aircraft simulation cycle cannot be clearly and intuitively reflected. Users cannot monitor the operating status of the digital aircraft in real time. Display is one of the means. The interface style of the traditional two-dimensional display interface and the displayed state quantity information are fixed, but for different aircraft, such as satellites, missiles, and fighters, the state quantities that users care about are different, so the dynamic simulation of different aircraft The process requires different supporting display interfaces. The present invention can design the display interface by itself according to the needs of the user, and select the concerned state quantity by itself, which reduces repetitive work and improves work efficiency.
发明内容Contents of the invention
有鉴于此,本发明提供了一种数字飞行器实时二维显示界面源程序人工智能书写方法,在数字飞行器二维显示界面的设计过程中,人只需作出待显示状态量的决策过程,避免了人的重复开发工作,提高了程序开发效率。In view of this, the present invention provides an artificial intelligence writing method for the source program of a real-time two-dimensional display interface of a digital aircraft. The repeated development work of people improves the efficiency of program development.
为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
一种数字飞行器实时二维显示界面源程序人工智能书写方法,实现方法具体如下:A real-time two-dimensional display interface source program artificial intelligence writing method for a digital aircraft, the implementation method is as follows:
建立二维显示控件库;Establish a two-dimensional display control library;
结合所述二维显示控件库在设计模块中完成二维显示界面的设计;Combining the two-dimensional display control library to complete the design of the two-dimensional display interface in the design module;
将所述界面设计结果进行统一格式的描述;Describe the interface design results in a unified format;
根据设计结果书写二维显示界面源代码;Write the source code of the two-dimensional display interface according to the design results;
数字飞行器状态量实时显示。The status of the digital aircraft is displayed in real time.
优选的,二维显示控件库的具体控件包括:Preferably, the specific controls of the two-dimensional display control library include:
图表,文本框,滑动条,指示灯,进度条,标签,容器,列表,横线,竖线在内的多种控件。用户可以通过拖拽以上控件搭建显示界面的框架,通过控件属性设置界面明确控件功能。控件属性包含其本身属性和控件相绑定的数据属性,用户可根据需要自行修改。A variety of controls including charts, text boxes, sliders, indicator lights, progress bars, labels, containers, lists, horizontal lines, and vertical lines. Users can build the frame of the display interface by dragging and dropping the above controls, and specify the functions of the controls through the control property setting interface. The control properties include its own properties and the data properties bound to the control, which can be modified by the user as needed.
优选的,结合所述二维显示控件库在设计模块中完成二维显示界面设计的具体步骤包括:Preferably, the specific steps of completing the two-dimensional display interface design in the design module in combination with the two-dimensional display control library include:
从控件库中选择合适控件,确定各控件的位置和尺寸信息;Select the appropriate controls from the control library, and determine the position and size information of each control;
在可显示状态量列表中选择待显示的状态量;Select the state quantity to be displayed in the displayable state quantity list;
在选择状态量和控件之间建立绑定关系,确定每个控件显示哪个状态量;Establish a binding relationship between the selected state quantity and the control, and determine which state quantity is displayed by each control;
确定显示界面背景、字体等属性信息。Determine the display interface background, font and other attribute information.
优选的,将所述界面设计结果进行统一格式描述的具体包括:Preferably, the description of the interface design results in a unified format specifically includes:
将二维显示界面设计结果保存为统一格式描述的文件。Save the design results of the two-dimensional display interface as a file described in a unified format.
二维显示界面的设计结果描述包含但不限于界面名称,界面编号,运行模式,界面背景颜色,界面背景图片,界面尺寸信息(高度、宽度),界面布局(行列信息),和控件信息;The design result description of the two-dimensional display interface includes but is not limited to interface name, interface number, operation mode, interface background color, interface background image, interface size information (height, width), interface layout (row and column information), and control information;
表述方式包含但不限于标准化数据库格式,标准化XML。Expression methods include but are not limited to standardized database formats and standardized XML.
优选的,根据设计结果书写二维显示界面源代码步骤包括:Preferably, the step of writing the source code of the two-dimensional display interface according to the design result includes:
书写界面整体属性代码;Write the overall attribute code of the interface;
书写界面中包含控件相关代码;The writing interface contains control-related codes;
书写控件与数字飞行器实时状态量数据源的数据传输代码;Write the data transmission code between the control and the real-time state quantity data source of the digital aircraft;
书写状态量显示功能的代码;Write the code of the state quantity display function;
优选的,数字飞行器状态量实时显示的具体步骤包含:Preferably, the specific steps of the real-time display of the digital aircraft state quantity include:
通过通讯接口获取到仿真程序传来的状态量数值和状态量ID;Obtain the state quantity value and state quantity ID from the simulation program through the communication interface;
与二维显示界面设计结果中的控件绑定状态量信息进行匹配;Match with the control binding state quantity information in the design result of the two-dimensional display interface;
确定数据对应的显示控件,实现数据显示。Determine the display control corresponding to the data to realize data display.
优选的,仿真程序和二维显示程序通讯方式采用TCP/IP通讯方式。Preferably, the communication mode between the simulation program and the two-dimensional display program adopts the TCP/IP communication mode.
界面设计模块和控件库为用户提供了统一标准的界面设计平台,用户可以根据自身需要,搭建具有自己风格的显示界面,避免了被统一格式束缚的问题,使得界面适用范围更广,应用更灵活。而保存界面最终设计结果的统一格式描述文件以统一的标准保存所设计的界面,不同用户所涉及的界面可以相互通用,方便界面的统一规模开发。数字飞行器与界面间统一的通讯方式同样保证了不同型号的飞行器与界面间的通用性。The interface design module and control library provide users with a unified and standard interface design platform. Users can build display interfaces with their own styles according to their own needs, avoiding the problem of being bound by a unified format, making the interface more applicable and more flexible . The unified format description file that saves the final design results of the interface saves the designed interface with a unified standard, and the interfaces involved by different users can be used mutually, which facilitates the unified scale development of the interface. The unified communication method between the digital aircraft and the interface also ensures the commonality between different types of aircraft and the interface.
因此,数字飞行器实时二维显示界面源程序人工智能书写方法能广泛适用于多种类型飞行器的相关数据显示,在数字飞行器二维显示界面的设计过程中,人只需作出待显示状态量的决策过程,例如控件的拖拽和显示状态量的决策,其余过程均由计算机自主完成,高效省时。Therefore, the artificial intelligence writing method of the source program of the real-time two-dimensional display interface of the digital aircraft can be widely applied to the relevant data display of various types of aircraft. The process, such as the dragging of controls and the decision-making of displaying state quantities, and the rest of the process are completed by the computer itself, which is efficient and time-saving.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1附图为数字飞行器实时二维显示界面源程序人工智能书写方法流程图;Fig. 1 accompanying drawing is the flow chart of artificial intelligence writing method of source program of digital aircraft real-time two-dimensional display interface;
图2附图为数字飞行器实时二维显示设计模块;The accompanying drawing of Fig. 2 is the real-time two-dimensional display design module of the digital aircraft;
图3附图为数字飞行器实时二维显示界面。Figure 3 shows the real-time two-dimensional display interface of the digital aircraft.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
图1所示的为本发明的步骤流程图,下面结合附图并通过具体的实施例对本发明作进一步的详细描述。Figure 1 is a flow chart of the steps of the present invention, and the present invention will be further described in detail below in conjunction with the accompanying drawings and through specific embodiments.
本发明具体公开了一种数字飞行器实时二维显示界面源程序人工智能书写方法,书写方法包括以下步骤:The invention specifically discloses an artificial intelligence writing method for a real-time two-dimensional display interface source program of a digital aircraft. The writing method includes the following steps:
步骤一:建立二维显示控件库;Step 1: Establish a two-dimensional display control library;
步骤二:结合所述二维显示控件库在设计模块中完成二维显示界面的设计;Step 2: Combining the two-dimensional display control library to complete the design of the two-dimensional display interface in the design module;
步骤三:将所述界面设计结果进行统一格式的描述;Step 3: describe the interface design results in a unified format;
步骤四:根据设计结果书写二维显示界面源代码Step 4: Write the source code of the two-dimensional display interface according to the design result
步骤五:数字飞行器状态量实时显示Step 5: Real-time display of the status of the digital aircraft
下面,将对上述主要步骤进行逐一描述。Below, the above-mentioned main steps will be described one by one.
1、建立控件库1. Create a control library
控件库中包含图表,文本框,滑动条,指示灯,进度条,标签,容器,列表,横线,竖线在内的多种控件。The control library contains a variety of controls including charts, text boxes, sliders, indicators, progress bars, labels, containers, lists, horizontal lines, and vertical lines.
图表主要实现绘制状态量间的关系图,其中包含两类关系图;第一种是默认类型关系图,主要绘制某一数字飞行器状态量随时间的变化图象,反应该状态量信息的动态特性,起到状态量的监视作用;第二类为X-Y型平面图,主要绘制任任意两种数字飞行器状态量的关系曲线,反应两种状态量间的关联性。用户可设置显示状态量的曲线颜色,曲线类型,点类型和最大现实点个数等数据属性;并可设置包含图形背景,图形透明度等控件属性。The chart is mainly used to draw the relationship diagram between the state quantities, which includes two types of relationship diagrams; the first is the default type relationship diagram, which mainly draws the change image of the state quantity of a certain digital aircraft over time, reflecting the dynamic characteristics of the state quantity information , to monitor the state quantity; the second type is the X-Y plane diagram, which mainly draws the relationship curve between any two digital aircraft state quantities, reflecting the correlation between the two state quantities. Users can set data attributes such as curve color, curve type, point type, and maximum number of realistic points for displaying state quantities; they can also set control attributes including graphic background, graphic transparency, etc.
文本框是显示数据的载体,可通过拖拽的方式将加载的数据库中的飞行器状态量信息与文本框绑定,实现所拖拽状态量的实时显示;用户可设置包含字体,透明度,背景颜色,边框控件属性。The text box is the carrier of the displayed data, and the aircraft status information in the loaded database can be bound to the text box by dragging and dropping to realize the real-time display of the dragged status information; the user can set font, transparency, background color , the border control property.
滑动条辅助用户调节某些状态量的具体数值。定义状态量可调节范围,即最大值和最小值,实现状态量的调节控制。滑动条数据属性包含最大值,最小值;控件属性包含背景,透明度,边框等。The slide bar assists the user to adjust the specific value of some state quantities. Define the adjustable range of the state quantity, that is, the maximum value and the minimum value, and realize the adjustment control of the state quantity. The data properties of the slider include the maximum value and the minimum value; the control properties include the background, transparency, border, etc.
指示灯辅助用户获知飞行器某些状态情况,状态只包含是或否,即0和1,1时灯亮,0时灯灭。控件属性包含指示灯透明度,嵌板背景,透明度,边框,字体大小颜色等。The indicator light helps the user to know some status of the aircraft. The status only includes yes or no, that is, 0 and 1. When 1, the light is on, and when 0, the light is off. Control properties include light transparency, panel background, transparency, border, font size and color, etc.
进度条起到显示状态量仿真进度的功能,用户设置仿真状态量的最大值与最小值,通过比较当前状态量数值与最大值最小值的关系实时显示仿真状态量的仿真进度。进度条包含背景透明度和边框等控件属性,数据最大值最小值等数据属性。The progress bar serves to display the simulation progress of the state quantity. The user sets the maximum and minimum values of the simulation state quantity, and displays the simulation progress of the simulation state quantity in real time by comparing the relationship between the current state quantity value and the maximum and minimum values. The progress bar contains control properties such as background transparency and borders, and data properties such as maximum and minimum data values.
标签起到显示文本的作用。控件属性包含标签的背景,透明度,字体的颜色大小等。Labels play the role of displaying text. Control properties include label background, transparency, font color and size, etc.
容器显示某些状态量的剩余量信息,例如电量,燃料量等。容器数据属性包含状态量最大值最小值,控件属性包含背景,透明度,边框等。The container displays information about the remaining amount of certain state quantities, such as power, fuel, etc. The container data attributes include the maximum and minimum values of the state quantity, and the control attributes include background, transparency, border, etc.
按钮起到控制后台程序的作用。按钮与某些后台程序绑定,可通过点击按钮触发与之绑定的程序,或者起到控制仿真速度的作用。按钮的数据属性包含可选绑定子程序,可选绑定语句等,控件属性包含按钮背景,字体大小,颜色,按钮绑定功能等。The button plays the role of controlling the background program. The button is bound to some background programs, and the bound program can be triggered by clicking the button, or it can control the simulation speed. The data properties of the button include optional binding subroutines, optional binding statements, etc., and the control properties include button background, font size, color, button binding functions, etc.
列表是以列表的形式展现状态量的相关信息。列表数据属性包含时间,状态量的编号,名称,所属板卡名称,状态量类型,数据长度,压缩长度,最大值,最小值,可选值,工程数据等;控件属性包含列表的背景,边框,透明度等。The list is to display the relevant information of the state quantity in the form of a list. List data attributes include time, status number, name, board name, status type, data length, compression length, maximum value, minimum value, optional value, engineering data, etc.; control attributes include the background and border of the list , transparency, etc.
横线、竖线起到控件之间的关系的梳理作用,表明各控件之间的关系。控件属性包含线条的颜色,边框,粗细等。Horizontal lines and vertical lines play a role in sorting out the relationship between controls, indicating the relationship between controls. Control properties include line color, border, thickness, etc.
2、在设计模块中完成二维显示界面的设计2. Complete the design of the two-dimensional display interface in the design module
在生成好的二维显示界面程序设计模块中从控件库选取二维显示界面所需要的控件,以舰空导弹为实施例,绘制舰空导弹时选择的控件有:标签、文本框和指示灯。用户通过拖拽的形式将控件加入到显示框架中,其中标签用来存放界面中的必要文字,文本框用来存放待显示的相关状态量,指示灯用来显示导弹状态,包括发射、命中、爆炸等。In the generated two-dimensional display interface programming module, select the controls required for the two-dimensional display interface from the control library. Taking the ship-to-air missile as an example, the controls selected when drawing the ship-to-air missile include: labels, text boxes and indicator lights . The user adds the control to the display frame by dragging and dropping, in which the label is used to store the necessary text in the interface, the text box is used to store the relevant state quantities to be displayed, and the indicator light is used to display the status of the missile, including launch, hit, explosion etc.
在生成好的二维显示界面程序设计模块中从状态量列表选择待显示状态量,本实施例中选取的状态量为:舰船位置和速度三轴分量、载机位置和速度三轴分量、导弹位置和速度三轴分量和导弹状态等。控件与状态量的绑定信息保存在统一格式描述文件中,以红方导弹位文本框控件显示导弹x轴位置分量为例,将文本框控件与状态量MissileOrbits-3-1绑定在一起,因此在保存文本框控件信息的统一格式描述文件中应存储该控件显示数据的相关信息,信息包含带显示数据编号,带显示数据名称。在设计模块中设计完成的界面雏形如图2所示。In the generated two-dimensional display interface programming module, select the state quantity to be displayed from the state quantity list. The state quantity selected in this embodiment is: ship position and speed three-axis component, aircraft position and speed three-axis component, Missile position and velocity three-axis components and missile state, etc. The binding information of the control and the state quantity is saved in the unified format description file. Taking the red square missile position text box control to display the x-axis position component of the missile as an example, the text box control and the state quantity MissileOrbits-3-1 are bound together. Therefore, relevant information about the display data of the control should be stored in the unified format description file for saving the information of the text box control, and the information includes the serial number of the display data and the name of the display data. The prototype of the interface designed in the design module is shown in Figure 2.
在界面属性设置中设计界面尺寸、背景、颜色等属性,并保存在统一格式描述文件中。Design properties such as interface size, background, and color in the interface property setting, and save them in a unified format description file.
3、设计结果统一格式描述3. Unified format description of design results
二维显示界面的设计结果描述包含但不限于界面名称,界面编号,运行模式,界面背景颜色,界面背景图片,界面尺寸信息(高度、宽度),界面布局(行列信息),和控件信息。The design result description of the two-dimensional display interface includes but is not limited to interface name, interface number, operation mode, interface background color, interface background image, interface size information (height, width), interface layout (row and column information), and control information.
表述方式包含但不限于标准化数据库格式,标准化XML。Expression methods include but are not limited to standardized database formats and standardized XML.
二维显示界面设计结果描述这里选用XML描述。Two-dimensional display interface design result description here uses XML description.
4、根据设计结果书写二维显示界面源代码4. Write the source code of the two-dimensional display interface according to the design results
人工智能程序员书写过程分以下四个部分:The writing process of artificial intelligence programmers is divided into the following four parts:
书写界面整体属性代码;Write the overall attribute code of the interface;
书写界面中包含控件相关代码;The writing interface contains control-related codes;
书写控件与数字飞行器实时状态量数据源的数据传输代码;Write the data transmission code between the control and the real-time state quantity data source of the digital aircraft;
书写状态量显示功能的代码;Write the code of the state quantity display function;
下文依次详述各个过程。Each process is described in detail below in turn.
界面整体属性主要包括界面大小、布局、背景、绑定数据库等。人工智能程序员读取保存设计结果的xml文件获取到上述属性。界面布局(n行m列)指出界面可以划分为由n xm个方格组成的矩形,界面大小(长,宽)记录该矩形的尺寸。人工智能程序员在该n x m的矩形界面中建立直角坐标系,原点位于0行0列的位置,X轴为行数,Y轴为列数,至此界面中任一点位置可以由行列唯一确定。背景信息为某一背景图片的绝对地址,获取改地址后人工智能程序员将该图片插入到背景中。与二维界面绑定的数据库存储各数字飞行器状态量数值,人工智能程序员获取数据库地址,便于随时访问。The overall properties of the interface mainly include interface size, layout, background, binding database, etc. The artificial intelligence programmer reads the xml file that saves the design result to obtain the above attributes. The interface layout (n rows and m columns) indicates that the interface can be divided into a rectangle composed of n xm squares, and the interface size (length, width) records the size of the rectangle. The artificial intelligence programmer establishes a Cartesian coordinate system in the n x m rectangular interface. The origin is at the position of 0 rows and 0 columns. The background information is the absolute address of a certain background picture. After obtaining the changed address, the artificial intelligence programmer inserts the picture into the background. The database bound to the two-dimensional interface stores the state value of each digital aircraft, and the artificial intelligence programmer obtains the database address for easy access at any time.
在完成上述界面整体属性程序书写的基础上,书写二维界面中的各个控件对应源代码。各控件相关的源代码书写步骤一致,依次为:控件属性设置、控件与状态量绑定、控件绘制。On the basis of completing the writing of the overall property program of the above interface, write the source code corresponding to each control in the two-dimensional interface. The source code writing steps related to each control are consistent, which are: control property setting, control and state quantity binding, and control drawing.
其中控件属性需要人工智能程序员从保存设计结果的xml文件中获取,属性主要包含控件尺寸、位置、颜色、边框等信息,依次书写设置源代码。每个控件会与状态量绑定,通过访问存放状态量的数据库根据状态量名称获取到该状态量ID,通过结构体列表的形式,将控件ID、所绑定状态量名称与当前状态量ID统一保存,建立绑定关系。人工智能程序员获取到控件的位置信息(行、列)后,可以在上述所述的界面坐标系中定为该控件在界面中的位置,书写该控件在界面中的显示源代码。以本实施例中红方导弹位置X轴信息文本框控件为例,其行列信息为3列11行,尺寸信息为高度1宽度3,程序在以上建立的坐标系中寻找到坐标为(3,11)的位置,放置尺寸大小为(1,3)的文本框控件。Among them, the control properties need to be obtained by artificial intelligence programmers from the xml file that saves the design results. The properties mainly include information such as control size, position, color, border, etc., and write and set the source code in turn. Each control is bound to a state quantity, and the state quantity ID is obtained by accessing the database storing the state quantity according to the state quantity name, and the control ID, the bound state quantity name and the current state quantity ID are combined in the form of a structure list Save them together and establish a binding relationship. After the artificial intelligence programmer obtains the position information (row, column) of the control, he can set the position of the control in the interface in the above-mentioned interface coordinate system, and write the display source code of the control in the interface. Taking the X-axis information text box control of the position of the red missile in this embodiment as an example, its row and column information is 3 columns and 11 rows, and the size information is height 1 width 3. The program finds the coordinates in the coordinate system established above as (3, 11), place a text box control with a size of (1,3).
控件与数字飞行器的数据传输代码为固定代码,该部分代码保存在代码库中。数字飞行器与二维显示界面的传输通道总共有三中类型,分别是动力学参数归档,设备参数归档,遥测数据归档。人工智能程序员根据当前数字飞行器包含的传输通道类型,从代码库中挑选对应的固定代码,并完成书写。The data transmission code between the control and the digital aircraft is a fixed code, and this part of the code is stored in the code library. There are three types of transmission channels between the digital aircraft and the two-dimensional display interface, which are dynamic parameter archiving, equipment parameter archiving, and telemetry data archiving. According to the type of transmission channel contained in the current digital aircraft, the artificial intelligence programmer selects the corresponding fixed code from the code library and completes the writing.
状态量显示功能代码步骤依次为:识别通道类型、接受数据、控件匹配识别、状态量显示。The code steps of the state quantity display function are: identify the channel type, accept data, control matching identification, and state quantity display.
其中,通道类型识别依靠关键字,关键字为与二维显示界面关联的数字飞行器的固有属性,其中动力学归档通道和设备归档通道的关键字为‘Archive’,遥测数据归档通道关键字为‘Telemetry’,据此书写匹配的相关源代码。数字飞行器会向二维显示界面发送当前状态量的ID和数值,根据获取到的信息,人工智能程序员可以书写当前状态量控件匹配与显示的相关源程序,原理如下:访问后台得保存状态量与控件信息的结构体列表,已知当前状态量ID,可以从结构体列表中匹配到保存该ID的结构体,进而获取与之绑定的控件ID,从而确定控件,书写使该状态量在与其绑定的控件中显示的相关源代码命令即可。Among them, the identification of the channel type relies on keywords, which are the inherent properties of the digital aircraft associated with the two-dimensional display interface, where the keywords of the dynamics archive channel and equipment archive channel are 'Archive', and the keywords of the telemetry data archive channel are 'Archive' Telemetry', according to which the matching related source code is written. The digital aircraft will send the ID and value of the current state quantity to the two-dimensional display interface. According to the obtained information, the artificial intelligence programmer can write the relevant source program for the matching and display of the current state quantity control. The principle is as follows: access to the background must save the state quantity With the structure list of the control information, the current state quantity ID is known, and the structure storing the ID can be matched from the structure list, and then the control ID bound to it can be obtained, so as to determine the control and write so that the state quantity is in The relevant source code commands displayed in the controls bound to it are sufficient.
5、数据实时显示5. Data real-time display
上文提及的动力学参数归档、设备参数归档和遥测数据归档信息传输的定义如下:The above-mentioned information transmission of kinetic parameter archive, equipment parameter archive and telemetry data archive is defined as follows:
动力学参数归档起点为数字飞行器,数字飞行器将数据发送至动力学归档模块,归档模块将数据的ID和数值发送至二维显示界面。The starting point for archiving dynamic parameters is the digital aircraft, which sends data to the dynamic archiving module, and the archiving module sends the ID and value of the data to the two-dimensional display interface.
设备参数归档起点为数字飞行器,数字飞行器将数据发送至设备归档模块,归档模块将数据的ID和数值发送至二维显示界面。The starting point of device parameter archiving is the digital aircraft, which sends data to the device archiving module, and the archiving module sends the ID and value of the data to the two-dimensional display interface.
遥测参数归档起点为数字飞行器,飞行器将遥测数据组包发送至遥测解码模块,解码完成后将数据发送至遥测数据归档模块,遥测数据归档模块将遥测数据的ID和数值发送至二维显示界面。The starting point of telemetry parameter archiving is the digital aircraft. The aircraft sends the telemetry data package to the telemetry decoding module. After decoding, the data is sent to the telemetry data archiving module. The telemetry data archiving module sends the ID and value of the telemetry data to the two-dimensional display interface.
以本实施例中的红方导弹位置X轴信息显示过程为例,数字导弹仿真程序得到导弹位置的实时数据,将位置数据发送至配套的归档程序,归档程序根据将位置数值及其ID(69)发送至二维显示界面程序,二维显示界面程序会根据ID在控件中逐个匹配,匹配到文本框控件TextBox1,将收到的导弹位置数据在文本框TextBox1中显示,以此类推完成所有控件绑定状态量的显示。智能生成的二维界面最终效果图如图3所示。Taking the X-axis information display process of the red missile position in this embodiment as an example, the digital missile simulation program obtains the real-time data of the missile position, and sends the position data to the supporting archiving program, and the archiving program stores the position value and its ID (69 ) to the two-dimensional display interface program, the two-dimensional display interface program will match the controls one by one according to the ID, match the text box control TextBox1, and display the received missile position data in the text box TextBox1, and so on to complete all controls Display of binding status quantities. The final rendering of the intelligently generated 2D interface is shown in Figure 3.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284824.4A CN108595175A (en) | 2018-04-02 | 2018-04-02 | Digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810284824.4A CN108595175A (en) | 2018-04-02 | 2018-04-02 | Digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108595175A true CN108595175A (en) | 2018-09-28 |
Family
ID=63625376
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810284824.4A Pending CN108595175A (en) | 2018-04-02 | 2018-04-02 | Digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108595175A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111949263A (en) * | 2020-07-08 | 2020-11-17 | 中核武汉核电运行技术股份有限公司 | Human factor engineering design verification method based on image recognition technology |
CN113569328A (en) * | 2021-08-31 | 2021-10-29 | 重庆允成互联网科技有限公司 | Factory three-dimensional model building method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN106569801A (en) * | 2016-10-18 | 2017-04-19 | 中国运载火箭技术研究院 | Complex parameter-based configuration display control system |
US9721478B2 (en) * | 2009-12-01 | 2017-08-01 | The Boeing Company | Integrated live and simulation environment system for an aircraft |
-
2018
- 2018-04-02 CN CN201810284824.4A patent/CN108595175A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9721478B2 (en) * | 2009-12-01 | 2017-08-01 | The Boeing Company | Integrated live and simulation environment system for an aircraft |
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 |
CN106569801A (en) * | 2016-10-18 | 2017-04-19 | 中国运载火箭技术研究院 | Complex parameter-based configuration display control system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111949263A (en) * | 2020-07-08 | 2020-11-17 | 中核武汉核电运行技术股份有限公司 | Human factor engineering design verification method based on image recognition technology |
CN111949263B (en) * | 2020-07-08 | 2024-05-14 | 中核武汉核电运行技术股份有限公司 | Man-factor engineering design verification method based on image recognition technology |
CN113569328A (en) * | 2021-08-31 | 2021-10-29 | 重庆允成互联网科技有限公司 | Factory three-dimensional model building method |
CN113569328B (en) * | 2021-08-31 | 2024-02-23 | 重庆允丰科技有限公司 | Factory three-dimensional model building method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7592136B2 (en) | System and method for providing responsive editing and display integrating hierarchical fluid components and dynamic layouts - Patents.com | |
US5619636A (en) | Multimedia publishing system | |
US7913190B2 (en) | Method, system and software for visualizing 3D models | |
US20070146369A1 (en) | Animation On Object User Interface | |
EP1277104A1 (en) | Method for gesture based modeling | |
EP2587456A2 (en) | Method and systems for generating a dynamic multimodal and multidimensional presentation | |
CN105074640A (en) | Engaging presentation through freeform sketching | |
CN114546364A (en) | Configuration method of visual chart assembly | |
CN106846431B (en) | Unified Web graph drawing system supporting multiple expression forms | |
CN109471580B (en) | Visual 3D courseware editor and courseware editing method | |
US9569182B2 (en) | Integrated development environment and method | |
CN105976322A (en) | Power grid comprehensive information monitoring graph generation system and method | |
CN108595175A (en) | Digital aircraft Real-time Two-dimensional display interface source program artificial intelligence Writing method | |
CN109544703B (en) | Data center Web3D model loading method easy to realize interaction | |
JPH0377997A (en) | Window display system and method | |
Veira-González et al. | From artisans to engineers: How technology transformed formats, workflows, teams and the craft of infographics and data visualization in the news | |
US8405652B1 (en) | Three-dimensional visualization of a form | |
US8566734B1 (en) | System and method for providing visual component layout input in alternate forms | |
CN111352615A (en) | Data display method and terminal based on pie chart component with background animation | |
WO2019212869A1 (en) | Projection of content libraries in three-dimensional environment | |
CN110543625A (en) | A method for rapid annotation editing and display of 3D virtual training courseware information | |
CN114860223B (en) | Interactive editing frame, interactive object generation method and electronic equipment | |
Sung et al. | Build your own 2D game engine and create great web games | |
CN118071964B (en) | Human resource remote training system based on virtual reality | |
CN108563621A (en) | A kind of PDF report form generation methods, device, 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180928 |