[go: up one dir, main page]

CN114968005B - Equipment virtual training modeling method, device, terminal equipment and system - Google Patents

Equipment virtual training modeling method, device, terminal equipment and system Download PDF

Info

Publication number
CN114968005B
CN114968005B CN202210528336.XA CN202210528336A CN114968005B CN 114968005 B CN114968005 B CN 114968005B CN 202210528336 A CN202210528336 A CN 202210528336A CN 114968005 B CN114968005 B CN 114968005B
Authority
CN
China
Prior art keywords
steps
equipment
maintenance training
management module
training subject
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210528336.XA
Other languages
Chinese (zh)
Other versions
CN114968005A (en
Inventor
王冬宁
侯永飞
冯召彬
魏丽红
李家龙
陆婷微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shijiazhuang Jiantai Technology Co ltd
Original Assignee
Shijiazhuang Jiantai Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shijiazhuang Jiantai Technology Co ltd filed Critical Shijiazhuang Jiantai Technology Co ltd
Priority to CN202210528336.XA priority Critical patent/CN114968005B/en
Publication of CN114968005A publication Critical patent/CN114968005A/en
Application granted granted Critical
Publication of CN114968005B publication Critical patent/CN114968005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Educational Technology (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请适用于虚拟训练模拟器领域,提供了装备虚拟训练建模方法、装置、终端设备和系统,该装备虚拟训练建模方法包括:根据预先定义的装备故障维修规则,定义装备故障维修训练科目的XML脚本文件;通过进程管理模块调用脚本解析器对XML脚本文件进行解析,获取脚本内容;脚本内容包括初始化信息、步骤、条件、动作和状态值;基于解析后脚本内容,对装备故障维修训练科目的步骤进行更新;进程管理模块对装备故障维修训练的操作步骤按照预设调度规则进行调度管理。本申请能够提高数据运算的速度和效率。

The present application is applicable to the field of virtual training simulators, and provides equipment virtual training modeling methods, devices, terminal equipment and systems. The equipment virtual training modeling method includes: defining an XML script file of equipment fault maintenance training subjects according to predefined equipment fault maintenance rules; parsing the XML script file by calling a script parser through a process management module to obtain script content; the script content includes initialization information, steps, conditions, actions and state values; updating the steps of equipment fault maintenance training subjects based on the parsed script content; and the process management module scheduling and managing the operation steps of equipment fault maintenance training according to preset scheduling rules. The present application can improve the speed and efficiency of data operations.

Description

装备虚拟训练建模方法、装置、终端设备及系统Equipment virtual training modeling method, device, terminal equipment and system

技术领域Technical Field

本申请属于虚拟训练模拟器领域,尤其涉及装备虚拟训练建模方法、装置、终端设备及系统。The present application belongs to the field of virtual training simulators, and in particular to equipment virtual training modeling methods, devices, terminal equipment and systems.

背景技术Background Art

根据项目经验,研发装备虚拟训练模拟器的主要工作之一是构建训练科目。不同的装备、不同的训练类型以及不同的训练科目,其内容既有相似性,又有独特性。为了提高构建训练科目的效率,需要一种训练科目建模方法,通过建模,直接生成训练科目,无需修改程序或编写代码。According to project experience, one of the main tasks of developing equipment virtual training simulators is to build training subjects. Different equipment, different training types, and different training subjects have similarities and uniqueness in their contents. In order to improve the efficiency of building training subjects, a training subject modeling method is needed. Through modeling, training subjects can be directly generated without modifying the program or writing code.

目前最接近的现有技术是IDEF(Integrated Computer-Aided ManufacturingDefinition,集成计算器辅助制造)建模方法,IDEF建模方法包含若干细分建模方法,如功能建模(IDEF0)、信息建模(IDEF1)、动态建模(IDEF2)等。IDEF建模方法是一种基于结构化的设计与分析技术以及活动模型的相关方法,应用十分广泛。但由于其更加抽象,在实际应用过程中,很难直接应用于细分领域。IDEF只是一种描述方法,没有相关的软件框架能够用于软件工程。亟需开发一种新的软件框架应用到装备虚拟训练中。The closest existing technology is the IDEF (Integrated Computer-Aided Manufacturing Definition) modeling method, which includes several subdivision modeling methods, such as functional modeling (IDEF0), information modeling (IDEF1), dynamic modeling (IDEF2), etc. The IDEF modeling method is a related method based on structured design and analysis technology and activity models, and is widely used. However, due to its more abstract nature, it is difficult to directly apply it to subdivision fields in actual application. IDEF is only a description method, and there is no related software framework that can be used for software engineering. It is urgent to develop a new software framework for application in equipment virtual training.

发明内容Summary of the invention

为克服相关技术中存在的问题,本申请实施例提供装备虚拟训练建模方法、装置、终端设备和系统,能够将一种新的软件框架应用于装备虚拟训练,缩短了装备虚拟训练的开发周期,降低了开发成本。In order to overcome the problems existing in the related technology, the embodiments of the present application provide equipment virtual training modeling methods, devices, terminal devices and systems, which can apply a new software framework to equipment virtual training, shorten the development cycle of equipment virtual training, and reduce development costs.

本申请是通过如下技术方案实现的:This application is implemented through the following technical solutions:

第一方面,本申请实施例提供了一种装备虚拟训练建模方法,包括:In a first aspect, an embodiment of the present application provides an equipment virtual training modeling method, comprising:

根据预先定义的装备故障维修规则,定义装备故障维修训练科目的XML脚本文件;通过进程管理模块调用脚本解析器对所述XML脚本文件进行解析,获取脚本内容;所述脚本内容包括初始化信息、步骤、条件、动作和状态值;基于解析后脚本内容,对所述装备故障维修训练科目的步骤进行更新;所述进程管理模块对所述装备故障维修训练的操作步骤按照预设调度规则进行调度管理。According to predefined equipment fault maintenance rules, an XML script file of the equipment fault maintenance training subject is defined; the script parser is called by the process management module to parse the XML script file to obtain the script content; the script content includes initialization information, steps, conditions, actions and status values; based on the parsed script content, the steps of the equipment fault maintenance training subject are updated; the process management module schedules and manages the operation steps of the equipment fault maintenance training according to preset scheduling rules.

在第一方面的一种可能的实现方式中,所述进程管理模块调用脚本解析器对所述XML脚本文件进行解析,包括:In a possible implementation manner of the first aspect, the process management module calls a script parser to parse the XML script file, including:

根据所述装备故障维修训练科目的脚本文件的路径,所述进程管理模块调用所述脚本解析器,获取解析后的脚本内容;基于所述初始化信息,初始化所述装备故障维修训练科目的UI(User Interface,即用户界面中的工具、部件和备件)和三维场景;基于所述UI和三维场景,注册事件提供者。According to the path of the script file of the equipment fault maintenance training subject, the process management module calls the script parser to obtain the parsed script content; based on the initialization information, the UI (User Interface, i.e., the tools, components and spare parts in the user interface) and three-dimensional scene of the equipment fault maintenance training subject are initialized; based on the UI and three-dimensional scene, an event provider is registered.

在第一方面的一种可能的实现方式中,所述基于解析后的脚本内容,对所述装备故障维修训练科目的步骤进行更新,包括:In a possible implementation manner of the first aspect, the updating of the steps of the equipment fault maintenance training subject based on the parsed script content includes:

所述进程管理模块注册Update函数;所述进程管理模块利用所述Update函数遍历所述事件提供者,获取当前一帧的新事件的列表;所述新事件为所述事件提供者采集的外部输入事件;在所述新事件的列表中,插入空事件;所述空事件,在系统运行的每一帧生成,并传递给无条件运行的步骤;所述进程管理模块获取所述装备故障维修训练科目的所述当前步骤第一状态,若所述当前步骤为未激活状态,激活所述当前步骤;所述步骤第一状态包括激活和未激活;The process management module registers the Update function; the process management module uses the Update function to traverse the event provider and obtain a list of new events in the current frame; the new event is an external input event collected by the event provider; in the list of new events, an empty event is inserted; the empty event is generated in each frame of the system operation and passed to the unconditional operation step; the process management module obtains the first state of the current step of the equipment fault maintenance training subject, and if the current step is in an inactive state, activates the current step; the first state of the step includes activated and inactivated;

若所述当前步骤为激活状态,所述进程管理模块按照预设时间周期循环调用所述Update函数对所述装备故障维修训练科目的步骤进行更新;If the current step is in an activated state, the process management module cyclically calls the Update function according to a preset time period to update the steps of the equipment fault maintenance training subject;

所述进程管理模块调用所述Update函数,进行所述新事件与所述装备故障维修训练科目的所述当前步骤的条件的匹配;The process management module calls the Update function to match the new event with the condition of the current step of the equipment failure maintenance training subject;

匹配完成后,更新所述装备故障维修训练科目的步骤的对应动作。After the matching is completed, the corresponding actions of the steps of the equipment failure maintenance training subject are updated.

在第一方面的一种可能的实现方式中,所述匹配完成后,更新所述装备故障维修训练科目的步骤的对应动作,包括:In a possible implementation manner of the first aspect, after the matching is completed, the corresponding action of the step of updating the equipment fault maintenance training subject includes:

所述匹配完成后,获取所述装备故障维修训练科目的所述当前步骤第二状态;所述当前步骤第二状态包括执行动作中和执行完毕;After the matching is completed, the second state of the current step of the equipment fault maintenance training subject is obtained; the second state of the current step includes executing action and completed execution;

基于获取的所述当前所述步骤第二状态,更新所述装备故障维修训练科目的当前步骤的对应动作;Based on the acquired second state of the current step, updating the corresponding action of the current step of the equipment failure maintenance training subject;

所述更新所述装备故障维修训练科目的当前步骤的对应动作,包括:The corresponding actions of updating the current step of the equipment failure maintenance training subject include:

若所述当前步骤状态为执行完毕,则结束当前一帧所述当前步骤更新;若所述当前步骤更状态在执行动作中,则等待所述进程管理模块下一帧调用所述Update函数对所述装备故障维修训练科目的下一步骤进行更新;If the current step status is completed, then the current step update of the current frame is terminated; if the current step status is in execution, then wait for the process management module to call the Update function in the next frame to update the next step of the equipment fault maintenance training subject;

当所述进程管理模块下一帧调用所述Update函数对所述装备故障维修训练科目的下一步骤进行更新时,所述下一步骤为所述当前步骤。When the process management module calls the Update function in the next frame to update the next step of the equipment failure maintenance training subject, the next step is the current step.

在第一方面的一种可能的实现方式中,所述匹配完成后,所述装备故障维修训练科目的步骤的对应动作进行更新,还包括:In a possible implementation manner of the first aspect, after the matching is completed, the corresponding actions of the steps of the equipment fault maintenance training subject are updated, further comprising:

根据所述装备故障维修训练科目的的步骤类型,更新所述当前步骤类型的对应动作;所述装备故障维修训练科目的步骤的类型为与所述新事件对应的预先设定的步骤类型,所述预先设定的步骤类型包括:抽象逻辑步骤、组合步骤;所述抽象逻辑步骤包括逻辑步骤和循环步骤;所述组合步骤包括串行组合步骤和并行组合步骤;所述并行组合步骤包括并行全部步骤、并行指定步骤和并行随机步骤;所述装备故障维修训练科目的步骤的对应动作包括所述装备故障维修训练动画动作和更新状态值。According to the step type of the equipment fault maintenance training subject, the corresponding action of the current step type is updated; the step type of the equipment fault maintenance training subject is a pre-set step type corresponding to the new event, and the pre-set step type includes: abstract logic steps and combination steps; the abstract logic steps include logic steps and loop steps; the combination steps include serial combination steps and parallel combination steps; the parallel combination steps include parallel all steps, parallel specified steps and parallel random steps; the corresponding actions of the steps of the equipment fault maintenance training subject include the equipment fault maintenance training animation action and update status value.

在第一方面的一种可能的实现方式中,所述进程管理模块包含一个训练科目串行组合步骤;所述一个训练科目串行组合步骤用于存储对应的装备故障维修训练的所有所述操作步骤;所述操作步骤具有多种步骤类型,根据不同类型步骤预设关系相互嵌套。In a possible implementation of the first aspect, the process management module includes a serial combination step of training subjects; the serial combination step of training subjects is used to store all the operation steps of the corresponding equipment fault maintenance training; the operation steps have multiple step types, which are nested with each other according to preset relationships of different types of steps.

第二方面,本申请实施例提供了一种装备虚拟训练建模装置,包括:In a second aspect, an embodiment of the present application provides an equipment virtual training modeling device, comprising:

输入模块,用于根据预先定义的装备故障维修规则,定义装备故障维修训练科目的XML脚本文件;解析模块,用于通过进程管理模块调用脚本解析器对所述XML脚本文件进行解析,获取脚本内容;所述脚本内容包括初始化信息、步骤、条件、动作和状态值;进程管理模块,用于基于解析后脚本内容,对所述装备故障维修训练科目的步骤进行更新;所述进程管理模块对所述装备故障维修训练的操作步骤按照预设调度规则进行调度管理。An input module is used to define an XML script file of an equipment fault maintenance training subject according to predefined equipment fault maintenance rules; a parsing module is used to parse the XML script file by calling a script parser through a process management module to obtain script content; the script content includes initialization information, steps, conditions, actions and status values; a process management module is used to update the steps of the equipment fault maintenance training subject based on the parsed script content; the process management module schedules and manages the operation steps of the equipment fault maintenance training according to preset scheduling rules.

第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面任一项所述的装备虚拟训练建模方法。In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the equipment virtual training modeling method as described in any one of the first aspects is implemented.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面任一项所述的装备虚拟训练建模方法,或如第二方面任一项所述的装备虚拟训练建模方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the equipment virtual training modeling method as described in any one of the first aspect, or the equipment virtual training modeling method as described in any one of the second aspect, is implemented.

第五方面,本申请实施例提供了一种装备虚拟训练建模系统,包括如第二方面所述装备虚拟训练建模装置,以及第三方面所述终端设备。In a fifth aspect, an embodiment of the present application provides an equipment virtual training modeling system, comprising the equipment virtual training modeling device as described in the second aspect, and the terminal device as described in the third aspect.

本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

本申请实施例,整个开发过程将一种新的软件框架应用于装备虚拟训练,主要工作由以前的程序编码,转变为定义XML文件,使整个开发过程的中心由代码转变为业务逻辑,能够将装备虚拟训练系统的开发工作量减少70%,大大提高了开发效率,减少因编码而产生的软件缺陷,极大的缩短了开发周期,降低了开发成本。In the embodiment of the present application, a new software framework is applied to equipment virtual training in the entire development process. The main work is changed from the previous program coding to defining XML files, so that the center of the entire development process is changed from code to business logic, which can reduce the development workload of the equipment virtual training system by 70%, greatly improve the development efficiency, reduce software defects caused by coding, greatly shorten the development cycle, and reduce development costs.

可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

图1是本申请一实施例提供的装备虚拟训练建模方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a method for equipment virtual training modeling provided in an embodiment of the present application;

图2是本申请一实施例提供的逻辑步骤推进流程示意图;FIG2 is a schematic diagram of a logical step advancement flow provided by an embodiment of the present application;

图3是本申请一实施例提供的循环步骤推进流程示意图;FIG3 is a schematic diagram of a cycle step advancement process provided by an embodiment of the present application;

图4是本申请一实施例提供的串行组合步骤推进流程示意图;FIG4 is a schematic diagram of a serial combination step advancement process provided by an embodiment of the present application;

图5是本申请一实施例提供的并行组合步骤推进流程示意图;FIG5 is a schematic diagram of a parallel combination step advancement process provided by an embodiment of the present application;

图6是本申请一实施例提供的装备虚拟训练建模装置的结构示意图;FIG6 is a schematic diagram of the structure of an equipment virtual training modeling device provided in an embodiment of the present application;

图7是本申请一实施例提供的终端设备的结构示意图。FIG. 7 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and/or combinations thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term “and/or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

IDEF建模方法是一种基于结构化的设计与分析技术以及活动模型的相关方法,应用十分广泛。但由于其更加抽象,在实际应用过程中,很难直接应用于细分领域。IDEF只是一种描述方法,没有相关的软件框架能够用于软件工程。The IDEF modeling method is a method based on structured design and analysis techniques and activity models, and is widely used. However, due to its more abstract nature, it is difficult to directly apply it to specific areas in actual applications. IDEF is only a description method, and there is no related software framework that can be used in software engineering.

基于上述问题,本申请实施例中提供了装备虚拟训练建模方法,将一种新的软件框架应用于装备虚拟训练,主要工作由以前的程序编码,转变为定义XML文件,使整个开发过程的中心由代码转变为业务逻辑,能够将装备虚拟训练系统的开发工作量减少70%,大大提高了开发效率,减少因编码而产生的软件缺陷,极大的缩短了开发周期,降低了开发成本。Based on the above problems, an equipment virtual training modeling method is provided in an embodiment of the present application, and a new software framework is applied to equipment virtual training. The main work is changed from the previous program coding to defining XML files, so that the center of the entire development process is changed from code to business logic, which can reduce the development workload of the equipment virtual training system by 70%, greatly improve the development efficiency, reduce software defects caused by coding, greatly shorten the development cycle, and reduce development costs.

为了使本技术领域的人员更好地理解本发明方案,下面对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present application are clearly and completely described below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

图1是本申请一实施例提供的装备虚拟训练建模方法的示意性流程图,参照图1,对该装备虚拟训练建模方法的详述如下:FIG. 1 is a schematic flow chart of an equipment virtual training modeling method provided by an embodiment of the present application. Referring to FIG. 1 , the equipment virtual training modeling method is described in detail as follows:

在步骤101中,根据预先定义的装备故障维修规则,定义装备故障维修训练科目的XML脚本文件。In step 101, an XML script file of equipment failure maintenance training subjects is defined according to predefined equipment failure maintenance rules.

其中,为了支持装备虚拟训练的运行,将训练科目采用XML语法定义为一个XML文件。XML语法自身支持多级父子关系,与步骤的定义相符。XML文件内的父子关系,被转化为步骤的父子关系。In order to support the operation of equipment virtual training, the training subjects are defined as an XML file using XML syntax. XML syntax itself supports multi-level parent-child relationships, which is consistent with the definition of steps. The parent-child relationship in the XML file is converted into the parent-child relationship of the step.

在步骤102中,通过进程管理模块调用脚本解析器对XML脚本文件进行解析,获取脚本内容;脚本内容包括初始化信息、步骤、条件、动作和状态值。In step 102, the script parser is called by the process management module to parse the XML script file and obtain the script content; the script content includes initialization information, steps, conditions, actions and status values.

其中,初始化信息包括部件栏和备件栏的物体(按钮)等信息。脚本解析器同时解析部件栏、备件栏的物体定义,用于生成部件栏和备件栏物体。物体的属性包括名称、图标、名称和时间等。The initialization information includes information such as objects (buttons) in the component bar and spare parts bar. The script parser also parses the object definitions of the component bar and spare parts bar to generate the objects in the component bar and spare parts bar. The properties of the object include name, icon, name and time.

其中,装备虚拟训练建模框架包括五类要素:步骤(Step)、事件(Event)、条件(Condition)、动作(Action)和状态值(StateValue)。Among them, the equipment virtual training modeling framework includes five elements: step, event, condition, action and state value.

其中,步骤是对装备维修过程中,一组操作或一步操作的定义,也可以是自动执行或由外部系统通知执行的一步操作。步骤分为逻辑步骤和组合步骤。逻辑步骤接受事件,通过条件做出逻辑判断,在判断条件通过后,开始执行其动作。组合步骤可以包含多个子步骤,在执行顺序和执行流程上,控制子步骤的执行,上述子步骤类型为同种或不同种。Among them, a step is a definition of a group of operations or a step of operation in the equipment maintenance process. It can also be a step of operation that is automatically executed or notified by an external system. Steps are divided into logical steps and combined steps. Logical steps accept events, make logical judgments based on conditions, and start to execute their actions after the judgment conditions are passed. Combined steps can contain multiple sub-steps, which control the execution of sub-steps in terms of execution order and execution flow. The above sub-step types can be the same or different.

示例性的,“用螺丝刀拧下前盖板螺丝”,是这一步操作,“分别拧下A、B、C三个插头”,是一组操作,“等待S车下达发射指令,并发射导弹”,是一种由外部系统通知执行的操作,都可以定义为一个步骤。For example, "Use a screwdriver to unscrew the screws on the front cover" is an operation in this step, "Unscrew the three plugs A, B, and C respectively" is a group of operations, and "Wait for the S car to issue a launch command and launch a missile" is an operation notified by an external system. They can all be defined as a step.

示例性的,进程管理模块每一次调用步骤,都返回一个调用结果,如工具错误、对象错误、操作正确、无效操作等。Exemplarily, each time the process management module calls a step, it returns a call result, such as a tool error, an object error, a correct operation, an invalid operation, etc.

其中,事件定义为外部输入,包括用户的操作输入或其他分系统通过网络发送的消息或指令;事件由事件提供者产生。Among them, events are defined as external inputs, including user operation inputs or messages or instructions sent by other subsystems through the network; events are generated by event providers.

示例性的,点击场景内物体、点击界面上物体都属于事件。For example, clicking on an object in the scene and clicking on an object on the interface are both events.

其中,条件属于逻辑步骤,是步骤的判断规则。Among them, conditions belong to logical steps and are the judgment rules of the steps.

示例性的,“鼠标点击了XXX物体”是一个条件。条件用于匹配当前产生的事件,一个步骤可以包含多个条件,当所有条件全部满足时,该步骤通过逻辑判断,开始执行动作。For example, "the mouse clicks on XXX object" is a condition. Conditions are used to match the currently generated events. A step can contain multiple conditions. When all conditions are met, the step starts to execute the action through logical judgment.

示例性的,事件类型和条件类型具备对应关系,其参数也相同。Exemplarily, the event type and the condition type have a corresponding relationship, and their parameters are also the same.

示例性的,条件包括选择3D对象和2D对象,即事件若与预设条件匹配,则选择对象的类型应一致。Exemplarily, the condition includes selecting a 3D object and a 2D object, that is, if the event matches the preset condition, the type of the selected object should be consistent.

示例性的,选择3D对象条件的参数包括工具和3D对象的名称,如用“螺丝刀”拧下“螺丝”。Exemplarily, the parameters for selecting the 3D object condition include the name of the tool and the 3D object, such as using a “screwdriver” to unscrew a “screw”.

其中,动作是指在正确操作步骤后,虚拟场景产生的输出,包括装备故障维修训练动画动作和更新状态值。Among them, action refers to the output generated by the virtual scene after the correct operation steps, including equipment fault repair training animation actions and updated status values.

示例性的,用户在拧了螺丝后,其表现动作以动画形式表现“螺丝逐渐向外旋转,然后隐藏”这一过程。动作是一个连续的执行过程,所以在动作执行过程中,步骤的状态会设置为“执行动作中”。For example, after the user tightens the screw, the performance action is animated to show the process of "the screw gradually rotates outward and then hides". The action is a continuous execution process, so during the execution of the action, the state of the step will be set to "executing the action".

示例性的,动画动作中内置多个子动作,具体类型包括:旋转平移、平移、旋转、放大、360°旋转、四元数旋转、显隐、指示灯亮、指示灯灭、指示灯闪烁、物体闪烁等。动画动作包括一个开始时间字段,可以让动画在激活后不立即执行,而是等待一段时间后再开始执行。使用上述字段,可以更加方便地组合多个动画动作,使所预设的动作按顺序执行。For example, an animation action has multiple sub-actions built in, including: rotation and translation, translation, rotation, zooming, 360° rotation, quaternion rotation, visibility, indicator light on, indicator light off, indicator light flashing, object flashing, etc. An animation action includes a start time field, which allows the animation to not be executed immediately after activation, but to wait for a period of time before starting to execute. Using the above fields, multiple animation actions can be combined more conveniently so that the preset actions are executed in sequence.

示例性的,更新状态值到本文和状态值操作经常一起出现,放在状态值操作之后,是将某个状态值的值显示到场景中某个文本对象上。For example, updating the state value to text and the state value operation often appear together and are placed after the state value operation to display the value of a certain state value on a text object in the scene.

示例性的,某些组合面板上包括显示屏,通过按下按键,对该显示屏的内容修改,按下按键修改的是状态值,使用状态值操作动作实现。状态值修改后还要显示到显示屏上,采用更新状态值到文本来实现。For example, some combination panels include a display screen, and by pressing a button, the content of the display screen is modified. The state value is modified by pressing the button, and the state value operation action is implemented. After the state value is modified, it is also displayed on the display screen, which is implemented by updating the state value to text.

具体的,进程管理模块调用脚本解析器对XML脚本文件进行解析,包括:根据对应的装备故障维修训练科目的脚本文件的路径,进程管理模块调用脚本解析器,获取解析后的脚本内容;基于初始化信息,初始化对应的装备故障维修训练科目的UI和三维场景;基于UI和三维场景,注册事件提供者。Specifically, the process management module calls the script parser to parse the XML script file, including: according to the path of the script file of the corresponding equipment fault maintenance training subject, the process management module calls the script parser to obtain the parsed script content; based on the initialization information, initializes the UI and three-dimensional scene of the corresponding equipment fault maintenance training subject; based on the UI and three-dimensional scene, registers the event provider.

在步骤103中,基于解析后脚本内容,对装备故障维修训练科目的步骤进行更新;进程管理模块对装备故障维修训练的操作步骤按照预设调度规则进行调度管理。In step 103, based on the parsed script content, the steps of the equipment fault maintenance training subject are updated; the process management module schedules and manages the operation steps of the equipment fault maintenance training according to the preset scheduling rules.

具体的,基于解析后的脚本内容,对上述装备故障维修训练科目的步骤进行更新,包括:Specifically, based on the parsed script content, the steps of the above equipment failure maintenance training subject are updated, including:

进程管理模块注册Update函数;进程管理模块利用Update函数遍历事件提供者,获取当前一帧的新事件的列表;新事件为所述事件提供者采集的外部输入事件;在新事件的列表中,插入空事件;所述空事件,在系统运行的每一帧生成,并传递给无条件运行的步骤;进程管理模块获取所述装备故障维修训练科目的当前步骤第一状态,若当前步骤为未激活状态,激活当前步骤;步骤第一状态包括激活和未激活。The process management module registers the Update function; the process management module uses the Update function to traverse the event provider and obtain a list of new events in the current frame; the new event is an external input event collected by the event provider; in the list of new events, an empty event is inserted; the empty event is generated in each frame of the system operation and passed to the unconditional operation step; the process management module obtains the first state of the current step of the equipment fault maintenance training subject, and if the current step is in an inactivated state, activates the current step; the first state of the step includes activated and inactivated.

若当前步骤为激活状态,进程管理模块按照预设时间周期循环调用Update函数对装备故障维修训练科目的步骤进行更新;进程管理模块调用Update函数,进行新事件与装备故障维修训练科目的当前步骤的条件的匹配;匹配完成后,更新装备故障维修训练科目的步骤的对应动作。If the current step is in the activated state, the process management module calls the Update function cyclically according to the preset time period to update the steps of the equipment fault maintenance training subject; the process management module calls the Update function to match the new event with the conditions of the current step of the equipment fault maintenance training subject; after the matching is completed, the corresponding action of the step of the equipment fault maintenance training subject is updated.

其中,上述步骤状态定义都被子类型步骤继承,每一种步骤在某一刻,有且仅有以上其中一种状态。The above step status definitions are inherited by all subtype steps. Each step has only one of the above statuses at a certain moment.

具体地,匹配完成后,更新装备故障维修训练科目的步骤的对应动作,包括:Specifically, after the matching is completed, the corresponding actions of the step of updating the equipment failure maintenance training subject include:

匹配完成后,获取装备故障维修训练科目的当前步骤第二状态;当前步骤第二状态包括执行动作中和执行完毕;基于获取的当前步骤第二状态,更新装备故障维修训练科目的当前步骤的对应动作。After the matching is completed, the second state of the current step of the equipment fault maintenance training subject is obtained; the second state of the current step includes executing the action and completing the execution; based on the obtained second state of the current step, the corresponding action of the current step of the equipment fault maintenance training subject is updated.

更新装备故障维修训练科目的当前步骤的对应动作,包括:Update the corresponding actions of the current step of the equipment failure maintenance training course, including:

若当前步骤状态为执行完毕,则结束当前一帧所述当前步骤更新;若当前步骤更状态在执行动作中,则等待进程管理模块下一帧调用Update函数对装备故障维修训练科目的下一步骤进行更新。If the current step status is completed, the current step update of the current frame is ended; if the current step status is in execution, the process management module is waited for the next frame to call the Update function to update the next step of the equipment fault maintenance training subject.

当进程管理模块下一帧调用Update函数对装备故障维修训练科目的下一步骤进行更新时,下一步骤为当前步骤。When the process management module calls the Update function in the next frame to update the next step of the equipment failure maintenance training subject, the next step is the current step.

具体的,匹配完成后,装备故障维修训练科目的步骤的对应动作进行更新,还包括:根据装备故障维修训练科目的的步骤类型,更新当前步骤类型的对应动作;装备故障维修训练科目的步骤的类型为与新事件对应的预先设定的步骤类型,预先设定的步骤类型包括:抽象逻辑步骤、组合步骤;所述抽象逻辑步骤包括逻辑步骤和循环步骤;组合步骤包括串行组合步骤和并行组合步骤;并行组合步骤包括并行全部步骤、并行指定步骤和并行随机步骤。Specifically, after the matching is completed, the corresponding actions of the steps of the equipment fault maintenance training subject are updated, and also include: according to the step type of the equipment fault maintenance training subject, updating the corresponding actions of the current step type; the step type of the equipment fault maintenance training subject is a pre-set step type corresponding to the new event, and the pre-set step type includes: abstract logic steps, combination steps; the abstract logic steps include logic steps and loop steps; combination steps include serial combination steps and parallel combination steps; parallel combination steps include parallel all steps, parallel specified steps and parallel random steps.

装备故障维修训练科目的步骤的对应动作包括装备故障维修训练动画动作和更新状态值。The corresponding actions of the steps of the equipment failure repair training subject include equipment failure repair training animation actions and updating status values.

其中,为了步骤分类层次合理,抽象逻辑步骤抽象了逻辑步骤和循环步骤的共有属性和方法;组合步骤抽象了“步骤组合”的共有属性和方法,组合步骤包括一个子步骤列表,存储属于该步骤的子步骤。Among them, in order to make the step classification hierarchy reasonable, the abstract logic step abstracts the common attributes and methods of the logic step and the loop step; the combination step abstracts the common attributes and methods of the "step combination", and the combination step includes a sub-step list that stores the sub-steps belonging to the step.

其中,如图2所示,对于逻辑步骤,推进逻辑步骤的对应动作,包括:As shown in FIG2 , for a logic step, corresponding actions for advancing the logic step include:

获取装备故障维修训练科目的步骤状态;若装备故障维修训练科目的步骤状态为执行动作中,推进装备故障维修训练科目的步骤的对应的所有动作;推进装备故障维修训练科目的步骤的对应的所有动作后,判断装备故障维修训练科目的步骤的对应的所有动作是否全部执行完毕;如果装备故障维修训练科目的步骤的对应的所有动作全部执行完毕,设置装备故障维修训练科目的操作步骤完成;如果装备故障维修训练科目的步骤的对应动作未全部执行完毕,结束当前动作更新;装备故障维修训练科目的步骤的对应的所有动作包括装备故障维修训练动画动作和更新状态值。Get the step status of the equipment fault maintenance training subject; if the step status of the equipment fault maintenance training subject is in execution, advance all actions corresponding to the steps of the equipment fault maintenance training subject; after advancing all actions corresponding to the steps of the equipment fault maintenance training subject, determine whether all actions corresponding to the steps of the equipment fault maintenance training subject have been fully executed; if all actions corresponding to the steps of the equipment fault maintenance training subject have been fully executed, set the operation steps of the equipment fault maintenance training subject to completion; if all actions corresponding to the steps of the equipment fault maintenance training subject have not been fully executed, end the current action update; all actions corresponding to the steps of the equipment fault maintenance training subject include equipment fault maintenance training animation actions and update status values.

若装备故障维修训练科目的步骤状态为已激活,判断新事件是否与装备故障维修训练科目的步骤的条件匹配;如果新事件与装备故障维修训练科目的步骤的条件匹配,激活步骤的对应的所有动作,并设置步骤状态为执行动作中;如果新事件与装备故障维修训练科目的步骤的条件不匹配,退出此步骤更新。If the step status of the equipment fault maintenance training subject is activated, determine whether the new event matches the conditions of the step of the equipment fault maintenance training subject; if the new event matches the conditions of the step of the equipment fault maintenance training subject, activate all corresponding actions of the step and set the step status to executing action; if the new event does not match the conditions of the step of the equipment fault maintenance training subject, exit this step update.

示例性的,现有工具1和工具2,配件1和配件2,预设条件为工具1点选配件1,工具2点选配件2;若用户操作时用工具1点选配件2,工具2点选配件1则新事件与装备故障维修训练科目的步骤的条件不匹配;若用户操作时用工具1点选配件1,用工具1点选配件2则新事件与装备故障维修训练科目的步骤的条件仍不匹配,退出此步骤更新;只有当工具1点选配件1,工具2点选配件2才满足预设条件,激活当前步骤的对应的所有动作,并设置步骤状态为执行动作中,继续推进接下来的动作。Exemplarily, there are tool 1 and tool 2, accessory 1 and accessory 2, and the preset condition is that tool 1 clicks accessory 1, and tool 2 clicks accessory 2; if the user uses tool 1 to click accessory 2, and tool 2 clicks accessory 1, the new event does not match the conditions of the steps of the equipment failure maintenance training subject; if the user uses tool 1 to click accessory 1, and tool 1 to click accessory 2, the new event still does not match the conditions of the steps of the equipment failure maintenance training subject, and this step update is exited; only when tool 1 clicks accessory 1 and tool 2 clicks accessory 2, the preset condition is met, all corresponding actions of the current step are activated, and the step status is set to executing action, and the next action is continued.

其中,如图3所示,对于循环步骤,推进循环步骤的对应动作,包括:As shown in FIG3 , for the loop step, the corresponding action of advancing the loop step includes:

获取装备故障维修训练科目的步骤状态;若装备故障维修训练科目的步骤状态为执行动作中,推进装备故障维修训练科目的步骤的对应动作;推进装备故障维修训练科目的步骤的对应动作后,判断此步骤的对应动作是否全部执行完毕;如果装备故障维修训练科目的步骤的对应动作执行完毕,设置当前步骤完成;如果所有动作未执行完毕,结束当前步骤更新。Get the step status of the equipment fault maintenance training subject; if the step status of the equipment fault maintenance training subject is in execution, advance the corresponding action of the step of the equipment fault maintenance training subject; after advancing the corresponding action of the step of the equipment fault maintenance training subject, determine whether the corresponding action of this step has been fully executed; if the corresponding action of the step of the equipment fault maintenance training subject has been fully executed, set the current step to complete; if all actions have not been completed, end the current step update.

若装备故障维修训练科目的步骤状态为已激活状态,推进装备故障维修训练科目的步骤的子步骤,并更新所有动作对应的的所有条件,所有条件包括预设步骤结果和预设条件;综合子步骤结果和条件进行判断,若子步骤结果满足预设步骤结果,且条件满足预设条件,则激活所有动作,并设置步骤状态为执行动作中。If the step status of the equipment fault maintenance training subject is activated, advance the sub-steps of the step of the equipment fault maintenance training subject, and update all conditions corresponding to all actions, all conditions include preset step results and preset conditions; make a judgment based on the sub-step results and conditions. If the sub-step results meet the preset step results and the conditions meet the preset conditions, activate all actions and set the step status to executing actions.

示例性的,现有工具1和工具2,配件1和配件2,显示器,预设条件为工具1点选配件1,工具2点选配件2,显示器显示数值m;若用户操作时用工具1点选配件1,工具2点选配件2,操作完显示器显示结果数值为n,n与m不相等,不满足预设条件;若用户操作时用工具1点选配件1,工具2点选配件2,操作完显示器显示结果数值为n,n与m相等,才满足预设条件,激活装备故障维修训练科目的步骤的对应的所有动作,并设置装备故障维修训练科目的步骤状态为执行动作中,继续推进接下来的动作,即满足所有条件包括同时满足预设步骤结果和预设条件;上述预设条件为装备故障维修训练科目的步骤的条件。Exemplarily, there are existing tools 1 and tool 2, accessory 1 and accessory 2, and a display, and the preset condition is that tool 1 clicks accessory 1, tool 2 clicks accessory 2, and the display displays the value m; if the user uses tool 1 to click accessory 1 and tool 2 to click accessory 2, and the display displays a result value of n after the operation, n and m are not equal, and the preset condition is not met; if the user uses tool 1 to click accessory 1 and tool 2 to click accessory 2, and the display displays a result value of n after the operation, n and m are equal, then the preset condition is met, all corresponding actions of the steps of the equipment fault maintenance training subject are activated, and the step status of the equipment fault maintenance training subject is set to executing action, and the next action is continued, that is, all conditions are met, including simultaneously meeting the preset step results and preset conditions; the above preset conditions are the conditions of the steps of the equipment fault maintenance training subject.

其中,如图4所示,对于串行组合步骤,推进串行组合步骤的对应动作,包括:As shown in FIG4 , for the serial combination step, the corresponding action of advancing the serial combination step includes:

获取装备故障维修训练科目的步骤状态;如果装备故障维修训练科目的步骤状态是未激活,退出装备故障维修训练科目的步骤执行;如果步骤状态是已激活,获取当前子步骤;如果子步骤状态是未激活,激活子步骤,并调用子步骤更新;判断当前子步骤是否更新完成,如果当前子步骤未完成,退出装备故障维修训练科目的步骤执行;如果当前子步骤已完成,判断所有子步骤是否完成;如果所有子步骤未完成,当前子步骤加一;如果所有子步骤完成,串行组合步骤完成。Get the step status of the equipment fault maintenance training subject; if the step status of the equipment fault maintenance training subject is inactive, exit the step execution of the equipment fault maintenance training subject; if the step status is activated, get the current sub-step; if the sub-step status is inactive, activate the sub-step, and call the sub-step update; determine whether the current sub-step has been updated; if the current sub-step is not completed, exit the step execution of the equipment fault maintenance training subject; if the current sub-step has been completed, determine whether all sub-steps have been completed; if all sub-steps are not completed, add one to the current sub-step; if all sub-steps are completed, the serial combination step is completed.

应理解,串行组合步骤就是将一组子步骤按照顺序逐个执行。It should be understood that a serial combination step is to execute a group of sub-steps one by one in sequence.

其中,如图5所示,对于并行组合步骤,推进并行组合步骤的对应动作,包括:As shown in FIG5 , for the parallel combination step, the corresponding action of advancing the parallel combination step includes:

遍历装备故障维修训练科目的子步骤;判断子步骤状态,若装备故障维修训练科目的的子步骤状态为未激活,激活装备故障维修训练科目的子步骤;推进该子步骤;完成遍历所有子步骤之后,若必须完成的子步骤状态为执行完毕,装备故障维修训练科目的并行组合步骤完成;上述必须完成的子步骤可以为全部子步骤,指定子步骤或随机子步骤。Traverse the sub-steps of the equipment failure maintenance training subject; determine the status of the sub-steps, if the status of the sub-steps of the equipment failure maintenance training subject is not activated, activate the sub-steps of the equipment failure maintenance training subject; advance the sub-steps; after traversing all the sub-steps, if the status of the sub-steps that must be completed is completed, the parallel combination steps of the equipment failure maintenance training subject are completed; the above-mentioned sub-steps that must be completed can be all sub-steps, specified sub-steps or random sub-steps.

示例性的,在拆卸流程中,可以先拆A,也可以先拆卸B,拆卸A需要三步,拆卸B需要三步,可以将拆卸A的三步组织为一个串行组合步骤,拆卸B的三步也组织为一个串行组合步骤,然后将两个串行组合步骤组织成一个并行组合步骤。这样在训练的过程中,拆A和B的顺序不再固定死,增加了灵活性。串行组合步骤通常用于将子流程组织起来,作为并行组合步骤的子流程。For example, in the disassembly process, A can be disassembled first, or B can be disassembled first. Disassembly of A requires three steps, and disassembly of B requires three steps. The three steps of disassembly of A can be organized into a serial combination step, and the three steps of disassembly of B can also be organized into a serial combination step, and then the two serial combination steps can be organized into a parallel combination step. In this way, during the training process, the order of disassembly of A and B is no longer fixed, which increases flexibility. The serial combination step is usually used to organize sub-processes as sub-processes of the parallel combination step.

示例性的,针对上述情况,同时拆A和B两个组合,既可以先拆A再拆B,也可以先拆B再拆A,还可以两个子流程穿插进行。Exemplarily, for the above situation, the two combinations of A and B can be disassembled at the same time. A can be disassembled first and then B, or B can be disassembled first and then A, or the two sub-processes can be performed alternately.

示例性的,并行组合步骤在同一时刻,所有子步骤都是激活的,可以并行执行。根据结束条件不同,可以区分为并行全部步骤,并行指定步骤和并行随机步骤。并行全部步骤是所有子步骤全部激活,同时执行,直到所有的子步骤全部执行完毕,该步骤才执行完毕;并行指定步骤是所有子步骤全部激活,同时执行,当指定的一个子步骤执行完毕后,无论其他子步骤的执行状态,该步骤执行完毕;并行随机步骤是所有子步骤全部激活,同时执行,并行随机步骤在激活时,产生一个随机数,该随机数用于指定子步骤,指定的子步骤执行完毕后,该步骤执行完毕。Exemplarily, in the parallel combination step, all sub-steps are activated at the same time and can be executed in parallel. According to different ending conditions, it can be divided into parallel all steps, parallel specified steps and parallel random steps. Parallel all steps means that all sub-steps are activated and executed at the same time, and the step is not completed until all sub-steps are completed; parallel specified steps means that all sub-steps are activated and executed at the same time. When a specified sub-step is completed, the step is completed regardless of the execution status of other sub-steps; parallel random steps means that all sub-steps are activated and executed at the same time. When the parallel random step is activated, a random number is generated. The random number is used to specify the sub-step. When the specified sub-step is completed, the step is completed.

示例性的,对于同一故障现象,可能存在两种故障原因,为了使得训练过程不固化,在每次训练时,故障原因随机变化,通过并行随机步骤,随机选择一个故障原因所需的维修流程,只有完成该维修过程,科目才训练完成。For example, for the same fault phenomenon, there may be two fault causes. In order to prevent the training process from becoming rigid, the fault cause changes randomly during each training. Through parallel random steps, a maintenance process required for one fault cause is randomly selected. Only after the maintenance process is completed, the subject training is completed.

具体的,进程管理模块包含一个训练科目串行组合步骤;一个训练科目串行组合步骤用于存储装备故障维修训练的所有操作步骤;所述操作步骤具有多种步骤类型,根据不同类型步骤预设关系相互嵌套。Specifically, the process management module includes a training subject serial combination step; a training subject serial combination step is used to store all operation steps of equipment fault maintenance training; the operation steps have multiple step types, which are nested with each other according to preset relationships of different types of steps.

应理解,上述各个实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

对应于上文实施例所述的装备虚拟训练建模方法,图6示出了本申请实施例提供的装备虚拟训练建模装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the equipment virtual training modeling method described in the above embodiment, FIG6 shows a structural block diagram of the equipment virtual training modeling device provided in the embodiment of the present application. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

参见图6,本申请实施例中的装备虚拟训练建模装置可以包括请求输入模块201、解析模块202和进程管理模块203。6 , the equipment virtual training modeling device in the embodiment of the present application may include a request input module 201 , a parsing module 202 and a process management module 203 .

其中,请求获取模块201,用于根据预先定义的装备故障维修规则,定义装备故障维修训练科目的XML脚本文件;解析模块202,用于通过进程管理模块调用脚本解析器对所述XML脚本文件进行解析,获取脚本内容;所述脚本内容包括初始化信息、步骤、条件、动作和状态值;进程管理模块203,用于基于解析后脚本内容,对所述装备故障维修训练科目的步骤进行更新;所述进程管理模块对所述装备故障维修训练的操作步骤按照预设调度规则进行调度管理。Among them, the request acquisition module 201 is used to define the XML script file of the equipment fault maintenance training subject according to the pre-defined equipment fault maintenance rules; the parsing module 202 is used to parse the XML script file by calling the script parser through the process management module to obtain the script content; the script content includes initialization information, steps, conditions, actions and status values; the process management module 203 is used to update the steps of the equipment fault maintenance training subject based on the parsed script content; the process management module schedules and manages the operation steps of the equipment fault maintenance training according to the preset scheduling rules.

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

本申请实施例还提供了一种终端设备,参见图7,该终端设备300可以包括:至少一个处理器310、存储器320以及存储在所述存储器320中并可在所述至少一个处理器310上运行的计算机程序,所述处理器310执行所述计算机程序时实现上述任意各个方法实施例中的步骤,例如图1所示实施例中的步骤101至步骤103。或者,处理器310执行所述计算机程序时实现上述各装置实施例中各模块/单元的功能,例如图6所示模块201至203的功能。The embodiment of the present application also provides a terminal device, see FIG7, the terminal device 300 may include: at least one processor 310, a memory 320, and a computer program stored in the memory 320 and executable on the at least one processor 310, the processor 310 implements the steps in any of the above-mentioned method embodiments when executing the computer program, such as steps 101 to 103 in the embodiment shown in FIG1. Alternatively, when the processor 310 executes the computer program, the functions of the modules/units in the above-mentioned device embodiments are implemented, such as the functions of modules 201 to 203 shown in FIG6.

示例性的,计算机程序可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器320中,并由处理器310执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序段,该程序段用于描述计算机程序在终端设备300中的执行过程。Exemplarily, the computer program may be divided into one or more modules/units, one or more modules/units are stored in the memory 320, and executed by the processor 310 to complete the present application. The one or more modules/units may be a series of computer program segments that can complete specific functions, and the program segments are used to describe the execution process of the computer program in the terminal device 300.

本领域技术人员可以理解,图7仅仅是终端设备的示例,并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如输入输出设备、网络接入设备、总线等。Those skilled in the art will understand that FIG. 7 is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, buses, etc.

处理器310可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 310 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

存储器320可以是终端设备的内部存储单元,也可以是终端设备的外部存储设备,例如插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。所述存储器320用于存储所述计算机程序以及终端设备所需的其他程序和数据。所述存储器320还可以用于暂时地存储已经输出或者将要输出的数据。The memory 320 may be an internal storage unit of the terminal device, or an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. The memory 320 is used to store the computer program and other programs and data required by the terminal device. The memory 320 may also be used to temporarily store data that has been output or is to be output.

总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述数据运算方法各个实施例中的步骤。An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each embodiment of the above-mentioned data operation method can be implemented.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述数据运算方法各个实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in each embodiment of the above-mentioned data operation method when executing the computer program product.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present application, it should be understood that the disclosed devices/network equipment and methods can be implemented in other ways. For example, the device/network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims (8)

1.一种装备虚拟训练建模方法,其特征在于,包括:1. A method for modeling equipment virtual training, comprising: 根据预先定义的装备故障维修规则,定义装备故障维修训练科目的XML脚本文件;Define the XML script file of equipment failure maintenance training subjects according to the pre-defined equipment failure maintenance rules; 通过进程管理模块调用脚本解析器对所述XML脚本文件进行解析,获取脚本内容;所述脚本内容包括初始化信息、步骤、条件、动作和状态值;The process management module calls the script parser to parse the XML script file to obtain the script content; the script content includes initialization information, steps, conditions, actions and status values; 所述进程管理模块调用脚本解析器对所述XML脚本文件进行解析,包括:The process management module calls the script parser to parse the XML script file, including: 根据所述装备故障维修训练科目的脚本文件的路径,所述进程管理模块调用所述脚本解析器,获取解析后的脚本内容;According to the path of the script file of the equipment failure maintenance training subject, the process management module calls the script parser to obtain the parsed script content; 基于所述初始化信息,初始化所述装备故障维修训练科目的UI和三维场景;Initializing the UI and three-dimensional scene of the equipment failure maintenance training subject based on the initialization information; 基于所述UI和三维场景,注册事件提供者;Registering event providers based on the UI and the three-dimensional scene; 基于解析后的脚本内容,对所述装备故障维修训练科目的步骤进行更新;所述进程管理模块对所述装备故障维修训练的操作步骤按照预设调度规则进行调度管理;Based on the parsed script content, the steps of the equipment fault maintenance training subject are updated; the process management module schedules and manages the operation steps of the equipment fault maintenance training according to the preset scheduling rules; 所述基于解析后的脚本内容,对所述装备故障维修训练科目的步骤进行更新,包括:The updating of the steps of the equipment failure maintenance training subject based on the parsed script content includes: 所述进程管理模块注册Update函数;The process management module registers the Update function; 所述进程管理模块利用所述Update函数遍历所述事件提供者,获取当前一帧的新事件的列表;所述新事件为所述事件提供者采集的外部输入事件;The process management module uses the Update function to traverse the event provider to obtain a list of new events in the current frame; the new event is an external input event collected by the event provider; 在所述新事件的列表中,插入空事件;所述空事件,在系统运行的每一帧生成,并传递给无条件运行的步骤;Inserting an empty event into the list of new events; the empty event is generated in each frame of the system operation and passed to the step of unconditional operation; 所述进程管理模块获取所述装备故障维修训练科目的当前步骤的第一状态,若所述当前步骤为未激活状态,激活所述当前步骤;所述当前步骤的第一状态包括激活和未激活;The process management module obtains the first state of the current step of the equipment failure maintenance training subject, and activates the current step if the current step is in an inactive state; the first state of the current step includes activated and inactivated; 若所述当前步骤为激活状态,所述进程管理模块按照预设时间周期循环调用所述Update函数对所述装备故障维修训练科目的步骤进行更新;If the current step is in an activated state, the process management module cyclically calls the Update function according to a preset time period to update the steps of the equipment fault maintenance training subject; 所述进程管理模块调用所述Update函数,进行所述新事件与所述装备故障维修训练科目的所述当前步骤的条件的匹配;The process management module calls the Update function to match the new event with the condition of the current step of the equipment failure maintenance training subject; 匹配完成后,更新所述装备故障维修训练科目的步骤的对应动作。After the matching is completed, the corresponding actions of the steps of the equipment failure maintenance training subject are updated. 2.如权利要求1所述的装备虚拟训练建模方法,其特征在于,所述匹配完成后,更新所述装备故障维修训练科目的步骤的对应动作,包括:2. The equipment virtual training modeling method according to claim 1, characterized in that after the matching is completed, the corresponding action of the step of updating the equipment fault maintenance training subject includes: 所述匹配完成后,获取所述装备故障维修训练科目的所述当前步骤的第二状态;所述当前步骤的第二状态包括执行动作中和执行完毕;After the matching is completed, the second state of the current step of the equipment failure maintenance training subject is obtained; the second state of the current step includes being executed and completed; 基于获取的所述当前步骤的第二状态,更新所述装备故障维修训练科目的当前步骤的对应动作;Based on the acquired second state of the current step, updating the corresponding action of the current step of the equipment failure maintenance training subject; 所述更新所述装备故障维修训练科目的当前步骤的对应动作,包括:The corresponding actions of updating the current step of the equipment failure maintenance training subject include: 若所述当前步骤的状态为执行完毕,则结束当前一帧所述当前步骤更新;若所述当前步骤的状态为执行动作中,则等待所述进程管理模块下一帧调用所述Update函数对所述装备故障维修训练科目的下一步骤进行更新;If the status of the current step is completed, then the update of the current step in the current frame is terminated; if the status of the current step is in execution, then wait for the process management module to call the Update function in the next frame to update the next step of the equipment fault maintenance training subject; 当所述进程管理模块下一帧调用所述Update函数对所述装备故障维修训练科目的下一步骤进行更新时,所述下一步骤为所述当前步骤。When the process management module calls the Update function in the next frame to update the next step of the equipment failure maintenance training subject, the next step is the current step. 3.如权利要求2所述的装备虚拟训练建模方法,其特征在于,所述匹配完成后,所述装备故障维修训练科目的步骤的对应动作进行更新,还包括:3. The equipment virtual training modeling method according to claim 2, characterized in that after the matching is completed, the corresponding actions of the steps of the equipment fault maintenance training subject are updated, and further comprising: 根据所述装备故障维修训练科目的步骤类型,更新所述当前步骤类型的对应动作;According to the step type of the equipment failure maintenance training subject, updating the corresponding action of the current step type; 所述装备故障维修训练科目的步骤的类型为与所述新事件对应的预先设定的步骤类型,所述预先设定的步骤类型包括:抽象逻辑步骤、组合步骤;所述抽象逻辑步骤包括逻辑步骤和循环步骤;所述组合步骤包括串行组合步骤和并行组合步骤;所述并行组合步骤包括并行全部步骤、并行指定步骤和并行随机步骤;The type of the step of the equipment failure maintenance training subject is a pre-set step type corresponding to the new event, and the pre-set step type includes: abstract logic step and combination step; the abstract logic step includes logic step and loop step; the combination step includes serial combination step and parallel combination step; the parallel combination step includes parallel all steps, parallel specified steps and parallel random steps; 所述装备故障维修训练科目的步骤的对应动作包括所述装备故障维修训练动画动作和更新状态值。The corresponding actions of the steps of the equipment failure repair training subject include the equipment failure repair training animation actions and updated status values. 4.如权利要求1所述的装备虚拟训练建模方法,其特征在于,所述进程管理模块包含一个训练科目串行组合步骤;所述一个训练科目串行组合步骤用于存储所述装备故障维修训练的所有所述操作步骤;所述操作步骤具有多种步骤类型,根据不同类型步骤预设关系相互嵌套。4. The equipment virtual training modeling method as described in claim 1 is characterized in that the process management module includes a serial combination step of training subjects; the one serial combination step of training subjects is used to store all the operation steps of the equipment fault repair training; the operation steps have multiple step types, which are nested with each other according to preset relationships of different types of steps. 5.一种装备虚拟训练建模装置,其特征在于,包括:5. An equipment virtual training modeling device, characterized by comprising: 输入模块,用于根据预先定义的装备故障维修规则,定义装备故障维修训练科目的XML脚本文件;An input module, used to define an XML script file of equipment failure maintenance training subjects according to predefined equipment failure maintenance rules; 解析模块,用于通过进程管理模块调用脚本解析器对所述XML脚本文件进行解析,获取脚本内容;所述脚本内容包括初始化信息、步骤、条件、动作和状态值;A parsing module, used to parse the XML script file by calling the script parser through the process management module to obtain the script content; the script content includes initialization information, steps, conditions, actions and status values; 所述解析模块具体用于:The analysis module is specifically used for: 根据所述装备故障维修训练科目的脚本文件的路径,所述进程管理模块调用所述脚本解析器,获取解析后的脚本内容;According to the path of the script file of the equipment failure maintenance training subject, the process management module calls the script parser to obtain the parsed script content; 基于所述初始化信息,初始化所述装备故障维修训练科目的UI和三维场景;Initializing the UI and three-dimensional scene of the equipment failure maintenance training subject based on the initialization information; 基于所述UI和三维场景,注册事件提供者;Registering event providers based on the UI and the three-dimensional scene; 进程管理模块,用于基于解析后的脚本内容,对所述装备故障维修训练科目的步骤进行更新;所述进程管理模块对所述装备故障维修训练的操作步骤按照预设调度规则进行调度管理;A process management module is used to update the steps of the equipment fault maintenance training subject based on the parsed script content; the process management module schedules and manages the operation steps of the equipment fault maintenance training according to preset scheduling rules; 所述进程管理模块具体用于:The process management module is specifically used for: 注册Update函数;Register Update function; 利用所述Update函数遍历所述事件提供者,获取当前一帧的新事件的列表;所述新事件为所述事件提供者采集的外部输入事件;Using the Update function to traverse the event provider, obtain a list of new events in the current frame; the new events are external input events collected by the event provider; 在所述新事件的列表中,插入空事件;所述空事件,在系统运行的每一帧生成,并传递给无条件运行的步骤;Inserting an empty event into the list of new events; the empty event is generated in each frame of the system operation and passed to the step of unconditional operation; 获取所述装备故障维修训练科目的当前步骤的第一状态,若所述当前步骤为未激活状态,激活所述当前步骤;所述当前步骤的第一状态包括激活和未激活;Acquire the first state of the current step of the equipment failure maintenance training subject, and if the current step is in an inactive state, activate the current step; the first state of the current step includes activated and inactivated; 若所述当前步骤为激活状态,所述进程管理模块按照预设时间周期循环调用所述Update函数对所述装备故障维修训练科目的步骤进行更新;If the current step is in an activated state, the process management module cyclically calls the Update function according to a preset time period to update the steps of the equipment fault maintenance training subject; 调用所述Update函数,进行所述新事件与所述装备故障维修训练科目的所述当前步骤的条件的匹配;Calling the Update function to match the new event with the condition of the current step of the equipment failure maintenance training subject; 匹配完成后,更新所述装备故障维修训练科目的步骤的对应动作。After the matching is completed, the corresponding actions of the steps of the equipment failure maintenance training subject are updated. 6.一种终端设备,包括存储器和处理器,所述存储器中储存有可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至4任一项所述的方法。6. A terminal device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein the processor implements the method according to any one of claims 1 to 4 when executing the computer program. 7.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述的方法。7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 4. 8.一种装备虚拟训练建模系统,其特征在于,所述装备虚拟训练建模系统由权利要求6所述终端设备和其他实体设备构成。8. An equipment virtual training modeling system, characterized in that the equipment virtual training modeling system is composed of the terminal device according to claim 6 and other physical devices.
CN202210528336.XA 2022-05-16 2022-05-16 Equipment virtual training modeling method, device, terminal equipment and system Active CN114968005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210528336.XA CN114968005B (en) 2022-05-16 2022-05-16 Equipment virtual training modeling method, device, terminal equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210528336.XA CN114968005B (en) 2022-05-16 2022-05-16 Equipment virtual training modeling method, device, terminal equipment and system

Publications (2)

Publication Number Publication Date
CN114968005A CN114968005A (en) 2022-08-30
CN114968005B true CN114968005B (en) 2024-11-05

Family

ID=82982925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210528336.XA Active CN114968005B (en) 2022-05-16 2022-05-16 Equipment virtual training modeling method, device, terminal equipment and system

Country Status (1)

Country Link
CN (1) CN114968005B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6892230B1 (en) * 1999-06-11 2005-05-10 Microsoft Corporation Dynamic self-configuration for ad hoc peer networking using mark-up language formated description messages
US8739049B2 (en) * 2010-05-24 2014-05-27 GM Global Technology Operations LLC Vehicle system modeling systems and methods
JP5812797B2 (en) * 2011-10-14 2015-11-17 キヤノン株式会社 Information processing system, image processing apparatus, control method, computer program, and user apparatus
KR101418484B1 (en) * 2012-12-26 2014-07-14 한국항공우주산업 주식회사 Virtual training simulator and method of aircraft maintenance education using the same
CN104503442B (en) * 2014-12-25 2017-06-27 中国人民解放军军械工程学院 Fault Diagnosis Training Method for Ordnance Equipment
CN105160139B (en) * 2015-10-16 2018-03-23 中国电子科技集团公司第三十八研究所 A kind of visual human's maintenance action hybrid driving method
CN110349467B (en) * 2019-07-12 2020-10-20 中国民用航空飞行学院 A general aviation maintenance training system and method based on augmented reality
CN112180776B (en) * 2020-08-19 2023-01-03 北京航空航天大学 OPC UA information modeling method and device based on equipment component module
CN112085983B (en) * 2020-09-29 2021-04-06 北京森合智源技术有限公司 Virtual-real combination-based automobile virtual simulation teaching cloud service platform system
CN113053205A (en) * 2021-03-02 2021-06-29 中国人民解放军海军航空大学航空作战勤务学院 Air combat confrontation virtual training system based on virtual reality VR

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
航空虚拟维修系统关键技术;刘钡钡等;计算机集成制造系统;20210115;第18卷(第1期);第47-57页,图3、4、7 *

Also Published As

Publication number Publication date
CN114968005A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
CN108628605A (en) Stream data processing method, device, server and medium
CN109152061B (en) Channel deployment method, device, server and storage medium
CN113434396A (en) Interface test method, device, equipment, storage medium and program product
CN114691308A (en) Online task scheduling method and online task scheduling device
CN111913998B (en) Data processing method, device, equipment and storage medium
CN111507676A (en) Method, device, storage medium and system for establishing and implementing business order flow
US8745537B1 (en) Graphical interface for managing and monitoring the status of a graphical model
CN116009852A (en) Code construction method, device, computer equipment and storage medium
CN116884107A (en) A service resource automatic inspection system, method, terminal and storage medium
CN114371939A (en) Task processing method, device, electronic device, storage medium and program product
CN116931920A (en) Business logic object processing method and device, electronic equipment and storage medium
CN113190427A (en) Caton monitoring method and device, electronic equipment and storage medium
CN115599401A (en) Publishing method, device, equipment and medium of user-defined model
CN114968005B (en) Equipment virtual training modeling method, device, terminal equipment and system
CN110309062A (en) Use case generation method, device, electronic device and storage medium
CN109614094A (en) A kind of GPU glCallList view model based on UML
CN112631949B (en) Debugging method and device, computer equipment and storage medium
CN115687224A (en) Asynchronous processing flow generation method and device
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN115269390A (en) A kind of graphical interface automatic testing method, device and storage medium
CN114691344A (en) Task scheduling method and task scheduling device
CN114491703A (en) Method and device for acquiring bill of material (BOM) information, electronic equipment and medium
CN112882960A (en) Data acquisition method and device
CN112988139A (en) Method and device for developing event processing file

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