CN101882078B - Inter-module real-time synchronization method based on internal memory data framework - Google Patents

Inter-module real-time synchronization method based on internal memory data framework Download PDF

Info

Publication number
CN101882078B
CN101882078B CN 201010186142 CN201010186142A CN101882078B CN 101882078 B CN101882078 B CN 101882078B CN 201010186142 CN201010186142 CN 201010186142 CN 201010186142 A CN201010186142 A CN 201010186142A CN 101882078 B CN101882078 B CN 101882078B
Authority
CN
China
Prior art keywords
component model
node
directed acyclic
acyclic graph
model
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.)
Expired - Fee Related
Application number
CN 201010186142
Other languages
Chinese (zh)
Other versions
CN101882078A (en
Inventor
杨国青
胡博
王冬冬
伍如意
杨玉皓
汪金波
赵民德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN 201010186142 priority Critical patent/CN101882078B/en
Publication of CN101882078A publication Critical patent/CN101882078A/en
Application granted granted Critical
Publication of CN101882078B publication Critical patent/CN101882078B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

基于内存数据架构的模块间实时同步方法,包括以下步骤:读取AUTOSAR标准中的软件组件模型,生成有向无环图;建立散列表;定义修改组件模型的规则,修改规则与修改类型一一对应;获取模型修改信息,将模型修改信息存入操作队列中,识别修改类型、将其与修改规则对应,根据修改规则修改有向无环图和散列表。本发明具有能使组件设计工具和系统配置工具保持一致,开发效率高的优点。

The real-time synchronization method between modules based on the memory data architecture includes the following steps: read the software component model in the AUTOSAR standard, and generate a directed acyclic graph; establish a hash table; define the rules for modifying the component model, modify the rules and modify types one by one Correspondence: Obtain model modification information, store the model modification information in the operation queue, identify the modification type, correspond it to the modification rule, and modify the directed acyclic graph and hash table according to the modification rule. The invention has the advantages that the component design tool and the system configuration tool can be consistent, and the development efficiency is high.

Description

Inter-module real-time synchronization method based on internal memory data framework
Technical field
The present invention relates to model-driven Integrated Development Environment technology, especially a kind of efficiently dynamic consistent method of model information between implementation tool.
Technical background
Along with the development of auto industry, Auto Electronic Controlled System is just experiencing growth at a high speed in the complexity of functional area.Although many software provisionings commercial city has proposed the solution of oneself, how to allow the better collaborative work of each instrument, thereby realize real technological breakthrough, still be the important topic that an academia and industry member require study.
AUTOSAR (AUTomotive Open System ARchitecture) is the automotive electronics software architecture of an opening, unites release by famous motor corporations such as BMW, continents.From technical standpoint, the AUTOSAR tissue is devoted to promote the cooperation of developer on standard, and then improves performance and the security of electric-control system, finally controls thus the growing complexity of automatically controlled software.
The AUTOSAR standard code at software development phase, is carried out the component software design for virtual functions bus (VFB), thereby needn't be concerned about the hardware characteristics of bottom.During last deployment software assembly, realize the virtual functions bus by runtime environment (RTE) and basic software assembly.Component software (component) is the unit of package application program, comprises various port and interface (port interface) for communication.In AUTOSAR, assembly that can nested other component software is called combine component (composition), and not subdivisible assembly is called atom component (atomic component).
SmartSAR IDE is embedded system engineering center of Zhejiang University for the vehicle electric field of the AUTOSAR standard research and development Integrated Development Environment based on model-driven.According to AUTOSAR methodology, SmartSAR IDE is divided into three instruments: be used for carrying out the SmartSAR Designer of System Component Design, carry out the SmartSAR ConfigurationGenerator of system configuration and carry out the automatically SmartSAR Generator. of generation of document, code
The nest relation of AUTOSAR assembly is very complicated, and when the developer component design tool, how making various model maintenances unanimously is a very scabrous problem.Moreover, in the performance history of reality, need repeatedly iteration to use component design instrument and system configuration utility.The existing mode that communicates by the XML file needs continuous manually-operated, has hindered the lifting of development efficiency.
Summary of the invention
For component design instrument and the system configuration utility that overcomes prior art can not be consistent, the shortcoming that development efficiency is low, the invention provides a kind of component design instrument and system configuration utility of making and be consistent the inter-module real-time synchronization method based on internal memory data framework that development efficiency is high.
Inter-module real-time synchronization method based on internal memory data framework may further comprise the steps:
1), reads the software assembly model that meets the AUTOSAR standard, generate the directed acyclic graph that characterizes all component model and paradigmatic relation thereof, the node of directed acyclic graph is corresponding one by one with the component model type, and the directed edge of directed acyclic graph represents the paradigmatic relation between component model;
2) hash table that, foundation is corresponding with described directed acyclic graph, the energy fast finding arrives arbitrary component model, the key word (key) of each bar record of hash table is the full name of corresponding assembly, and value (value) is address and whole direct precursor thereof of corresponding assembly;
3), the rule of component model is revised in definition, alteration ruler is corresponding one by one with the modification type, revise type and comprise the deletion component model, the a certain example of deletion component model, a certain port in the deletion component model, the plug-in package model inserts new example in existing component model, in existing component model, insert new port, revise component model; Described example and port all belong to component model information, are stored in the node of directed acyclic graph;
4), obtain model modification information, model modification information comprise modification target element full name and revise type, model modification information is deposited in the operation queue;
5), whether the decision operation formation is empty: if operation queue is not sky, the configuration information in the read operation formation is identified and is revised type, it is corresponding with alteration ruler, revises directed acyclic graph and hash table according to alteration ruler; If operation queue is empty, then wait for, until there is New model modification information to deposit in the operation queue.
Further, step 3) in, the definition alteration ruler may further comprise the steps:
(3.1) deletion component model type (type) may further comprise the steps: the node corresponding with current component model in the search directed acyclic graph, delete this node and directed edge thereof; Search for the record corresponding with current component model in the hash table, obtain all direct precursor of current component model, revise the pointer of these direct precursor;
(3.2) a certain example (prototype) of deletion component model type (type) may further comprise the steps: the node corresponding with current component model in the search directed acyclic graph, judge whether unique example of current component model of example to be deleted, if not unique example is then deleted this example; If unique example is then deleted this node and directed edge thereof; Search for the record corresponding with current component model in the hash table, obtain all direct precursor of current component model, revise the pointer of these direct precursor;
(3.3) a certain port (port-interface) in the deletion component model type (type) may further comprise the steps: the node corresponding with current component model in the search directed acyclic graph, delete this port;
(3.4) plug-in package types of models (type) may further comprise the steps: make up the node of a directed acyclic graph, current component model information is deposited in this node, this node is inserted in the described directed acyclic graph; A newly-built hash table record, with the full name of current component model as key word (key), with the address of current component model and all direct precursor thereof as value (value);
(3.5) may further comprise the steps to the middle new example (prototype) that inserts of existing component model type (type): the node corresponding with current component model in the search directed acyclic graph, new example is inserted this node, add the paradigmatic relation of component model and this new example;
(3.6) may further comprise the steps to the middle new port (port-interface) that inserts of existing component model type (type): the node corresponding with current component model in the search directed acyclic graph enters this node with new port;
(3.7) revise component model type (type), the node corresponding with current component model in the search directed acyclic graph revised nodal information; Search for the record corresponding with current component model in the hash table, obtain all direct precursor of current component model, revise the pointer of these direct precursor.
Technical conceive of the present invention is: the present invention by in internal memory, set up and keep one with the AUTOSAR standard in the data structure of one to one directed acyclic graph and hash table of component model, and the alteration ruler of a series of modification models of predefine, when model information changes, with this model modification information and alteration ruler coupling, then revise directed acyclic graph and hash table information according to alteration ruler, thereby guarantee the synchronous of system configuration utility and component design instrument.
The present invention has following advantage:
1. based on the data structure among the present invention and model modification rule, solved efficiently the problem of component design instrument and system configuration utility information inconsistency.
2. solved simultaneously the component model consensus of AUTOSAR component design instrument.
Description of drawings
Fig. 1 is real-time synchronization general frame figure of the present invention
Fig. 2 is the schematic diagram of directed acyclic graph of the present invention and hash table combination
Fig. 3 is hash table structural drawing of the present invention
Fig. 4 is operational processes process flow diagram of the present invention
Fig. 5 is the processing flow chart of deletion component model of the present invention
Embodiment
With reference to accompanying drawing, further specify the present invention:
Inter-module real-time synchronization method based on internal memory data framework may further comprise the steps:
1), reads the software assembly model that meets the AUTOSAR standard, generate the directed acyclic graph that characterizes all component model and paradigmatic relation thereof, the node of directed acyclic graph is corresponding one by one with the component model type, and the directed edge of directed acyclic graph represents the paradigmatic relation between component model;
2) hash table that, foundation is corresponding with described directed acyclic graph, the energy fast finding arrives arbitrary component model, the key word (key) of each bar record of hash table is the full name of corresponding assembly, and value (value) is address and whole direct precursor thereof of corresponding assembly;
3), the rule of component model is revised in definition, alteration ruler is corresponding one by one with the modification type, revise type and comprise the deletion component model, the a certain example of deletion component model, a certain port in the deletion component model, the plug-in package model inserts new example in existing component model, in existing component model, insert new port, revise component model; Described example and port all belong to component model information, are stored in the node of directed acyclic graph;
4), obtain model modification information, model modification information comprise modification target element full name and revise type, model modification information is deposited in the operation queue;
5), whether the decision operation formation is empty: if operation queue is not sky, the configuration information in the read operation formation is identified and is revised type, it is corresponding with alteration ruler, revises directed acyclic graph and hash table according to alteration ruler; If operation queue is empty, then wait for, until there is New model modification information to deposit in the operation queue.
Further, step 3) in, the definition alteration ruler may further comprise the steps:
(3.1) deletion component model type (type) may further comprise the steps: the node corresponding with current component model in the search directed acyclic graph, delete this node and directed edge thereof; Search for the record corresponding with current component model in the hash table, obtain all direct precursor of current component model, revise the pointer of these direct precursor;
(3.2) a certain example (prototype) of deletion component model type (type) may further comprise the steps: the node corresponding with current component model in the search directed acyclic graph, judge whether unique example of current component model of example to be deleted, if not unique example is then deleted this example; If unique example is then deleted this node and directed edge thereof; Search for the record corresponding with current component model in the hash table, obtain all direct precursor of current component model, revise the pointer of these direct precursor;
(3.3) a certain port (port-interface) in the deletion component model type (type) may further comprise the steps: the node corresponding with current component model in the search directed acyclic graph, delete this port;
(3.4) plug-in package types of models (type) may further comprise the steps: make up the node of a directed acyclic graph, current component model information is deposited in this node, this node is inserted in the described directed acyclic graph; A newly-built hash table record, with the full name of current component model as key word (key), with the address of current component model and all direct precursor thereof as value (value);
(3.5) may further comprise the steps to the middle new example (prototype) that inserts of existing component model type (type): the node corresponding with current component model in the search directed acyclic graph, new example is inserted this node, add the paradigmatic relation of component model and this new example;
(3.6) may further comprise the steps to the middle new port (port-interface) that inserts of existing component model type (type): the node corresponding with current component model in the search directed acyclic graph enters this node with new port;
(3.7) revise component model type (type), the node corresponding with current component model in the search directed acyclic graph revised nodal information; Search for the record corresponding with current component model in the hash table, obtain all direct precursor of current component model, revise the pointer of these direct precursor.
Technical conceive of the present invention is: the present invention by in internal memory, set up and keep one with the AUTOSAR standard in the data structure of one to one directed acyclic graph and hash table of component model, and the alteration ruler of a series of modification models of predefine, when model information changes, with this model modification information and alteration ruler coupling, then revise directed acyclic graph and hash table information according to alteration ruler, thereby guarantee the synchronous of system configuration utility and component design instrument.
The described content of this instructions embodiment only is enumerating the way of realization of inventive concept; protection scope of the present invention should not be regarded as only limiting to the concrete form that embodiment states, protection scope of the present invention also reaches in those skilled in the art conceives the equivalent technologies means that can expect according to the present invention.

Claims (1)

1.基于内存数据架构的模块间实时同步方法,包括以下步骤: 1. A real-time synchronization method between modules based on memory data architecture, comprising the following steps: 1)、读取符合AUTOSAR标准的软件组件模型,生成表征所有组件模型及其聚合关系的有向无环图,有向无环图的节点与组件模型类型一一对应,有向无环图的有向边表示组件模型间的聚合关系; 1) Read the software component model that conforms to the AUTOSAR standard, and generate a directed acyclic graph representing all component models and their aggregation relationships. The nodes of the directed acyclic graph correspond to the component model types one by one, and the directed acyclic graph Directed edges represent aggregation relationships between component models; 2)、建立与所述的有向无环图对应、能快速查找到任一组件模型的散列表,散列表的每一条记录的关键字为对应组件的全名,值为对应组件的地址及其全部直接前驱; 2) Create a hash table that corresponds to the directed acyclic graph and can quickly find any component model. The key of each record in the hash table is the full name of the corresponding component, and the value is the address of the corresponding component and all their immediate predecessors; 3)、定义修改组件模型的规则,修改规则与修改类型一一对应,修改类型包括删除组件模型,删除组件模型的某一实例,删除组件模型中的某一端口,插入组件模型,向已有组件模型中插入新实例,向已有组件模型中插入新端口,修改组件模型;所述的实例和端口均属于组件模型信息,存储于有向无环图的节点中;步骤3)中,定义修改组件模型的规则包括以下步骤: 3) Define the rules for modifying the component model. The modification rules correspond to the modification types one by one. The modification types include deleting the component model, deleting an instance of the component model, deleting a certain port in the component model, inserting the component model, and adding to the existing Insert a new instance into the component model, insert a new port into the existing component model, and modify the component model; the instances and ports mentioned belong to the component model information and are stored in the nodes of the directed acyclic graph; in step 3), define The rules for modifying the component model include the following steps: (3.1)删除组件模型类型包括以下步骤:搜索有向无环图中与当前组件模型相对应的节点,删除该节点及其有向边;搜索散列表中与当前组件模型相对应的记录,获取当前组件模型的所有直接前驱,修改这些直接前驱的指针; (3.1) Deleting the component model type includes the following steps: search for the node corresponding to the current component model in the directed acyclic graph, delete the node and its directed edge; search for the record corresponding to the current component model in the hash table, and obtain All immediate predecessors of the current component model, modifying the pointers to these immediate predecessors; (3.2)删除组件模型类型的某一实例包括以下步骤:搜索有向无环图中与当前组件模型相对应的节点,判断待删除的实例是否当前 组件模型的唯一实例,若不是唯一实例,则删除该实例;若是唯一实例,则删除该节点及其有向边;搜索散列表中与当前组件模型相对应的记录,获取当前组件模型的所有直接前驱,修改这些直接前驱的指针; (3.2) Deleting an instance of the component model type includes the following steps: search for the node corresponding to the current component model in the directed acyclic graph, and determine whether the instance to be deleted is the only instance of the current component model; if not, then Delete the instance; if it is the only instance, delete the node and its directed edges; search the records corresponding to the current component model in the hash table, obtain all the direct predecessors of the current component model, and modify the pointers of these direct predecessors; (3.3)删除组件模型类型中的某一端口包括以下步骤:搜索有向无环图中与当前组件模型相对应的节点,删除该端口; (3.3) Deleting a certain port in the component model type includes the following steps: search for a node in the directed acyclic graph corresponding to the current component model, and delete the port; (3.4)插入组件模型类型包括以下步骤:构建一个有向无环图的节点,将当前组件模型信息存入该节点中,将该节点插入所述的有向无环图中;新建一条散列表记录,以当前组件模型的全名作为关键字,以当前组件模型的地址及其所有直接前驱作为值; (3.4) Inserting the component model type includes the following steps: construct a directed acyclic graph node, store the current component model information into the node, insert the node into the directed acyclic graph; create a new hash table record, with the full name of the current component model as key and the address of the current component model and all its immediate predecessors as value; (3.5)向已有组件模型类型中插入新实例包括以下步骤:搜索有向无环图中与当前组件模型相对应的节点,将新实例插入该节点,添加组件模型与该新实例的聚合关系; (3.5) Inserting a new instance into an existing component model type includes the following steps: search for a node in the directed acyclic graph corresponding to the current component model, insert a new instance into this node, and add an aggregation relationship between the component model and the new instance ; (3.6)向已有组件模型类型中插入新端口包括以下步骤:搜索有向无环图中与当前组件模型相对应的节点,将新端口入该节点; (3.6) Inserting a new port into an existing component model type includes the following steps: searching for a node in the directed acyclic graph corresponding to the current component model, and inserting the new port into the node; (3.7)修改组件模型类型,搜索有向无环图中与当前组件模型相对应的节点,修改节点信息;搜索散列表中与当前组件模型相对应的记录,获取当前组件模型的所有直接前驱,修改这些直接前驱的指针, (3.7) Modify the component model type, search for the node corresponding to the current component model in the directed acyclic graph, and modify the node information; search for the records corresponding to the current component model in the hash table, and obtain all the direct predecessors of the current component model, Modify the pointers of these immediate predecessors, 4)、获取模型修改信息,模型修改信息包括修改的目标组件的全名和修改类型,将模型修改信息存入操作队列中;  4) Obtain model modification information, which includes the full name and modification type of the modified target component, and store the model modification information in the operation queue; 5)、判断操作队列是否为空:若操作队列不为空,读取操作队列中的配置信息,识别修改类型、将操作队列中的配置信息与修改规则对应,根据修改规则修改有向无环图和散列表;若操作队列为空,则进行等待,直到有新的模型修改信息存入操作队列中。  5) Determine whether the operation queue is empty: if the operation queue is not empty, read the configuration information in the operation queue, identify the modification type, match the configuration information in the operation queue with the modification rules, and modify the directed acyclic according to the modification rules Graph and hash table; if the operation queue is empty, wait until new model modification information is stored in the operation queue. the
CN 201010186142 2010-05-28 2010-05-28 Inter-module real-time synchronization method based on internal memory data framework Expired - Fee Related CN101882078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010186142 CN101882078B (en) 2010-05-28 2010-05-28 Inter-module real-time synchronization method based on internal memory data framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010186142 CN101882078B (en) 2010-05-28 2010-05-28 Inter-module real-time synchronization method based on internal memory data framework

Publications (2)

Publication Number Publication Date
CN101882078A CN101882078A (en) 2010-11-10
CN101882078B true CN101882078B (en) 2013-01-16

Family

ID=43054098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010186142 Expired - Fee Related CN101882078B (en) 2010-05-28 2010-05-28 Inter-module real-time synchronization method based on internal memory data framework

Country Status (1)

Country Link
CN (1) CN101882078B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411499B (en) * 2011-08-11 2014-01-08 浙江大学 A system information extraction method for a single electronic control unit based on a directed graph structure
CN102819426B (en) * 2012-02-29 2015-07-08 浙江大学 Method for synchronizing AUTOSAR (automotive open system architecture) model to Simulink model
CN104615784B (en) * 2015-03-04 2017-09-08 贵州腾迈信息技术有限公司 A kind of method for accessing data
TWI605378B (en) * 2016-07-14 2017-11-11 財團法人工業技術研究院 Method of recording operations and method of automatically re-executing operations
CN114021707B (en) * 2022-01-06 2022-04-05 中兴通讯股份有限公司 Model acquisition method, system, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828531A (en) * 2006-02-22 2006-09-06 上海普元信息技术有限责任公司 Component interface and operation logic construction method in component-based software system
CN1845076A (en) * 2006-05-11 2006-10-11 复旦大学 Consistency Maintenance Method for XML-Oriented Mark Backtracking

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8275799B2 (en) * 2005-08-02 2012-09-25 The Boeing Company Methods and apparatus for information modeling

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828531A (en) * 2006-02-22 2006-09-06 上海普元信息技术有限责任公司 Component interface and operation logic construction method in component-based software system
CN1845076A (en) * 2006-05-11 2006-10-11 复旦大学 Consistency Maintenance Method for XML-Oriented Mark Backtracking

Also Published As

Publication number Publication date
CN101882078A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101882078B (en) Inter-module real-time synchronization method based on internal memory data framework
US8635605B2 (en) Automated deployment implementation with a deployment topology model
CN110489812A (en) Multilayer level netlist processing method, device, computer equipment and storage medium
CN105608142A (en) Storage method and device of Json data
US20070129925A1 (en) Logic circuit model conversion apparatus and method thereof; and logic circuit model conversion program
US8196090B2 (en) Aggregation of constraints across profiles
CN103914385B (en) Test detailed rules and regulations Visual Dynamic construction method towards safety critical system concurrent testing
Chen et al. Compositional specification of behavioral semantics
CN110287630A (en) A kind of chip form verification method, storage medium, terminal and the system of opening
US8271538B2 (en) Automated generation of modeling language profiles
US8510088B2 (en) Flexible evaluator for vehicle propulsion systems
US8086436B2 (en) Preliminary data representations of a deployment activity model
CN113177095A (en) Enterprise knowledge management method, system, electronic equipment and storage medium
CN109491997B (en) Method for rapidly generating structure directory tree in management platform based on BIM technology
CN110069876B (en) Experiment management method and device
CN109948197A (en) System optimization analysis method based on AADL V1
CN104932982B (en) A compiling method and related device for message fetching
CN102339342B (en) Quick materialization method of parameterized device unit
CN115270731A (en) Collaborative editing method and device for mixed document
CN110378037B (en) CFD simulation data storage method and device based on Ceph and server
CN107844639B (en) Project standard structure automatic generation method and system
JPH1091651A (en) Logic synthesis method and logic synthesis device
CN105094845A (en) Process modeling device and method
Carr et al. Integration of UML and VHDL-AMS for analogue system modelling
Clairambault Bounding skeletons, locally scoped terms and exact bounds for linear head reduction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130116

Termination date: 20170528

CF01 Termination of patent right due to non-payment of annual fee