CN101794227A - Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model - Google Patents
Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model Download PDFInfo
- Publication number
- CN101794227A CN101794227A CN201010118856A CN201010118856A CN101794227A CN 101794227 A CN101794227 A CN 101794227A CN 201010118856 A CN201010118856 A CN 201010118856A CN 201010118856 A CN201010118856 A CN 201010118856A CN 101794227 A CN101794227 A CN 101794227A
- Authority
- CN
- China
- Prior art keywords
- model
- uml
- diagram
- software assembly
- autosar
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000010586 diagram Methods 0.000 claims abstract description 46
- 239000000203 mixture Substances 0.000 claims description 28
- 238000006243 chemical reaction Methods 0.000 claims description 21
- 230000002452 interceptive effect Effects 0.000 claims description 10
- 238000000605 extraction Methods 0.000 claims description 6
- 239000000284 extract Substances 0.000 claims description 3
- 238000011161 development Methods 0.000 abstract description 5
- 230000003993 interaction Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000005684 electric field Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000013517 stratification Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method for converting a UML (Unified Modeling Language) model into an AUTOSAR software assembly model. The method comprises the following steps of: extracting a logic relation among objects in an object model diagram by analyzing the object model diagram and a sequence diagram in the UML model, and converting and generating a software assembly model which accords with an AUTOSAR standard; or extracting mutual information among the objects in the sequence diagram, and converting and generating a software assembly model which accords with an AUTOSAR standard. The method is unnecessary to analyze all models in UML, just needs to extract the object model diagram and the sequence diagram and converts into the software assembly model, thereby solving the weakness on the requirement statement of a software assembly, improving the automation degree of model development, avoiding the error possibility in a manual execution process and accelerating the development speed.
Description
Technical field
The present invention relates to the automotive electronics software development technique, especially relate to a kind of conversion method from uml model to the AUTOSAR software assembly model.
Background technology
AUTOSAR (AUTomotive Open System ARchitecture) is an automotive electronics open system framework, component software (Software Component, be called for short SWC) be in the superiors' application layer in the AUTOSAR framework, be encapsulation to the AUTOSAR application layer.Software assembly model has the interface of the unified encapsulation of standard, is present on the AUTOSAR RTE layer, and one section software of formalized description has solved exploitation, the integrated and assembling of different automotive electronics software vendor.
The UML language is towards unified modeling language, interchange and discussion between automotive electronics automobile vendor, automotive electronics software and hardware architecture teacher and the developer have been made things convenient for, and AUTOSAR SWC is organized in the self-contained unit, encapsulated the realization of function and behavior, only expose the tie point of good definition, made things convenient for the standard interface between the different software development company to the external world.
Yet, automotive electronics software development demand UML demand model is not stipulated in the AUTOSAR standard also to how robotization ground is not converted into the AUTOSAR model with uml model and provides support and stipulate.The AUTOSAR software assembly model has at the standardization of automotive electronics embedded software developing and the characteristics of versatility, supports the modeling of stratification, can satisfy the demand of International standardization complex distributions formula automotive electronics embedded software developing.Yet, the AUTOSAR component software is still waiting to improve for the statement ability of demand modeling, and as the top layer of ATUOSAR, what its was described is the software architecture of system, entered detailed design phase, and for the exploitation before demand analysis and system design and fail to set foot in.In addition, because AUTOSAR standard software assembly also is in the popularization stage, be not familiar with by vast architect, developer, what be unfavorable for developing carries out fast.And the UML language is as a kind of modeling language that is widely known by the people, the AUTOSAR standard software assembly of comparing, and its user's acceptance is higher, and cost of development is lower.Therefore, uml model and AUTOSAR component software are combined, maximize favourable factors and minimize unfavourable ones, performance advantage separately can improve development efficiency fast.
Therefore, in the face of the specific demand of built-in field, and UML modeling language and AUTOSAR standard software assembly modeler model characteristics separately, need a kind of conversion method from uml model to the AUTOSAR software assembly model.
Summary of the invention
In order to solve the defective of above-mentioned existing automotive electronics software development, the object of the present invention is to provide a kind of conversion method from uml model to the AUTOSAR software assembly model.
The technical solution adopted for the present invention to solve the technical problems is as follows:
The present invention extracts the logical relation between the object in the object model diagram by analyzing object model diagram and the precedence diagram in the uml model, and conversion generates the software assembly model that meets the AUTOSAR standard; Or the interactive information between the object in the extraction precedence diagram, conversion generates the software assembly model that meets the AUTOSAR standard.
Described by object model diagram and precedence diagram in the analysis uml model, be meant the XML data of reading object illustraton of model, be converted to UML object model diagram data, and read the XML data in the precedence diagram, be converted to UML precedence diagram data.
Logical relation in the described extraction object model diagram between the object, conversion generates the software assembly model that meets the AUTOSAR standard, be meant that the bag for object model diagram is converted to Composition in the software assembly model, and by object affiliated in the analysis package, interactive relation between the object, generate corresponding Atomic SWC, and definite composition Atomic SWC nested with it and the logical relation between the Atomic SWC.
Interactive information in the described extraction precedence diagram between the object, conversion generates the software assembly model that meets the AUTOSAR standard, be meant object for precedence diagram, determine the legitimacy of this object by searching object model diagram, by the interactive information between the object among the analysis sequence figure, determine port and the interface message of the pairing Atomic SWC of this object then.
The AUTOSAR software assembly model comprises elements such as component software (Software Component is called for short SWC), port (Port), interface (Interface), connector.Wherein, SWC comprises combine component (Composition), atom component (Atomic SWC) etc., and Composition inside can be nested again, comprises the assembly that a series of functions are relevant, and Atomic SWC is minimum not subdivisible assembly; Port comprises Provided Port (being used to provide data and service) and Required Port (being used to receive data and service); Data of transmitting when interface is used for storing communication and service.
The beneficial effect that the present invention has is:
1, the present invention has analyzed the general nature of uml model, extracts two kinds of models of object model diagram and precedence diagram and be used for model conversion from all illustratons of model, and do not need to analyze all models among the UML.
2, the object module of the model conversion strategy among the present invention is the AUTOSAR software assembly model, because AUTOSAR is the open system framework towards vehicle electric field, the UML language is good at and is described general modeling process, the appearance of this model conversion strategy, solved at vehicle electric field the problem of general modeling process field refinement.
3, the present invention has solved the weak tendency of component software on requirement description to a certain extent, has improved the automaticity of model development.
Description of drawings
Fig. 1 is a software assembly model graph of a relation of the present invention.
Fig. 2 is a model conversion operational flowchart of the present invention.
Fig. 3 is the flow path switch figure of UML object model graph model of the present invention to software assembly model.
Fig. 4 is the flow path switch figure of UML precedence diagram model of the present invention to software assembly model.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 has pointed out software assembly model graph of a relation of the present invention, and relation comprises:
1.Composition and the relation of inclusion between the Atomic SWC;
2.Composition and the relation of inclusion between the Sub-composition; (to show difference, Sub-composition represents to be nested in the Composition of another Composition inside)
3. belong to Atomic SWC and the relation of the information interaction between the Sub-composition of same Composition;
4.Composition and the relation of the information interaction between the Atomic SWC;
5.Composition and the relation of the information interaction between the Sub-composition.
Fig. 2 has pointed out model conversion operational flowchart of the present invention, and is specific as follows:
1. need from object model diagram under the project folder and precedence diagram, read the uml model data.Because these data are all preserved with the XML document form data under project folder, so need to obtain UML object model diagram data and UML precedence diagram data by the processing XML file;
2. after the transfer algorithm that uses a model is handled the uml model data, obtain the software assembly model data;
3. the software assembly model data are write the component software file destination with the XML document form data.
Fig. 3 has pointed out the flow path switch figure of UML object model graph model of the present invention to software assembly model, and is specific as follows:
1. if there is object model diagram, then creates a Composition figure, and create a top layer Composition simultaneously.
2. all Package in the reading object illustraton of model create and Package Sub-Composition of the same name under top layer Composition.For each Sub-Composition, create Compositon figure, set up both interactive relations.
A) for each Package, read all objects of Package inside, create and object Atomic SWC of the same name;
B) read association between all objects of Package inside, seek and the corresponding Atomic SWC of related Source end object, create Provided Port, seek and the corresponding AtomicSWC of related Target end object, create Required Port, create connector from Provided Port to Required Port.
3. all objects outside Package in the reading object illustraton of model are created and object Atomic SWC of the same name under top layer Composition.
Fig. 4 has pointed out the flow path switch figure of UML precedence diagram model of the present invention to software assembly model, and is specific as follows:
1. if there is object model diagram, then creates a Composition figure, and create a top layer Composition simultaneously.
2. all Package in the reading object illustraton of model create and Package Sub-Composition of the same name under top layer Composition.For each Sub-Composition, create Compositon figure, set up both interactive relations.
A) for each Package, read all objects of Package inside, create and object Atomic SWC of the same name;
B) read association between all objects of Package inside, seek and the corresponding Atomic SWC of related Source end object, create Provided Port, seek and the corresponding AtomicSWC of related Target end object, create Required Port, create connection from Provided Port to Required Port.
3. read all objects in the precedence diagram, if this object does not exist in object model diagram, then model is inconsistent disregards; If exist, all message that then read this object send points, seek the Atomic SWC corresponding with this object, create port on Atomic SWC, and the establishment interface corresponding with this message, create being connected between interface and the port again.
Claims (4)
1. conversion method from uml model to the AUTOSAR software assembly model, it is characterized in that: by analyzing object model diagram and the precedence diagram in the uml model, extract the logical relation between the object in the object model diagram, conversion generates the software assembly model that meets the AUTOSAR standard; Or the interactive information between the object in the extraction precedence diagram, conversion generates the software assembly model that meets the AUTOSAR standard.
2. a kind of conversion method according to claim 1 from uml model to the AUTOSAR software assembly model, it is characterized in that: described by analyzing object model diagram and the precedence diagram in the uml model, be meant the XML data of reading object illustraton of model, be converted to UML object model diagram data, and read XML data in the precedence diagram, be converted to UML precedence diagram data.
3. a kind of conversion method according to claim 1 from uml model to the AUTOSAR software assembly model, it is characterized in that: the logical relation in the described extraction object model diagram between the object, conversion generates the software assembly model that meets the AUTOSAR standard, be meant that the bag for object model diagram is converted to Composition in the software assembly model, and by object affiliated in the analysis package, interactive relation between the object, generate corresponding Atomic SWC, and definite composition Atomic SWC nested with it and the logical relation between the Atomic SWC.
4. a kind of conversion method according to claim 1 from uml model to the AUTOSAR software assembly model, it is characterized in that: the interactive information in the described extraction precedence diagram between the object, conversion generates the software assembly model that meets the AUTOSAR standard, be meant object for precedence diagram, determine the legitimacy of this object by searching object model diagram, by the interactive information between the object among the analysis sequence figure, determine port and the interface message of the pairing Atomic SWC of this object then.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010118856A CN101794227A (en) | 2010-03-08 | 2010-03-08 | Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010118856A CN101794227A (en) | 2010-03-08 | 2010-03-08 | Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101794227A true CN101794227A (en) | 2010-08-04 |
Family
ID=42586939
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010118856A Pending CN101794227A (en) | 2010-03-08 | 2010-03-08 | Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101794227A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426522A (en) * | 2011-10-28 | 2012-04-25 | 东南大学 | CPS (Cyber Physical Systems) modeling and verification method based on transformation from hybrid UML (Unified Modeling Language) to DAP (Differential-Algebraic Program) |
CN105512097A (en) * | 2015-11-26 | 2016-04-20 | 普华基础软件股份有限公司 | File analyzing method |
CN105530288A (en) * | 2015-11-26 | 2016-04-27 | 普华基础软件股份有限公司 | Data interaction method |
CN116232662A (en) * | 2022-12-26 | 2023-06-06 | 广东为辰信息科技有限公司 | Counter master-slave turnover processing method for safety communication in vehicle |
CN117034019A (en) * | 2023-10-09 | 2023-11-10 | 腾讯科技(深圳)有限公司 | Service processing method and device, electronic equipment and storage medium |
-
2010
- 2010-03-08 CN CN201010118856A patent/CN101794227A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426522A (en) * | 2011-10-28 | 2012-04-25 | 东南大学 | CPS (Cyber Physical Systems) modeling and verification method based on transformation from hybrid UML (Unified Modeling Language) to DAP (Differential-Algebraic Program) |
CN102426522B (en) * | 2011-10-28 | 2014-12-10 | 东南大学 | CPS (Cyber Physical Systems) modeling and verification method based on transformation from Hybrid UML (Unified Modeling Language) to DAP (Differential-Algebraic Program) |
CN105512097A (en) * | 2015-11-26 | 2016-04-20 | 普华基础软件股份有限公司 | File analyzing method |
CN105530288A (en) * | 2015-11-26 | 2016-04-27 | 普华基础软件股份有限公司 | Data interaction method |
CN105530288B (en) * | 2015-11-26 | 2021-10-26 | 普华基础软件股份有限公司 | Data interaction method |
CN116232662A (en) * | 2022-12-26 | 2023-06-06 | 广东为辰信息科技有限公司 | Counter master-slave turnover processing method for safety communication in vehicle |
CN116232662B (en) * | 2022-12-26 | 2024-03-29 | 广东为辰信息科技有限公司 | Counter master-slave turnover processing method for safety communication in vehicle |
CN117034019A (en) * | 2023-10-09 | 2023-11-10 | 腾讯科技(深圳)有限公司 | Service processing method and device, electronic equipment and storage medium |
CN117034019B (en) * | 2023-10-09 | 2024-01-09 | 腾讯科技(深圳)有限公司 | Service processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102981501B (en) | Automobile ECU (Electronic Control Unit) fault diagnosis information matching method based on XML (Extensive Makeup Language) | |
CN102880468B (en) | Code intelligent prompting method and system for electronic control unit (ECU) program development | |
US20080244541A1 (en) | Code translator and method of automatically translating modeling language code to hardware language code | |
CN101794227A (en) | Method for converting UML (Unified Modeling Language) model into AUTOSAR software assembly model | |
CN106371838A (en) | Method and system for maintaining software package dependence relationship | |
CN102591756B (en) | Verification method and system for interface protocol compatibility of multi-interface protocol chip | |
CN100585369C (en) | Railway simulating laboratory | |
CN103092594B (en) | model conversion method and device | |
CN102480467A (en) | SOC (System on a Chip) software and hardware collaborative simulation verification method based on network communication protocol | |
CN103019690A (en) | Visible component module development method based on JET technology | |
CN101739258A (en) | Automatic code generation method of architecture analysis and design language (AADL) model | |
CN102096729B (en) | Automotive electronics oriented virtual functional bus designer | |
CN106843887A (en) | A kind of implementation method of embedded customized development platform automatic creation system | |
CN111581082A (en) | Vehicle-mounted controller test script generation device and method | |
CN101295246B (en) | Method for converting UML model to SmartC model | |
KR101626382B1 (en) | Testing language conversion apparatus and its method | |
US20060282586A1 (en) | Bus system design method and apparatus | |
CN101609427B (en) | Programmable network service automation test system and programmable network service automation method | |
CN106095459B (en) | Implementation method for automatically finishing selection and specialization of embedded software library | |
CN102262540A (en) | Basic software parameter definition extension method applied to AUTOSAR (AUTomotive Open System Architecture) ECU (Electric Control Unit) configuration | |
CN116048518B (en) | Automatic generation method of comprehensive avionics system security codes for antenna operating system | |
CN108228314B (en) | Virtual prototype error detection method based on equipment protocol | |
CN103257911B (en) | A kind of model testing Tool integration method based on SOA framework | |
CN102156789A (en) | System and method for automatically generating constraint file of field programmable gate array (FPGA) | |
CN103744757A (en) | DF file verification method based on ARINC661 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20100804 |