CN113342332B - Method for realizing customizable multi-interface of component based on model driving - Google Patents
Method for realizing customizable multi-interface of component based on model driving 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 file
- idl
- 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
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000006870 function Effects 0.000 claims abstract description 7
- 230000011218 segmentation Effects 0.000 claims description 4
- 230000002452 interceptive effect Effects 0.000 claims description 3
- 230000018109 developmental process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 108091005054 serum thyroid hormone reducing factor Proteins 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/72—Code refactoring
Abstract
The invention discloses a model-driven component-customizable multi-interface implementation method, which comprises the following steps: s1, establishing an IDL file; s2, adding a relationship window column in the attribute column based on the standard of the SCA4 modeling platform tool; s3, setting names, types and associated components of the required attributes of interfaces in the components to be created in a Relationships window column together; s4, calling an adding and deleting method to set up a plurality of interfaces for the component, and configuring the interfaces by adopting an IDL file; s5, switching of interface functions is achieved by selecting different names or types of interfaces in a relation window column, and the realization of the multiple interfaces can be customized by the completion component. The method does not need to realize all interfaces of the component, and can modify the functions of the interfaces at any time in a modeling mode, so that the flexibility of the method is improved.
Description
Technical Field
The invention relates to the field of software radio, in particular to a model-driven component-customizable multi-interface implementation method.
Background
At present, the realization mode based on waveform component interface customization does not need to realize all interfaces any more, but the debugging difficulty is reduced, the problem of code redundancy is solved, and the workload in the development period is also reduced; however, when a component encounters a special requirement, multiple interfaces may be required to be provided, and the attribute and the implemented function of each interface are not the same, which greatly increases the workload of development, such as using the existing implementation, and may possibly increase the difficulty during debugging from the point of view of code development.
Disclosure of Invention
Aiming at the defects in the prior art, the method for realizing the customizable multi-interface of the module based on the model driving solves the problem of difficulty in adding the interface of the module.
In order to achieve the aim of the invention, the invention adopts the following technical scheme:
the method for realizing the customizable multi-interface of the component based on the model driving comprises the following steps:
s1, carrying out parameter configuration according to an interactive data language required by an interface in a component to be created, and establishing an IDL file;
s2, adding a relationship window column in the attribute column based on the standard of the SCA4 modeling platform tool; wherein the Relationships window column is a hierarchical structure;
s3, setting names, types and associated components of the required attributes of interfaces in the components to be created in a Relationships window column together;
s4, calling an adding and deleting method to set up a plurality of interfaces for the component, and configuring the interfaces by adopting an IDL file; the configuration content comprises the type of the interface and the managed elements;
s5, switching of interface functions is achieved by selecting different names or types of interfaces in a relation window column, and the realization of the multiple interfaces can be customized by the completion component.
Further, the specific method for configuring the interface by adopting the IDL file in step S4 is as follows:
for a single interface, directly creating and selecting files in an IDL file library to carry out parameter configuration;
for a special interface, after parameter configuration is carried out, an IDL file is added into an interface of a component through an Add method in relevance;
for a plurality of interfaces, the interfaces are split into single interfaces, and files in an IDL file library are respectively created and selected for each interface to carry out parameter configuration.
Further, the steps between the step S4 and the step S5 include:
s4.5, setting a word segmentation search module for checking the interface corresponding to the IDL stationery.
The beneficial effects of the invention are as follows: the method creates interfaces in a modeling mode, adds and deletes the attributes of the interfaces, and simultaneously creates the custom IDL files required to be set by the interfaces in a modeling mode, and the modeling mode does not need to realize all interfaces of the components, and can modify the functions of the interfaces at any time in the modeling mode, so that developers can know the flexibility of the method deeply in the debugging period, the efficiency of the development period is improved greatly, the development period is saved fully, and the interfaces can be optimized continuously in the modeling mode in the debugging period.
Drawings
FIG. 1 is a schematic flow chart of the method;
FIG. 2 is a schematic diagram of the creation principle of IDL files;
FIG. 3 is a schematic diagram of the creation process of IDL files;
FIG. 4 is a schematic diagram of a model component adding multiple interfaces;
FIG. 5 is a schematic diagram of a process for adding multiple interfaces to a model component.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and all the inventions which make use of the inventive concept are protected by the spirit and scope of the present invention as defined and defined in the appended claims to those skilled in the art.
As shown in fig. 1, the implementation method of the model-based driving component customizable multi-interface comprises the following steps:
s1, carrying out parameter configuration according to an interactive data language required by an interface in a component to be created, and establishing an IDL file;
s2, adding a relationship window column in the attribute column based on the standard of the SCA4 modeling platform tool; wherein the Relationships window column is a hierarchical structure;
s3, setting names, types and associated components of the required attributes of interfaces in the components to be created in a Relationships window column together;
s4, calling an adding and deleting method to set up a plurality of interfaces for the component, and configuring the interfaces by adopting an IDL file; the configuration content comprises the type of the interface and the managed elements;
s5, switching of interface functions is achieved by selecting different names or types of interfaces in a relation window column, and the realization of the multiple interfaces can be customized by the completion component.
The specific method for configuring the interface by adopting the IDL file in the step S4 is as follows:
for a single interface, directly creating and selecting files in an IDL file library to carry out parameter configuration;
for a special interface, after parameter configuration is carried out, an IDL file is added into an interface of a component through an Add method in relevance;
for a plurality of interfaces, the interfaces are split into single interfaces, and files in an IDL file library are respectively created and selected for each interface to carry out parameter configuration.
In one embodiment of the present invention, the steps between the step S4 and the step S5 further include: s4.5, setting a word segmentation search module for checking the interface corresponding to the IDL stationery. The word segmentation search module matches a plurality of selectable interface types simultaneously.
In a specific implementation, as shown in fig. 2 and 3, the IDL file may be created by way of UML. The method of operation of the model component to add multiple interfaces is shown in fig. 4 and 5.
The invention is mainly optimized for realizing the interfaces of the waveform components, avoids the condition of code redundancy, ensures that the waveform components do not need to reserve useless interfaces, and improves the operation instantaneity and reliability of the waveform components. Compared with the prior art, the method takes the flexibility and the high efficiency of the customizable interface as main directions, develops through a modeling mode, has a concise and clear development mode, is easy to understand, modify and debug, and can also create, modify, delete and add single or multiple parameters for IDL files required by certain specific interfaces through the modeling mode. For some waveform components requiring multiple interfaces, the method provides for configuring the number of interfaces and the definition of the interfaces by modeling to select association options from attributes of the waveform interfaces.
Under the condition of conforming to the standard specification of foreign SCA (software communication system structure) and the standard specification of national army standard STRF (software radio communication equipment system structure), the method aims at improving the efficiency of developing and debugging the customizable interface of the component, avoids a great deal of code development by a mode based on model driving, improves the controllability of the customizable interface of the waveform component in the development period, and enables a developer to grasp the development state more clearly through the diagram.
Claims (2)
1. The realization method of the customizable multi-interface of the module based on model driving is characterized by comprising the following steps:
s1, carrying out parameter configuration according to an interactive data language required by an interface in a component to be created, and establishing an IDL file;
s2, adding a relationship window column in the attribute column based on the standard of the SCA4 modeling platform tool; wherein the Relationships window column is a hierarchical structure;
s3, setting names, types and associated components of the required attributes of interfaces in the components to be created in a Relationships window column together;
s4, calling an adding and deleting method to set up a plurality of interfaces for the component, and configuring the interfaces by adopting an IDL file; the configuration content comprises the type of the interface and the managed elements;
s5, switching interface functions is achieved by selecting different names or types of interfaces in a Relationships window column, and the realization that the component can customize multiple interfaces is achieved;
the specific method for configuring the interface by adopting the IDL file in the step S4 is as follows:
for a single interface, directly creating and selecting files in an IDL file library to carry out parameter configuration;
for a special interface, after parameter configuration is carried out, an IDL file is added into an interface of a component through an Add method in relevance;
for a plurality of interfaces, the interfaces are split into single interfaces, and files in an IDL file library are respectively created and selected for each interface to carry out parameter configuration.
2. The method of implementing a model-driven component customizable multi-interface of claim 1, further comprising the steps of:
s4.5, setting a word segmentation search module for checking the interface corresponding to the IDL stationery.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110605053.6A CN113342332B (en) | 2021-05-31 | 2021-05-31 | Method for realizing customizable multi-interface of component based on model driving |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110605053.6A CN113342332B (en) | 2021-05-31 | 2021-05-31 | Method for realizing customizable multi-interface of component based on model driving |
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 | Method for realizing customizable multi-interface of component based on model driving |
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 components construction method, device, 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 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Method for realizing 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 components construction method, device, computer equipment and storage medium |
CN111443919A (en) * | 2020-02-24 | 2020-07-24 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Method for realizing 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 |
---|---|---|
US9021440B1 (en) | System and method for automated test script generation | |
CN106293664A (en) | Code generating method and device | |
CN106775744B (en) | Method and device for generating static library | |
EP2098954B1 (en) | Systems and methods for template reverse engineering | |
CN104133772A (en) | Automatic test data generation method | |
CN104679488A (en) | Flow path customized development platform and method | |
CN111274142B (en) | Software communication system architecture conformance test modeling method based on extended finite state machine | |
US20170220613A1 (en) | Systems and methods for database orientation transformation | |
CN105117215A (en) | Development method and device of automobile function | |
CN101901267A (en) | Method and device for managing configuration files | |
CN112732579B (en) | Automatic test method and system for WebUI | |
CN104133676A (en) | Function execution method and function execution device based on scripts | |
CN102982217B (en) | The treating method and apparatus of silk-screen | |
CN110825371B (en) | Method for creating, rendering and interacting button group control based on React | |
US20220300262A1 (en) | Method for constructing, running and implementing cross-platform application, terminal, server and system | |
US7131080B2 (en) | Simulation management system | |
CN105302558A (en) | Content presentation system and method for multiple clients | |
CN114047970A (en) | Configuration method and system of AUTOSAR (automotive open system architecture) architecture software | |
CN113342332B (en) | Method for realizing customizable multi-interface of component based on model driving | |
CN107766519B (en) | Method for visually configuring data structure | |
CN101595470A (en) | The method and apparatus that is used for managing system specifications | |
CN109240667A (en) | A kind of development approach of application software, device, storage medium and terminal | |
CN112714015B (en) | Communication data fault injection method and system, communication device and storage medium | |
CN102521133A (en) | TCL (tool command language)-based white-box testing automation method and TCL-based white-box testing automation system | |
CN104933019A (en) | List generating method and device |
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 |