CN113342332B - An implementation method for customizable multi-interfaces based on model-driven components - Google Patents
An implementation method for customizable multi-interfaces based on model-driven components Download PDFInfo
- Publication number
- CN113342332B CN113342332B CN202110605053.6A CN202110605053A CN113342332B CN 113342332 B CN113342332 B CN 113342332B CN 202110605053 A CN202110605053 A CN 202110605053A CN 113342332 B CN113342332 B CN 113342332B
- Authority
- CN
- China
- Prior art keywords
- interfaces
- interface
- component
- idl
- idl file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/72—Code refactoring
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical field
本发明涉及软件无线电领域,具体涉及一种基于模型驱动的组件可定制多接口的实现方法。The invention relates to the field of software radio, and in particular to a method for implementing component-customizable multi-interfaces based on model driving.
背景技术Background technique
目前基于波形组件接口定制的实现方式,已不再需要实现所有接口,虽然这样降低了调试难度,解决了代码冗余的问题,也减少了开发期的工作量;但当组件遇到特殊需求时,可能会被需求提供多个接口,且每个接口的属性以及所实现的功能并不相同,这将大大增加开发的工作量,如使用现有的实现方式,从代码开发的角度来看,则很可能会增加了调试期间的难度。The current implementation method based on waveform component interface customization no longer requires the implementation of all interfaces. Although this reduces the difficulty of debugging, solves the problem of code redundancy, and reduces the workload during the development period; but when the component encounters special needs , you may be required to provide multiple interfaces, and the attributes and functions implemented by each interface are different, which will greatly increase the development workload. For example, if you use the existing implementation method, from the perspective of code development, It is likely to increase the difficulty during debugging.
发明内容Contents of the invention
针对现有技术中的上述不足,本发明提供的一种基于模型驱动的组件可定制多接口的实现方法解决了组件接口增加困难的问题。In view of the above-mentioned deficiencies in the prior art, the present invention provides a model-driven component customizable multi-interface implementation method that solves the problem of difficulty in adding component interfaces.
为了达到上述发明目的,本发明采用的技术方案为:In order to achieve the above-mentioned object of the invention, the technical solutions adopted by the present invention are:
提供一种基于模型驱动的组件可定制多接口的实现方法,其包括以下步骤:Provide an implementation method based on model-driven component customizable multiple interfaces, which includes the following steps:
S1、根据要创建的组件中接口所需的交互式数据语言进行参数配置,建立IDL文件;S1. Configure parameters according to the interactive data language required for the interface in the component to be created, and create an IDL file;
S2、基于SCA4建模平台工具的标准,在属性栏中添加Relationships窗口栏;其中Relationships窗口栏为分层结构;S2. Based on the standards of SCA4 modeling platform tools, add the Relationships window bar in the property bar; the Relationships window bar has a hierarchical structure;
S3、将要创建的组件中接口所需属性的名称、类型和相关联组件共同设置在Relationships窗口栏中;S3. Set the name, type and associated components of the properties required for the interface in the component to be created in the Relationships window bar;
S4、调用增删改方法将组件设立若干个接口,采用IDL文件对接口进行配置;配置内容包括接口的类型以及管理的元素;S4. Call the addition, deletion and modification methods to set up several interfaces for the component, and use IDL files to configure the interfaces; the configuration content includes the type of interface and management elements;
S5、通过在Relationships窗口栏中选择接口不同的名称或类型实现接口功能的切换,完成组件可定制多接口的实现。S5. By selecting different names or types of interfaces in the Relationships window bar, the interface functions can be switched to complete the implementation of customizable multi-interfaces in the component.
进一步地,步骤S4中采用IDL文件对接口进行配置的具体方法为:Further, the specific method of using the IDL file to configure the interface in step S4 is:
对于单个接口,直接创建并选择IDL文件库中文件进行参数配置;For a single interface, directly create and select the file in the IDL file library for parameter configuration;
对于特殊接口,在进行参数配置后,通过关联性中的Add方法添加IDL文件进入组件的接口;For special interfaces, after parameter configuration, add the IDL file into the component's interface through the Add method in the correlation;
对于若干个接口,将其拆分为单个接口,并分别为每个接口创建并选择IDL文件库中文件进行参数配置。For several interfaces, split them into individual interfaces, create and select files in the IDL file library for each interface to configure parameters.
进一步地,步骤S4与步骤S5之间还包括步骤:Further, between step S4 and step S5, there are also steps:
S4.5、设置用于查看IDL文具所选择对应的接口的分词搜索模块。S4.5. Set up a word segmentation search module for viewing the interface selected by IDL stationery.
本发明的有益效果为:本方法通过建模的方式创建接口,对接口的属性进行增删改,同时也可以对接口所需设置的定制IDL文件通过建模的方式进行创建,这种通过建模的方式不仅不需要实现组件的所有接口,还能通过建模的方式对接口的功能进行随时修改,这代表着在调试期间开发人员能深切体会到这种方法的灵活性,在原有基础上的提升,不仅大大提高了开发期的效率,充分节省了开发周期,而且在调试期间还能不断通过建模方式对接口进行优化。The beneficial effects of the present invention are: this method creates an interface through modeling, adds, deletes, and modifies the attributes of the interface. At the same time, it can also create customized IDL files required for the interface through modeling. This method uses modeling to create interfaces. This method not only does not require the implementation of all interfaces of the component, but also allows the interface functions to be modified at any time through modeling. This means that developers can deeply appreciate the flexibility of this method during debugging. The improvement not only greatly improves the efficiency of the development period and fully saves the development cycle, but also continuously optimizes the interface through modeling during debugging.
附图说明Description of drawings
图1为本方法的流程示意图;Figure 1 is a schematic flow chart of this method;
图2为IDL文件的创建原理示意图;Figure 2 is a schematic diagram of the creation principle of an IDL file;
图3为IDL文件的创建过程示意图;Figure 3 is a schematic diagram of the creation process of IDL files;
图4为模型组件添加多个接口的原理示意图;Figure 4 is a schematic diagram of the principle of adding multiple interfaces to the model component;
图5为模型组件添加多个接口的过程示意图。Figure 5 is a schematic diagram of the process of adding multiple interfaces to the model component.
具体实施方式Detailed ways
下面对本发明的具体实施方式进行描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。The specific embodiments of the present invention are described below to facilitate those skilled in the art to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the technical field, as long as various changes These changes are obvious within the spirit and scope of the invention as defined and determined by the appended claims, and all inventions and creations utilizing the concept of the invention are protected.
如图1所示,该基于模型驱动的组件可定制多接口的实现方法包括以下步骤:As shown in Figure 1, the implementation method of customizable multi-interfaces based on model-driven components includes the following steps:
S1、根据要创建的组件中接口所需的交互式数据语言进行参数配置,建立IDL文件;S1. Configure parameters according to the interactive data language required for the interface in the component to be created, and create an IDL file;
S2、基于SCA4建模平台工具的标准,在属性栏中添加Relationships窗口栏;其中Relationships窗口栏为分层结构;S2. Based on the standards of SCA4 modeling platform tools, add the Relationships window bar in the property bar; the Relationships window bar has a hierarchical structure;
S3、将要创建的组件中接口所需属性的名称、类型和相关联组件共同设置在Relationships窗口栏中;S3. Set the name, type and associated components of the properties required for the interface in the component to be created in the Relationships window bar;
S4、调用增删改方法将组件设立若干个接口,采用IDL文件对接口进行配置;配置内容包括接口的类型以及管理的元素;S4. Call the addition, deletion and modification methods to set up several interfaces for the component, and use IDL files to configure the interfaces; the configuration content includes the type of interface and management elements;
S5、通过在Relationships窗口栏中选择接口不同的名称或类型实现接口功能的切换,完成组件可定制多接口的实现。S5. By selecting different names or types of interfaces in the Relationships window bar, the interface functions can be switched to complete the implementation of customizable multi-interfaces in the component.
步骤S4中采用IDL文件对接口进行配置的具体方法为:The specific method of using the IDL file to configure the interface in step S4 is:
对于单个接口,直接创建并选择IDL文件库中文件进行参数配置;For a single interface, directly create and select the file in the IDL file library for parameter configuration;
对于特殊接口,在进行参数配置后,通过关联性中的Add方法添加IDL文件进入组件的接口;For special interfaces, after parameter configuration, add the IDL file into the component's interface through the Add method in the correlation;
对于若干个接口,将其拆分为单个接口,并分别为每个接口创建并选择IDL文件库中文件进行参数配置。For several interfaces, split them into individual interfaces, create and select files in the IDL file library for each interface to configure parameters.
在本发明的一个实施例中,步骤S4与步骤S5之间还包括步骤:S4.5、设置用于查看IDL文具所选择对应的接口的分词搜索模块。分词搜索模块同时匹配多个可选择的接口类型。In one embodiment of the present invention, the step between step S4 and step S5 further includes the step of: S4.5, setting a word segmentation search module for viewing the interface corresponding to the selected IDL stationery. The word segmentation search module matches multiple selectable interface types at the same time.
在具体实施过程,如图2和图3所示,IDL文件可通过UML的方式进行创建。模型组件添加多个接口的操作方法如图4和图5所示。In the specific implementation process, as shown in Figure 2 and Figure 3, IDL files can be created through UML. The operation method of adding multiple interfaces to the model component is shown in Figure 4 and Figure 5.
本发明主要针对波形组件接口的实现进行了优化,避免了代码冗余的情况,使得波形组件不再需要保留无用的接口,提升了波形组件运行实时性以及可靠性。相比于现有技术,本方法以实现可定制接口的灵活性和高效性为主要方向,通过建模的方式进行开发,开发方式简洁明了且易懂易修改易调试,对于某些特定接口所需的IDL文件,同样可以通过建模的方式进行创建、修改、删除以及添加单个或者多个参数。而针对某些需求多个接口的波形组件,本方法提供了通过建模的方式,从波形接口的属性里选择关联性选项对接口的数量以及接口的定义进行配置。The present invention mainly optimizes the implementation of the waveform component interface, avoids code redundancy, makes the waveform component no longer need to retain useless interfaces, and improves the real-time operation and reliability of the waveform component. Compared with the existing technology, this method is mainly directed to achieve the flexibility and efficiency of customizable interfaces, and is developed through modeling. The development method is concise, clear, easy to understand, modify and debug. For some specific interfaces, The required IDL files can also be created, modified, deleted, and single or multiple parameters added through modeling. For some waveform components that require multiple interfaces, this method provides a modeling method to select the correlation option from the properties of the waveform interface to configure the number of interfaces and the definition of the interfaces.
本方法在符合国外的SCA(软件通信体系结构)标准规范和国军标STRF(软件无线电通信装备体系结构)标准规范的情况下,致力于提高开发以及调试组件可定制接口的效率,通过基于模型驱动的方式,避免了大量的代码开发,还提升了开发期的对于波形组件可定制接口的控制性,开发人员通过图示可以更清楚的掌握开发状态。This method is committed to improving the efficiency of developing and debugging customizable interfaces of components while complying with the foreign SCA (Software Communication Architecture) standard specifications and the national military standard STRF (Software Radio Communication Equipment Architecture) standard specifications, through model-based The driver method avoids a large amount of code development, and also improves the controllability of the customizable interface of the wave component during the development period. Developers can more clearly grasp the development status through diagrams.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110605053.6A CN113342332B (en) | 2021-05-31 | 2021-05-31 | An implementation method for customizable multi-interfaces based on model-driven components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110605053.6A CN113342332B (en) | 2021-05-31 | 2021-05-31 | An implementation method for customizable multi-interfaces based on model-driven components |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113342332A CN113342332A (en) | 2021-09-03 |
CN113342332B true CN113342332B (en) | 2023-11-03 |
Family
ID=77473589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110605053.6A Active CN113342332B (en) | 2021-05-31 | 2021-05-31 | An implementation method for customizable multi-interfaces based on model-driven components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113342332B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002013007A1 (en) * | 2000-08-08 | 2002-02-14 | International Business Machines Corporation | Common application metamodel including c/c++ metamodel |
CN102081545A (en) * | 2011-01-07 | 2011-06-01 | 中国电子科技集团公司第十研究所 | Method of realizing software communications architecture (SCA) on embedded platform |
CN109375903A (en) * | 2018-09-25 | 2019-02-22 | 湖南理工学院 | SCA waveform component construction method, apparatus, computer equipment and storage medium |
CN111353235A (en) * | 2020-03-13 | 2020-06-30 | 上海介方信息技术有限公司 | Component port modeling method based on model drive and terminal |
CN111443919A (en) * | 2020-02-24 | 2020-07-24 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | The Realization Method of SCA Core Framework on DSP Multi-core Processor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6948174B2 (en) * | 2000-08-08 | 2005-09-20 | International Business Machines Corporation | IMS MFS (message format service) metamodel |
-
2021
- 2021-05-31 CN CN202110605053.6A patent/CN113342332B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002013007A1 (en) * | 2000-08-08 | 2002-02-14 | International Business Machines Corporation | Common application metamodel including c/c++ metamodel |
CN102081545A (en) * | 2011-01-07 | 2011-06-01 | 中国电子科技集团公司第十研究所 | Method of realizing software communications architecture (SCA) on embedded platform |
CN109375903A (en) * | 2018-09-25 | 2019-02-22 | 湖南理工学院 | SCA waveform component construction method, apparatus, computer equipment and storage medium |
CN111443919A (en) * | 2020-02-24 | 2020-07-24 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | The Realization Method of SCA Core Framework on DSP Multi-core Processor |
CN111353235A (en) * | 2020-03-13 | 2020-06-30 | 上海介方信息技术有限公司 | Component port modeling method based on model drive and terminal |
Non-Patent Citations (2)
Title |
---|
基于软件通信体系结构的波形组件化开发技术研究;王琳等;《移动通信》;第35卷(第06期);68-71 * |
高速率无线传输波形SCA实现研究;谷艳宾;《中国优秀硕士学位论文全文数据库 信息科技辑》(第02期);I136-1173 * |
Also Published As
Publication number | Publication date |
---|---|
CN113342332A (en) | 2021-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569801A (en) | Complex parameter-based configuration display control system | |
CN101739484B (en) | Knowledge component-based engineering design method | |
EP2098954B1 (en) | Systems and methods for template reverse engineering | |
CN103744647B (en) | A kind of Java workflow development system and method based on workflow visualization toolkit | |
CN104679488A (en) | Flow path customized development platform and method | |
CN107766042A (en) | A kind of visual data manager and device of the model file based on CSAR | |
CN106021816A (en) | Method for achieving distributed system behavior simulated analysis tool based on behavior tree | |
CN107122171A (en) | Automatically generate the method and system of data manipulation in operation flow | |
CN104317559A (en) | Visual modeling platform based on GMF | |
CN104268346B (en) | A kind of implementation method of the Simulation Application visualization the integration environment based on object class interaction figure | |
CN112083926A (en) | Web user interface generation method and device | |
US7131080B2 (en) | Simulation management system | |
CN115712420B (en) | Architecture design and architecture conversion method based on complex real-time embedded system | |
CN105335161B (en) | It is a kind of from TASM time abstractions state machine to extension NTA automatic machines conversion method | |
CN115328462A (en) | A visual development tool based on Vue.js and its use method | |
CN119862686A (en) | Visual control method for simulation test process | |
CN112784417B (en) | A SysML-based avionics distributed joint simulation method and system | |
CN113342332B (en) | An implementation method for customizable multi-interfaces based on model-driven components | |
CN118227537A (en) | Intelligent universal measurement and control instrument based on large model and construction method thereof | |
CN117634370A (en) | Function verification method and platform for Verilog code | |
Rivero et al. | Improving user involvement through a model-driven requirements approach | |
CN112817571B (en) | Man-machine object fusion application modeling method based on scene storyboard | |
CN114356430B (en) | DAG dependent configuration tool based on airflow scheduling system | |
CN115033212A (en) | Avionics system primitive model integrated construction method and device and computer equipment | |
CN111274750B (en) | FPGA simulation verification system and method based on visual modeling |
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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Model Driven Implementation Method for Customizable Multiple Interface of Components Granted publication date: 20231103 Pledgee: Agricultural Bank of China Limited by Share Ltd. Chengdu high tech Industrial Development Zone Branch Pledgor: Chengdu Xieying Technology Co.,Ltd. Registration number: Y2024510000088 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PC01 | Cancellation of the registration of the contract for pledge of patent right |
Granted publication date: 20231103 Pledgee: Agricultural Bank of China Limited by Share Ltd. Chengdu high tech Industrial Development Zone Branch Pledgor: Chengdu Xieying Technology Co.,Ltd. Registration number: Y2024510000088 |
|
PC01 | Cancellation of the registration of the contract for pledge of patent right |