CN111399828A - Model-driven logic device modeling method and terminal - Google Patents
Model-driven logic device modeling method and terminal Download PDFInfo
- Publication number
- CN111399828A CN111399828A CN202010176594.7A CN202010176594A CN111399828A CN 111399828 A CN111399828 A CN 111399828A CN 202010176594 A CN202010176594 A CN 202010176594A CN 111399828 A CN111399828 A CN 111399828A
- Authority
- CN
- China
- Prior art keywords
- model
- attribute
- logic device
- logic
- equipment
- 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.)
- Granted
Links
Images
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/30—Creation or generation of source code
- G06F8/33—Intelligent editors
Abstract
The invention provides a model-driven logic device modeling method, which comprises the steps of establishing a device attribute model, configuring device attribute parameters, and warehousing the device attribute model; creating a logical device model view; configuring logic equipment model parameters on the basis of the logic equipment model view; adding a logic device interface; assembling the port model on the logic equipment, configuring the parameters of the port, and adding the port of the logic equipment; generating a logic device description file, and writing the model information of the logic device into the logic device description file; generating a logic device frame, and automatically generating a frame code of the logic device; and warehousing the logic equipment model. A terminal for performing the above method is also provided. The model-driven logic device modeling method and the terminal provided by the invention can effectively optimize and embody the aggregation relation among devices, better transfer the attributes, maintain the independence of the attributes and solve the problem that the attributes of the devices cannot be embodied.
Description
Technical Field
The invention relates to the technical field of software radio, in particular to a model-driven logic device modeling method and a terminal.
Background
Existing software radio systems typically employ a standard software architecture including a foreign SCA (software communication architecture) standard specification and a national military SRTF (software radio communication equipment architecture) standard specification and corresponding specifications derived from the SCA specification. In order to realize independent upgrade of software and hardware of the software radio system, processor resources in the system are virtualized, namely physical processor resources are abstracted into logic equipment according to a software architecture standard, and access and control of the physical processor resources are realized through a standard interface provided by the logic equipment. It is common in the art to provide a software radio integrated development environment for waveform developers, which provides graphical modeling functions, in order to allow the developers to complete the modeling of logical devices by simple operations without paying attention to the details of software standards, thereby achieving the encapsulation of physical processor resources. The problems existing in the logic device modeling in the current integrated development environment are as follows:
first, the logic devices have various attributes, including configuration attributes, assignment attributes, etc., that may be used by the waveform components. The management of the attributes is difficult, attribute conflict and attribute inconsistency are often caused, and even errors are exposed when a system runs;
secondly, the interface of the logic device cannot be flexibly customized in the logic device model, developers need to define the interface by editing codes, the requirements on the developers are high, the development efficiency is low, and the code quality is difficult to guarantee;
thirdly, the abstraction degree of the logic device model is not enough, the driving characteristics of the model cannot be completely reflected, and more is graphical editing. Information is lost in the information transmission in the modeling process, and the use cost of developers is high.
The prior art is searched to find that:
the article number 1000-.
The application number is 201710624338.8, the publication number is 107257297B, and the patent name is a multi-level platform modeling method based on a software communication architecture, although logic device modeling is mentioned, more than all new relations among logic devices, nodes and platforms are provided, and no solution is provided for the problems faced by the current logic device modeling.
At present, no explanation or report of the similar technology of the invention is found, and similar data at home and abroad are not collected.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a logic device modeling method and a terminal based on model driving, and the method and the terminal can effectively solve the problems existing in logic device modeling. The method is also applicable to SRTF standard specifications, SCA standard specifications and corresponding derivative standard specifications.
The invention is realized by the following technical scheme.
According to an aspect of the present invention, there is provided a model-driven logic device modeling method, including:
creating an equipment attribute model according to the logic equipment attribute, configuring equipment attribute parameters, and warehousing the equipment attribute model;
creating a corresponding logic equipment model view according to the logic equipment type;
on the basis of the logical equipment model view, the following configuration is completed to realize the modeling of the logical equipment model:
-configuring logical device model parameters;
-selecting an interface model into a logical device model view, establishing an inheritance relationship between a logical device and an interface, and adding a logical device interface;
-selecting a port model into a logical device model view and assembling the port model onto the logical device, configuring parameters of the port, adding logical device ports;
-generating a logical device description file, writing model parameters, interfaces and port information of the logical device into the logical device description file by calling a script that automatically generates the description file;
-generating a logical device framework, the framework code of the logical device being automatically generated by invoking an auto-generated code script;
and warehousing the logic equipment model.
Preferably, the creating a device attribute model according to the logical device attribute, configuring device attribute parameters, and warehousing the device attribute model includes the following steps:
creating a device attribute model view according to the type of the logic device attribute;
on the basis of the equipment attribute model view, the following configuration is completed, and the equipment attribute model modeling is realized:
-adding an attribute identification uniquely identifying the attribute as a unique tag value for a subsequently configured device attribute;
configuring common attribute parameters and different attribute parameters of each equipment attribute to perfect equipment attribute parameter configuration;
and after the equipment attribute model configuration is completed, importing the equipment attribute model into an attribute model library.
Preferably, the logical device attributes include: basic attributes, a list of basic attributes, test attributes, and structural attributes.
Preferably, the common attribute parameters include: attribute names, attribute aliases, and logical device attributes.
Preferably, the logic device types are divided into three device types, namely a common logic device, a loadable logic device and an executable logic device.
Preferably, the configuration logic device model parameters include configuration logic device attributes, configuration logic device implementation parameters and/or configuration aggregation attributes; wherein: the logical device attribute is imported from an attribute model library, and an attribute value is modified; the logic device implementation parameters comprise a thread inlet, a stack size and a binary file path; the aggregation attribute is used for indicating whether an aggregation interface is integrated or not, and if the aggregation attribute is configured, the logic device is indicated as a parent device, and a plurality of child devices can be hooked.
Preferably, the logical device interface includes a mandatory interface and an optional interface; wherein: the mandatory interface is automatically added when a logic device model view is correspondingly established according to a logic device of a specific type; the selectable interfaces are imported from an interface model library.
Preferably, a port model is selected from a port model library; the configured port parameters include: number of connections and port name.
Preferably, the logical device description files include files in SPD.XM L, SCD.XM L, PRF.XM L, and DPD.XM L formats.
According to another aspect of the invention, there is provided a terminal comprising a memory, a processor and a computer program stored on the memory and operable on the processor, the processor being operable when executing the computer program to perform any of the methods described above.
Due to the adoption of the technical scheme, compared with the prior art, the invention has the following beneficial effects:
1. the invention embodies the attributes through modeling, and the attributes are divided into four categories, which are respectively as follows: the basic attribute, the basic attribute list, the test attribute and the structure attribute are respectively given to configuration elements, and the attribute model is put into a database to solve the problems of attribute modeling realization and transmission.
2. According to the invention, the attribute model is added in the equipment, the attribute value in the attribute model can be modified, and other elements are read-only attributes, so that the problem that the independence and integrity of the attribute can not be ensured in the attribute model is solved.
3. The equipment is divided into aggregation equipment and non-aggregation equipment according to the aggregation state, aggregation relation among the equipment is reflected in the node model through the aggregation connecting line, and the problem that the relation between the whole and part of the equipment model cannot be reasonably reflected is solved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of a method for modeling a logic device based on model driving according to a preferred embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus model provided in a preferred embodiment of the present invention.
Detailed Description
The following examples illustrate the invention in detail: the embodiment is implemented on the premise of the technical scheme of the invention, and a detailed implementation mode and a specific operation process are given. The embodiment is constructed based on the SCA standard, but the logic device method provided by the invention is also applicable to related standards derived from the SCA standard, such as the SRTF standard. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.
The embodiment of the invention provides a method for modeling a logic device based on model driving, which comprises the following steps as shown in figure 1:
step 1: and according to the logic equipment attribute, establishing an equipment attribute model, configuring equipment attribute elements, and warehousing the equipment attribute model.
Step 2: and creating a corresponding logical device model view according to the logical device type. The logic device types are divided into three types, namely common logic devices, loadable logic devices and executable logic devices.
On the basis of the logical equipment model view, the following steps are executed to complete the modeling of the logical equipment model:
and step 3: configuring the logical device model parameters, including configuring logical device attributes, configuring logical device implementation parameters (thread entry, stack size, binary file path, etc.), and configuring aggregation attributes. Wherein the device attributes are imported from the attribute model library and the attribute values are modified. The aggregation attribute is whether to integrate an aggregation interface, and if the aggregation attribute is configured, the logic device is a parent device and can be hooked with a plurality of child devices.
And 4, step 4: and adding a logical device interface, selecting an interface model to the logical device model view, and establishing an inheritance relationship between the logical device and the interface. The interfaces are divided into a necessary interface and an optional interface. The mandatory interface is automatically added when a specific type of logic device is created, for example, the necessary interfaces of the executable logic device are an executable interface and a loadable interface, and the necessary interfaces of the loadable logic device interface are loadable interfaces. According to the design of the logic device, a developer can flexibly add an optional interface on the logic device, and the optional interface is imported from an existing interface model library.
And 5: adding a logical device port, selecting a port model to a logical device model view, assembling the port model to a logical device, and configuring parameters of the port, including the number of connections, the port name and the like. Wherein the port model is imported from an existing port model library.
And 6, generating a logical device description file, and writing the model information (comprising model parameters, interfaces and port information) of the logical device into the logical device description file by calling a script for automatically generating the description file, wherein the logical device description file comprises files in the formats of SPD.XM L, SCD.XM L, PRF.XM L and DPD.XM L.
And 7: and generating framework codes of the logic equipment, and automatically generating the framework codes of the logic equipment by calling the automatic generation code script. Wherein, the frame code refers to other general codes except the required user code.
And 8: and warehousing the model logic equipment, wherein the logic equipment can be repeatedly used in other links of modeling, such as node modeling and platform modeling.
Wherein, the step 2 comprises the following steps:
step 2.1: and creating a device attribute model view according to the type of the device attribute. The types of the device attributes comprise basic attributes, a basic attribute list, test attributes and structure attributes.
On the basis of the equipment attribute model view, the following steps are executed to complete equipment attribute model modeling:
step 2.2: and adding an attribute identifier for uniquely identifying the attribute, and using the attribute identifier as a unique mark value for subsequently configuring the equipment attribute.
Step 2.3: configuring common attribute parameters and different attribute parameters of each attribute, and perfecting attribute parameter configuration; wherein the common attribute parameters include: attribute names, attribute aliases, device attributes, etc.
Step 2.4: after the attribute model configuration is completed, the attribute model is imported into the attribute model library and waits to be referred by other models.
As shown in table 1, is a table of configuration elements of the basic attribute model.
As shown in table 2, is a table of configuration elements of the basic attribute list model.
As shown in table 3, is a table of configuration elements for testing the attribute model.
As shown in table 4, is a table of configuration elements for the structural attribute model.
TABLE 1
TABLE 2
TABLE 3
TABLE 4
As shown in fig. 2, a schematic diagram of a logical device model of a component is shown, in which: the multi-core processor logic is an executable logic device, inherits two optional interfaces of a loadable interface and an executable interface, and inherits a life cycle interface (optional). The attribute depended by the logic device comprises two attributes of a processor model and a processor core number. And the logic device provides an input port and an output port.
The model transmission process is highlighted, namely the model of the previous link is put in storage, the model of the previous link is imported from the model base in the next link, and the model driving is completed through the information among the model transmission steps.
Based on the modeling method for the logic device based on the model drive provided by the embodiment of the invention, the embodiment of the invention also provides a terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor can be used for executing any one of the methods when executing the computer program.
The modeling method provided by the embodiment of the invention is further described in detail below in conjunction with a specific industrial application example.
A communication station using a software radio architecture has a CPU processor for running communication waveforms. And carrying out logic equipment modeling on the CPU based on the SCA standard, wherein the logic equipment model comprises an executable interface, a loadable interface and a life cycle control interface, and provides attributes such as the type of the processor, the number of processor cores, the dominant frequency of the processor, the memory size of the processor and the like. A data input port and a data output port are provided. The functionality of the interface is implemented in the logic device. And importing the model into a logic equipment library after the logic equipment model is established. The developer can develop the node and the communication waveform according to the logic device, and the communication waveform calls the interface of the logic device to realize the access and control of the processor resource.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention.
Claims (10)
1. A model-driven logic device modeling method is characterized by comprising the following steps:
creating an equipment attribute model according to the logic equipment attribute, configuring equipment attribute parameters, and warehousing the equipment attribute model;
creating a corresponding logic equipment model view according to the logic equipment type;
on the basis of the logical equipment model view, the following configuration is completed to realize the modeling of the logical equipment model:
-configuring logical device model parameters;
-selecting an interface model into a logical device model view, establishing an inheritance relationship between a logical device and an interface, and adding a logical device interface;
-selecting a port model into a logical device model view and assembling the port model onto the logical device, configuring parameters of the port, adding logical device ports;
-generating a logical device description file, writing model parameters, interfaces and port information of the logical device into the logical device description file by calling a script that automatically generates the description file;
-generating a logical device framework, the framework code of the logical device being automatically generated by invoking an auto-generated code script;
and warehousing the logic equipment model.
2. The model-driven logic device modeling method according to claim 1, wherein the step of creating a device attribute model according to the logic device attribute, configuring device attribute parameters, and warehousing the device attribute model comprises the steps of:
creating a device attribute model view according to the type of the logic device attribute;
on the basis of the equipment attribute model view, the following configuration is completed, and the equipment attribute model modeling is realized:
-adding an attribute identification uniquely identifying the attribute as a unique tag value for a subsequently configured device attribute;
configuring common attribute parameters and different attribute parameters of each equipment attribute to perfect equipment attribute parameter configuration;
and after the equipment attribute model configuration is completed, importing the equipment attribute model into an attribute model library.
3. The model-based driven logic device modeling method of claim 2, wherein the logic device attributes comprise: basic attributes, a list of basic attributes, test attributes, and structural attributes.
4. The model-based driven logic device modeling method of claim 2, wherein the common attribute parameters comprise: attribute names, attribute aliases, and logical device attributes.
5. The model-based driven logic device modeling method according to claim 1, wherein the logic device types are divided into three device types of a normal logic device, a loadable logic device, and an executable logic device.
6. The model-based driven logic device modeling method of claim 1, wherein the configuration logic device model parameters comprise configuration logic device attributes, configuration logic device implementation parameters and/or configuration aggregation attributes; wherein: the logical device attribute is imported from an attribute model library, and an attribute value is modified; the logic device implementation parameters comprise a thread inlet, a stack size and a binary file path; the aggregation attribute is used for indicating whether an aggregation interface is integrated or not, and if the aggregation attribute is configured, the logic device is indicated as a parent device, and a plurality of child devices can be hooked.
7. The model-based driven logic device modeling method of claim 1, wherein the logic device interface comprises a mandatory interface and an optional interface; wherein: the mandatory interface is automatically added when a logic device model view is correspondingly established according to a logic device of a specific type; the selectable interfaces are imported from an interface model library.
8. The model-based driven logic device modeling method of claim 1, wherein a port model is selected from a port model library; the configured port parameters include: number of connections and port name.
9. The model-driven-based logical device modeling method according to claim 1, wherein the logical device description files include files in SPD.XM L, SCD.XM L, PRF.XM L, and DPD.XM L formats.
10. A terminal comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, is operable to perform the method of any of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010176594.7A CN111399828B (en) | 2020-03-13 | 2020-03-13 | Model-driven logic device modeling method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010176594.7A CN111399828B (en) | 2020-03-13 | 2020-03-13 | Model-driven logic device modeling method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111399828A true CN111399828A (en) | 2020-07-10 |
CN111399828B CN111399828B (en) | 2021-01-01 |
Family
ID=71432450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010176594.7A Active CN111399828B (en) | 2020-03-13 | 2020-03-13 | Model-driven logic device modeling method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111399828B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112394927A (en) * | 2020-12-08 | 2021-02-23 | 上海数设科技有限公司 | Dimension-increasing form of product model and model definition method |
CN112765416A (en) * | 2021-01-26 | 2021-05-07 | 北京联创信安科技股份有限公司 | Terminal equipment digitizing system and method |
CN113296853A (en) * | 2021-05-28 | 2021-08-24 | 成都谐盈科技有限公司 | Model-driven independent port modeling method and terminal |
CN116541024A (en) * | 2023-07-07 | 2023-08-04 | 成都谐盈科技有限公司 | Static deployment method for software communication architecture |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081545A (en) * | 2011-01-07 | 2011-06-01 | 中国电子科技集团公司第十研究所 | Method of realizing software communications architecture (SCA) on embedded platform |
CN102609248A (en) * | 2011-12-28 | 2012-07-25 | 方伟 | Integrated avionics system modeling and simulation platform based on MDA (model driven architecture) |
EP3223485A1 (en) * | 2016-03-25 | 2017-09-27 | Cisco Technology, Inc. | Method and device for dynamic device clustering using device profile information |
CN109376469A (en) * | 2018-11-21 | 2019-02-22 | 中国航空无线电电子研究所 | A kind of modeling method of the avionics system component meta-model based on AADL |
-
2020
- 2020-03-13 CN CN202010176594.7A patent/CN111399828B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081545A (en) * | 2011-01-07 | 2011-06-01 | 中国电子科技集团公司第十研究所 | Method of realizing software communications architecture (SCA) on embedded platform |
CN102609248A (en) * | 2011-12-28 | 2012-07-25 | 方伟 | Integrated avionics system modeling and simulation platform based on MDA (model driven architecture) |
EP3223485A1 (en) * | 2016-03-25 | 2017-09-27 | Cisco Technology, Inc. | Method and device for dynamic device clustering using device profile information |
CN109376469A (en) * | 2018-11-21 | 2019-02-22 | 中国航空无线电电子研究所 | A kind of modeling method of the avionics system component meta-model based on AADL |
Non-Patent Citations (3)
Title |
---|
JTNC: "SOFTWARE COMMUNICATIONS ARCHITECTURE SPECIFICATION VERSION 4.1 FEATURES AND BENEFITS", 《SCA 4.1 FEATURES AND BENEFITS UNCLASSIFIED》 * |
王庆生: "SCA规范的核心框架设计", 《现代导航》 * |
葛正平: "一种基于SCA的软件无线电节点设计方法", 《2008年中国西部青年通信学术会议》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112394927A (en) * | 2020-12-08 | 2021-02-23 | 上海数设科技有限公司 | Dimension-increasing form of product model and model definition method |
CN112765416A (en) * | 2021-01-26 | 2021-05-07 | 北京联创信安科技股份有限公司 | Terminal equipment digitizing system and method |
CN113296853A (en) * | 2021-05-28 | 2021-08-24 | 成都谐盈科技有限公司 | Model-driven independent port modeling method and terminal |
CN113296853B (en) * | 2021-05-28 | 2023-09-29 | 成都谐盈科技有限公司 | Independent port modeling method and terminal based on model driving |
CN116541024A (en) * | 2023-07-07 | 2023-08-04 | 成都谐盈科技有限公司 | Static deployment method for software communication architecture |
CN116541024B (en) * | 2023-07-07 | 2023-09-22 | 成都谐盈科技有限公司 | Static deployment method for software communication architecture |
Also Published As
Publication number | Publication date |
---|---|
CN111399828B (en) | 2021-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111399828B (en) | Model-driven logic device modeling method and terminal | |
CN107273286B (en) | Scene automatic test platform and method for task application | |
CA2670231C (en) | Automated testing and control of networked devices | |
US20090313335A1 (en) | Managing Software Component Versions within a Service Oriented Architecture | |
CN105389256A (en) | Unit testing method and system | |
CN107729228A (en) | Interface test method, device, storage medium and processor | |
US20210103514A1 (en) | Reusable test cases for identifiable patterns | |
CN109933521A (en) | Automated testing method, device, computer equipment and storage medium based on BDD | |
CN110543427B (en) | Test case storage method and device, electronic equipment and storage medium | |
CN112148278A (en) | Visual block chain intelligent contract framework and intelligent contract development and deployment method | |
CN112241360A (en) | Test case generation method, device, equipment and storage medium | |
CN110505119A (en) | A kind of test method, device, system and readable storage medium storing program for executing | |
CN103197947A (en) | Script processing method and device | |
CN114047970A (en) | Configuration method and system of AUTOSAR (automotive open system architecture) architecture software | |
CN112947896A (en) | Directed graph-based component dependence analysis method | |
CN112561690A (en) | Method, system, equipment and storage medium for testing credit card staging service interface | |
CN116599864A (en) | Communication test system, method, equipment and storage medium for automatic interface generation and use case modular development | |
CN110806973A (en) | Automatic generation method and device of interface message | |
CN109388406A (en) | Convert method and device, the storage medium, electronic device of java code | |
CN115982043A (en) | Vehicle interface testing method, device, equipment and storage medium | |
CN112699042B (en) | Unit test case generation method and device | |
CN114020604A (en) | Workflow-based automatic testing method and device | |
CN114416305A (en) | Robot engine implementation method and system and electronic equipment | |
CN111400190A (en) | Automatic test flow generation method and device and computer readable storage medium | |
CN111865930B (en) | Method for automatically extracting character protocols of uninterruptible power supply |
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 |