CN103777998B - A kind of efficient call method of built-up pattern component - Google Patents
A kind of efficient call method of built-up pattern component Download PDFInfo
- Publication number
- CN103777998B CN103777998B CN201410024829.5A CN201410024829A CN103777998B CN 103777998 B CN103777998 B CN 103777998B CN 201410024829 A CN201410024829 A CN 201410024829A CN 103777998 B CN103777998 B CN 103777998B
- Authority
- CN
- China
- Prior art keywords
- built
- component
- pattern component
- pattern
- modules
- 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
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention relates to a kind of efficient call method of built-up pattern component, the method is:CM_I modules call upper strata simulation engine to produce built-up pattern component internal sub-component example, and calling for built-up pattern component is realized by CM_P modules, and built-up pattern component event information is inserted directly into into upper strata simulation engine, realize the simulation engine of tree hierarchy structure is substituted with the simulation engine of horizontal alignment structure, reduce event scheduling that is invalid, being only used for timing coordination, Dram expense is reduced, so as to be greatly enhanced analogue system operational efficiency.
Description
Technical field
The present invention relates to a kind of call method of model component, the efficient call method of particularly a kind of built-up pattern.
Background technology
For the analogue system for supporting hierarchical modeling, it is imitative how simulation engine calls built-up pattern component to directly influence
The operational efficiency of true system.Common implementation method is the simulation engine using stratification, i.e., independent built-up pattern component tool
There is independent simulation engine, by null event message being built for the independent simulation engine, be inserted into higher level's simulation engine, in realization
The timing coordination of level simulation engine and built-up pattern component simulation engine.The implementation method is simple, but structure null message draws
Play invalid event ordering and null event to call, cause to call that efficiency is low, Dram consumes big, directly influence fully simulated system
The operational efficiency of system.
The content of the invention
For above the deficiencies in the prior art, the invention provides a kind of efficient call method of built-up pattern component, its
Core is that tree-like stratification simulation engine is normalized to planar linear simulation engine structure, to solve usual stratification combination
The problem that efficiency is low, Dram consumption is big is called present in model component call method, analogue system operational efficiency is improved.
It is an object of the present invention to provide a kind of efficient calling system of built-up pattern component, the calling system includes:
Built-up pattern component describes CM_X modules:For describing composition, the internal information interface relationship of built-up pattern component
And instantiation information;
Built-up pattern assembly initialization CM_I modules:For setting up upper strata model component and built-up pattern component internal submodule
The information interface relation of type inter-module, and create the example of submodel component;
Built-up pattern component proxy CM_P module:Call the submodel component of built-up pattern component internal, and empirically frame
Frame records emulation experiment data;
The destructed CM_D modules of built-up pattern component:Release upper strata model component and built-up pattern component internal submodel component
Between information interface, and delete built-up pattern component proxy example.
It is a further object to provide a kind of efficient call method of built-up pattern component, the call method includes
Following steps:
1) built-up pattern component describes the description file that CM_X modules generate built-up pattern component;
2) built-up pattern assembly initialization CM_I modules complete the Interface integration of built-up pattern component;
3) built-up pattern component proxy CM_P module chronologically completes calling for built-up pattern component;
4) band that the destructed CM_D modules of built-up pattern component terminate built-up pattern component is called.
It is an advantage of the current invention that:
In the method, CM_X modules call upper strata simulation engine to produce built-up pattern component internal sub-component example, and
Calling for built-up pattern component is realized by CM_P modules, common tree hierarchy is substituted with the simulation engine of horizontal alignment structure
Change the simulation engine of structure, reduce and be only used for timing coordination, invalid event scheduling, so as to drastically increase analogue system
Operational efficiency.
Description of the drawings
Fig. 1:System structure diagram.
Specific embodiment
It is illustrated in figure 1 system structure diagram, the efficient call method of the built-up pattern component is concretely comprised the following steps:
The first step is built for a kind of system efficiently called of built-up pattern component
The system efficiently called for built-up pattern component includes:Built-up pattern component describes CM_X modules, built-up pattern
Assembly initialization CM_I modules, built-up pattern component proxy CM_P module, the destructed CM_D modules of built-up pattern component.
The function of CM_X modules is:Composition, internal information interface relationship and the instantiation information of built-up pattern component are described;
The function of CM_I modules is:Set up the information of upper strata model component and built-up pattern component internal submodel inter-module
Interface relationship, and create the example of submodel component;
The function of CM_P modules is:The submodel component of built-up pattern component internal is called, and empirically framework record is imitative
True experiment data;
The function of CM_D modules is:Release the information of upper strata model component and built-up pattern component internal submodel inter-module
Interface, and delete built-up pattern component proxy example.
Second step CM_X modules generate the description file of built-up pattern component
The description file of the built-up pattern component that CM_X modules are generated includes following information:
Built-up pattern component internal information flow description information:Between the composition submodel set of built-up pattern component, submodel
Interface relationship, the sequential relationship between submodel.
Built-up pattern component internal experimental framework description information:The submodel instantiation information of composition built-up pattern component,
The initialization information of submodel component, the Experiment Data Records of submodel component and processing information.3rd step CM_I module is completed
The Interface integration of built-up pattern component
CM_I modules describe file with built-up pattern and are input into as parameter, realize that the Interface integration of built-up pattern component builds empty
Intend built-up pattern component simulation engine, and obtain the application pointer of built-up pattern component internal submodel component;
Set up the input/output interface relation of upper strata model component and built-up pattern component internal sub-component;
By built-up pattern component internal experimental framework description information, submodel component instance is created, the product of the example is noted
Life must use upper strata simulation engine, rather than virtual portfolio model component simulation engine.
4th step CM_P module chronologically completes calling for built-up pattern component
The sequential call instruction of the simulation engine that CM_P modules are received;
CM_P module walks built-up pattern component internal sub-component examples;
In frame period of the CM_P modules according to submodel component, judge whether to call the function of the submodel component instance to connect
Mouthful;
CM_P modules judge whether to call emulation experiment data record according to built-up pattern component experimental framework information;
CM_P modules judge whether submodel component instance has next event, if it has, calling simulation engine API to be inserted
Enter upper strata simulation engine.
5th step CM_D module terminates the band of built-up pattern component and calls
The function of CM_D is:Release upper strata model component to connect with the information of built-up pattern component internal submodel inter-module
Mouthful, and delete built-up pattern component proxy example;
The built-up pattern component call of the simulation engine that CM_D modules are received terminates order;
CM_D module walks built-up pattern component internal sub-component examples, and delete which and connect with the information of upper strata model component
Mouth relation;
CM_D modules obtain virtual portfolio model component simulation engine, and delete built-up pattern component proxy example;
The event related to the built-up pattern component in CM_D modules removing upper strata simulation engine;
CM_D modules terminate to return.
It should be appreciated that being above schematic to the detailed description that technical scheme is carried out by preferred embodiment
And it is nonrestrictive.One of ordinary skill in the art can be remembered to each embodiment on the basis of description of the invention is read
The technical scheme of load is modified, or carries out equivalent to which part technical characteristic;And these modifications or replacement, and
The spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution are not made.
Claims (6)
1. a kind of efficient calling system of built-up pattern component, it is characterised in that the calling system includes:
Built-up pattern component describes CM_X modules:For describing composition, internal information interface relationship and the reality of built-up pattern component
Exampleization information;
Built-up pattern assembly initialization CM_I modules:For setting up upper strata model component and built-up pattern component internal submodel group
Information interface relation between part, and create the example of submodel component;
Built-up pattern component proxy CM_P module:Call the submodel component of built-up pattern component internal, and empirically framework note
Record emulation experiment data;
The destructed CM_D modules of built-up pattern component:Upper strata model component is released with built-up pattern component internal submodel inter-module
Information interface, and delete built-up pattern component proxy example.
2. a kind of efficient call method of built-up pattern component, it is characterised in that the call method comprises the steps:
1) built-up pattern component describes the description file that CM_X modules generate built-up pattern component;
2) built-up pattern assembly initialization CM_I modules complete the Interface integration of built-up pattern component;
3) built-up pattern component proxy CM_P module chronologically completes calling for built-up pattern component;
4) band that the destructed CM_D modules of built-up pattern component terminate built-up pattern component is called.
3. a kind of efficient call method of built-up pattern component according to claim 2, it is characterised in that the step 1
In
The description file of the built-up pattern component that CM_X modules are generated includes following information:
Built-up pattern component internal information flow description information:Connecing between the composition submodel set of built-up pattern component, submodel
Sequential relationship between mouth relation, submodel;
Built-up pattern component internal experimental framework description information:The submodel instantiation information of composition built-up pattern component, submodule
The initialization information of type component, the Experiment Data Records of submodel component and processing information.
4. a kind of efficient call method of the built-up pattern component according to Claims 2 or 3, it is characterised in that the step
Rapid 2CM_I modules complete the integrated method of built-up pattern component interface and are:
CM_I modules describe file with built-up pattern and are input into as parameter, realize the Interface integration of built-up pattern component:
Virtual portfolio model component simulation engine is built, and obtains the application pointer of built-up pattern component internal submodel component;
Set up the input/output interface relation of upper strata model component and built-up pattern component internal sub-component;
By built-up pattern component internal experimental framework description information, submodel component instance is created.
5. a kind of efficient call method of built-up pattern component according to claim 4, it is characterised in that the step 3
The call method that middle CM_P modules chronologically complete built-up pattern component is:
The sequential call instruction of the simulation engine that CM_P modules are received;
CM_P module walks built-up pattern component internal sub-component examples;
In frame period of the CM_P modules according to submodel component, judge whether to call the functional interface of the submodel component instance;
CM_P modules judge whether to call emulation experiment data record according to built-up pattern component experimental framework information;
CM_P modules judge whether submodel component instance has next event, if it has, calling simulation engine API to be inserted into
Layer simulation engine.
6. a kind of efficient call method of built-up pattern component according to claim 5, it is characterised in that the step 4
Middle CM_D modules terminate the band call method of built-up pattern component:
CM_D modules release the information interface of upper strata model component and built-up pattern component internal submodel inter-module, and deletion group
Matched moulds type component proxy example;
The built-up pattern component call of the simulation engine that CM_D modules are received terminates order;
CM_D module walks built-up pattern component internal sub-component examples, and delete its information interface pass with upper strata model component
System;
CM_D modules obtain virtual portfolio model component simulation engine, and delete built-up pattern component proxy example;
The event related to the built-up pattern component in CM_D modules removing upper strata simulation engine;
CM_D modules terminate to return.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410024829.5A CN103777998B (en) | 2014-01-20 | 2014-01-20 | A kind of efficient call method of built-up pattern component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410024829.5A CN103777998B (en) | 2014-01-20 | 2014-01-20 | A kind of efficient call method of built-up pattern component |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103777998A CN103777998A (en) | 2014-05-07 |
CN103777998B true CN103777998B (en) | 2017-04-05 |
Family
ID=50570275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410024829.5A Active CN103777998B (en) | 2014-01-20 | 2014-01-20 | A kind of efficient call method of built-up pattern component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103777998B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104579747B (en) * | 2014-12-10 | 2016-09-14 | 贵州电力试验研究院 | A kind of model data rapid transmission method in distributed power device emulation |
CN111126572B (en) * | 2019-12-26 | 2023-12-08 | 北京奇艺世纪科技有限公司 | Model parameter processing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004635A (en) * | 2010-08-19 | 2011-04-06 | 中国船舶重工集团公司第七○九研究所 | Simulation model system supporting reusing and development method thereof |
KR101056682B1 (en) * | 2011-04-08 | 2011-08-12 | 국방과학연구소 | A weapon simulation system and the same method based on the component |
CN102521470A (en) * | 2011-12-31 | 2012-06-27 | 中国人民解放军92232部队 | Radar simulation system based on XML schema |
CN102542113A (en) * | 2011-12-31 | 2012-07-04 | 中国人民解放军92232部队 | Universal radar simulation system and simulation application method therefor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8467888B2 (en) * | 2009-06-05 | 2013-06-18 | The Mathworks, Inc. | Automated PID controller design |
-
2014
- 2014-01-20 CN CN201410024829.5A patent/CN103777998B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004635A (en) * | 2010-08-19 | 2011-04-06 | 中国船舶重工集团公司第七○九研究所 | Simulation model system supporting reusing and development method thereof |
KR101056682B1 (en) * | 2011-04-08 | 2011-08-12 | 국방과학연구소 | A weapon simulation system and the same method based on the component |
CN102521470A (en) * | 2011-12-31 | 2012-06-27 | 中国人民解放军92232部队 | Radar simulation system based on XML schema |
CN102542113A (en) * | 2011-12-31 | 2012-07-04 | 中国人民解放军92232部队 | Universal radar simulation system and simulation application method therefor |
Also Published As
Publication number | Publication date |
---|---|
CN103777998A (en) | 2014-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102663103B (en) | Configurable method for automatically generating database and accessing data | |
CN103019684A (en) | Dynamic template-based business page configuring method | |
CN102981855A (en) | Template-based interface autogeneration method and system | |
CN101604241A (en) | A kind of code generating method of embedded system | |
CN101789045B (en) | Realization method of MDA modeling tool orienting to manufacturing field | |
CN106873974A (en) | Smart code generates automotive engine system and method | |
WO2019047441A1 (en) | Communication optimization method and system | |
CN104657149A (en) | Software framework implementation method of management module of storage system | |
CN103064667A (en) | Method for controlling hardware equipment based on JavaScript extension | |
CN104580532A (en) | Cross-platform application system | |
CN103914307A (en) | Interactive-interface fast implementation method based on reusable library | |
CN103678815A (en) | Mechanical product collaborative simulation platform system and simulation method thereof | |
CN103685564B (en) | Introduce the online operation cloud plateform system of sector application of plug-in unit application power layer | |
CN104391701A (en) | Method for developing energy efficiency assessment software | |
CN102646232A (en) | High concurrence enterprise integrated application system | |
CN105867944A (en) | Web front-end terminal operating layer and implementing method thereof | |
CN102541923B (en) | Database read-write separating method and device | |
CN110069248A (en) | Call method, device, equipment and the computer readable storage medium of interface data | |
CN107341005A (en) | Chart generation method and its device | |
CN106126564A (en) | A kind of method rendered based on dynamic template language | |
CN105975277A (en) | Template-based mixed cloud elastic telescoping set building method | |
CN103777998B (en) | A kind of efficient call method of built-up pattern component | |
CN105468793A (en) | Automated management method for simulation model data | |
CN113094039B (en) | Automatic code generation system based on database table | |
CN102999329B (en) | The Active Directory interface exploitation method of configuration is mapped based on extend markup language |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |