CN105989204B - A kind of model component information flow construction method and system based on clone technology - Google Patents

A kind of model component information flow construction method and system based on clone technology Download PDF

Info

Publication number
CN105989204B
CN105989204B CN201510075966.6A CN201510075966A CN105989204B CN 105989204 B CN105989204 B CN 105989204B CN 201510075966 A CN201510075966 A CN 201510075966A CN 105989204 B CN105989204 B CN 105989204B
Authority
CN
China
Prior art keywords
model component
clone
data structure
stream data
true
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
Application number
CN201510075966.6A
Other languages
Chinese (zh)
Other versions
CN105989204A (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.)
Beijing Simulation Center
Original Assignee
Beijing Simulation Center
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 Beijing Simulation Center filed Critical Beijing Simulation Center
Priority to CN201510075966.6A priority Critical patent/CN105989204B/en
Publication of CN105989204A publication Critical patent/CN105989204A/en
Application granted granted Critical
Publication of CN105989204B publication Critical patent/CN105989204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of model component information flow construction method and system based on clone technology, this method includes obtaining clone's source object, clone's target object table is generated, inquiry obtains the model component for meeting clone's source object requirement and generates model component set S in model component library;Clone operations are carried out to model component set S, generate the model component message stream data structure DS1 of the target object containing clone;The revision operation for outputting and inputting connection relationship, realizing to cloned object table and model component message stream data structure DS1 of each model component in graphic plotting model component message stream data structure DS1, and generate revised model component message stream data structure DS2;Model component message stream data structure DS1 and clone's target object table are written and are saved in external memory file.Technical solution of the present invention can be realized the complete copy of the input of basic model component, output relation, simplify information flow graphical representation, reduces misarrangement difficulty.

Description

A kind of model component information flow construction method and system based on clone technology
Technical field
The present invention relates to a kind of model component information flow construction method and systems.More particularly, to one kind based on clone The model component information flow construction method and system of technology.
Background technique
Information flow defines the input of information, output relation between model component, is the integrated basis of analogue system.In large size In Complex simulation systems, there are many same type model components, and input, output relation are consistent or close, according to common letter Breath stream building mode, needs the input of respectively each model component, output to establish a connection, intricate operation, Bu Nengchong Divide and utilize the input of same type model component, output relation consistent or similar advantage, and the explicit graphical representation of information flow is complicated, row It is wrong difficult, it is difficult to support that accurately and efficiently information flow constructs.
Accordingly, it is desirable to provide a kind of model component information flow construction method and system based on clone technology, passes through realization Clone technology, and then realize the complete copy of the input of basic model component, output relation, simplify information flow graphical representation, reduces Misarrangement difficulty, to support the efficient building of analogue system information flow.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of model component information flow construction method based on clone technology And system, with solve establish model component input, output connection relationship triviality, information flow show image table give instructions in reply it is miscellaneous, row Wrong difficult problem.
In order to solve the above technical problems, the present invention adopts the following technical solutions:
A kind of model component information flow construction method based on clone technology, this method include
Clone's source object is obtained, clone's target object table is generated, inquiry, which obtains, in model component library meets clone source pair As desired model component and generate model component set S;
Clone operations are carried out to model component set S, generate the model component message stream data knot of the target object containing clone Structure DS1;
Each model component outputs and inputs connection relationship, reality in graphic plotting model component message stream data structure DS1 Now the revision of cloned object table and model component message stream data structure DS1 is operated, and generates revised model component letter Cease stream data structure DS2;
Model component message stream data structure DS1 and clone's target object table are written and are saved in external memory file.
Preferably, the clone's source object that obtains includes the input for obtaining clone's source object, output connection relationship CG, port Title, port type and port data type;
Obtain meet the requirement of clone source model component include obtain with clone's port name of source object, port type, The relevant model component of port data type.
It is preferably, described to be directed to each of model component set S model component,
Clone's mark of its model component identical with the port name of clone's source object, port type, port data is set Will is TRUE;
Be arranged its input, output connection relationship be CG, according to CG be arranged model component between reference, and will clone target pair As table is added in the model component, model component message stream data structure DS1 is generated.
Preferably, the graphic plotting model component message stream data structure DS1 further comprises
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, which is not drawn;
If being not TRUE, the model component is normally drawn, when drawing its input, output connection relationship, judges it Whether clone's mark of the object module component of connection is TRUE:
If it is, the connecting line is not drawn;
If it is not, then normal draw.
Preferably, the external memory file, which is written, further comprises,
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, any operation is not executed;
If not being TRUE, its model component essential information and input, output link information are written first, next inquires it Target object table is cloned, each clone's target object name is written in order, generates external memory file.
A kind of model component information flow building system based on clone technology, the system include
PRE module is pre-processed, for obtaining clone's source object, clone's target object table is generated, is looked into model component library It askes and obtains the model component for meeting clone's source object requirement and generate model component set S;
Clone's processing CLONE module, for receiving clone's target object table and model component set S, to model component collection It closes S and completes clone operations, generate the message stream data structure DS1 of the target object containing clone;
Integrated management MANAGE module, for each model component in graphic plotting model component message stream data structure DS1 Output and input connection relationship, realize that the revision to cloned object table and model component message stream data structure DS1 operates, and Generate revised model component message stream data structure DS2;
Information flow storage processing STORE module, is used for model component message stream data structure DS1 and clone's target object Table is written and is saved in external memory file.
Preferably, the clone's source object that obtains includes the input for obtaining clone's source object, output connection relationship CG, port Title, port type and port data type;
Obtain meet clone source requirement model component include obtain with clone source object with port name, port class Type, the relevant model component of port data type.
Preferably, the clone is handled in CLONE module, for each of model component set S model component, if The clone's mark CFLAG for setting its model component identical with clone's port name of source object, port type, port data is TRUE, is arranged its input, output connection relationship is CG, according to the reference between CG setting model component, and will clone target object Table is added in the model component, generates new model component message stream data structure DS1.
Preferably, each in graphic plotting model component message stream data structure DS1 in the integrated management MANAGE module The connection relationship that outputs and inputs of model component further comprises
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, which is not drawn;
If being not TRUE, the model component is normally drawn, when drawing its input, output connection relationship, judges it Whether clone's mark of the object module component of connection is TRUE:
If it is, the connecting line is not drawn;
If it is not, then normal draw.
Preferably, in information flow storage processing STORE module, by model component message stream data structure DS1 and gram External memory file is written in grand target object table
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, any operation is not executed;
If not being TRUE, its model component essential information and input, output link information are written first, next inquires it Target object table is cloned, each clone's target object name is written in order, generates external memory file.
Beneficial effects of the present invention are as follows:
Technical solution of the present invention by realize clone technology, realize basic model component input, output relation it is complete Reduction system simplifies information flow graphical representation, reduces misarrangement difficulty.
Detailed description of the invention
Specific embodiments of the present invention will be described in further detail with reference to the accompanying drawing;
Fig. 1 shows a kind of model component information flow construction method process signal based on clone technology in the embodiment of the present invention Figure;
Fig. 2 shows the model component information flow building system structures based on clone technology a kind of in the embodiment of the present invention to show It is intended to.
Specific embodiment
In order to illustrate more clearly of the present invention, the present invention is done further below with reference to preferred embodiments and drawings It is bright.Similar component is indicated in attached drawing with identical appended drawing reference.It will be appreciated by those skilled in the art that institute is specific below The content of description is illustrative and be not restrictive, and should not be limited the scope of the invention with this.
As shown in Figure 1, the invention discloses a kind of model component information flow construction method based on clone technology, this method Include:
S1, clone's source object is obtained, generates clone's target object table, inquiry, which obtains, in model component library meets clone source The model component of object requirement simultaneously generates model component set S;
S2, clone operations are carried out to model component set S, generates the model component message stream data of the target object containing clone Structure DS1;
Each model component outputs and inputs connection relationship in S3, graphic plotting model component message stream data structure DS1, It realizes that the revision to cloned object table and model component message stream data structure DS1 operates, and generates revised model component Message stream data structure DS2;
S4, model component message stream data structure DS1 and clone's target object table are written and are saved in external memory file.
Obtain clone source object include obtain clone source object input, output connection relationship CG and port name PN, Port type PT, port data type PDT;The model component set S for meeting the requirement of clone source is obtained including obtaining and clone source Port name PN, port type PT, the relevant model component of port data type PDT of object.
For each of model component set S model component, port name, the port class of setting and clone's source object Clone's mark of the identical model component of type, port data be TRUE, be arranged its input, output connection relationship be CG, according to CG Reference between model component is set, and clone's target object table is added in the model component, generates model component information flow Data structure DS1.
Graphic plotting model component message stream data structure DS1 further comprises, each in judgment models assembly set S Whether clone's mark of a model component is TRUE: if it is, the model component is not drawn;If it is not, then normal draw The model component, draw its input, output connection relationship when, judge its connection object module component clone's mark whether It is otherwise normally drawn for TRUE if it is, the connecting line is not drawn.
It further comprise sentencing by model component message stream data structure DS1 and clone's target object table write-in external memory file Whether clone's mark of each of disconnected model component set S model component is TRUE: if clone's mark of model component For TRUE, then any operation is not executed;If clone's mark of model component is not TRUE, it is basic that its model component is written first Information and input, output link information, next is inquired it and clones target object table, each clone's target object is written in order Name generates external memory file.
As shown in Fig. 2, the invention also discloses a kind of, the model component information flow based on clone technology constructs system, this is System includes pretreatment PRE module 1, clone's processing CLONE module 2, integrated management MANAGE module 3 and information flow storage processing STORE module 4.
PRE module 1 is pre-processed, for obtaining clone's source object, clone's target object table is generated, is looked into model component library It askes and obtains satisfactory model component and generate model component set S;Clone's processing CLONE module 2, for receiving clone's mesh Object table and model component set S are marked, clone operations are completed to model component set S, generates the information of the target object containing clone Stream data structure DS1;Integrated management MANAGE module 3 is drawn for model component message stream data structure DS1 to be patterned System and graphic software platform, and the graphic software platform for clone's target object table may be implemented, to cloned object table and model group The edit operations such as deletion, the browsing of part message stream data structure DS1, and generate revised model component message stream data structure DS2;Information flow storage processing STORE module 4, is used for model component message stream data structure DS1 and clone's target object table It is written and is saved in external memory file.
PRE module 1 is pre-processed, for generating the model component set that can be cloned.The input of acquisition selection clone's source object, Export connection relationship CG and port name PN, port type PT, port data type PDT;Generate clone's target object table; It is inquired in model component library, obtains all models relevant to port name PN, port type PT, port data type PDT Component generates model component set S;Connection relationship CG and model component set S are issued into clone's processing CLONE module.
Clone's processing CLONE module 2, for generating model component message stream data structure.Receive connection relationship CG and mould Type assembly set S traverses model component set S for each of model component set S model component and its clone is arranged Mark CFLAG is TRUE, its input, output connection relationship CG is arranged, and the reference between model component is arranged according to CG, and will clone Target object table is added in the model, generates new model component message stream data structure DS1;By model component information fluxion Integrated management MANAGE module is sent to according to structure DS1.
Integrated management MANAGE module 3 is shown for generating graphical information flow table.Traversal receives model component information fluxion According to structure DS1, whether the CFLAG of judgment models component is TRUE, if it is, the model component is not drawn;If it is not, then The model component is normally drawn, when drawing its input, output connection relationship, judges the object module component of its connection Whether CFLAG is TRUE, if it is, the connecting line is not drawn, it is otherwise normal to draw;Graphic software platform model component information flow Data structure DS1.
Integrated management MANAGE module 3, for realizing the edit operation of clone's target object.Graphic software platform clones source pair Clone's target object table of elephant specifies object in clone's target object table, and delete operation may be selected, and then the target object is deleted, And model component table is traversed, deleting has input with the target object.Export the information of connection relationship;Optional browse operation is then shown Show all inputs, the output link information of the target object;Generate revised model component message stream data structure DS2.
Information flow storage processing STORE module 4, for generating model component information stream file.Receive clone's processing CLONE The message stream data structure DS1 that module is sent, and external memory file is created and opened with WriteMode, if the CFLAG of model component For TRUE, then any operation is not executed;If the CFLAG of model component is not TRUE, its model component is written first and believes substantially Breath and input, output link information, next is inquired it and clones target object table, each clone's target object is written in order Name ultimately generates defined format external memory file.
In conclusion technical solution of the present invention by realize clone technology, solve establish model component input, it is defeated The triviality of connection relationship out, information flow show that image table is given instructions in reply problem miscellaneous, that misarrangement is difficult.And then realize basic model group Part input, output relation complete copy, simplify information flow graphical representation, reduce misarrangement difficulty, to support analogue system information The efficient building of stream.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair The restriction of embodiments of the present invention may be used also on the basis of the above description for those of ordinary skill in the art To make other variations or changes in different ways, all embodiments can not be exhaustive here, it is all to belong to this hair The obvious changes or variations that bright technical solution is extended out are still in the scope of protection of the present invention.

Claims (8)

1. a kind of model component information flow construction method based on clone technology, which is characterized in that the method includes
Acquisition clone's source object, generates clone's target object table, and inquiry acquisition meets clone's source object and wants in model component library The model component asked simultaneously generates model component set S,
Wherein, it is described obtain clone source object include obtain clone source object input, output connection relationship CG, port name, Port type and port data type;It obtains and meets the port that the model component of clone source requirement includes acquisition with clones source object Title, port type, the relevant model component of port data type;
Clone operations are carried out to model component set S, generate the model component message stream data structure of the target object containing clone DS1;
Each model component outputs and inputs connection relationship, realization pair in graphic plotting model component message stream data structure DS1 The revision of cloned object table and model component message stream data structure DS1 operate, and generate revised model component information flow Data structure DS2;
Model component message stream data structure DS1 and clone's target object table are written and are saved in external memory file.
2. model component information flow construction method according to claim 1, which is characterized in that be directed to the model component collection Each of S model component is closed,
Clone's mark that its model component identical with clone's port name of source object, port type, port data is arranged is TRUE;
Be arranged its input, output connection relationship be CG, according to CG be arranged model component between reference, and will clone target object table It is added in the model component, generates model component message stream data structure DS1.
3. model component information flow construction method according to claim 1, which is characterized in that the graphic plotting model group Part message stream data structure DS1 further comprises,
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, which is not drawn;
If being not TRUE, the model component is normally drawn, when drawing its input, output connection relationship, judges its connection Clone's mark of object module component whether be TRUE:
If it is, connecting line is not drawn;
If it is not, then normal draw.
4. model component information flow construction method according to claim 1, which is characterized in that the external memory file be written into One step includes
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, any operation is not executed;
If not being TRUE, its model component essential information and input, output link information are written first, next inquires its clone Each clone's target object name is written in order, generates external memory file for target object table.
5. a kind of model component information flow based on clone technology constructs system, which is characterized in that the system comprises
PRE module is pre-processed, for obtaining clone's source object, clone's target object table is generated, inquires and obtain in model component library The model component of clone's source object requirement must be met and generate model component set S,
Wherein, it is described obtain clone source object include obtain clone source object input, output connection relationship CG, port name, Port type and port data type;Obtain meet clone source requirement model component include obtain with clone source object with end Mouth title, port type, the relevant model component of port data type;
Clone's processing CLONE module, it is complete to model component set S for receiving clone's target object table and model component set S At clone operations, the message stream data structure DS1 of the target object containing clone is generated;
Integrated management MANAGE module, in graphic plotting model component message stream data structure DS1 each model component it is defeated Enter and export connection relationship, realizes that the revision to cloned object table and model component message stream data structure DS1 operates, and generate Revised model component message stream data structure DS2;
Information flow storage processing STORE module, for writing model component message stream data structure DS1 and clone's target object table Enter and is saved in external memory file.
6. model component information flow according to claim 5 constructs system, which is characterized in that the clone handles CLONE In module, for each of model component set S model component, its port name with clone's source object, port is set Clone's mark CFLAG of the identical model component of type, port data be TRUE, be arranged its input, output connection relationship be CG, The reference between model component is set according to CG, and clone's target object table is added in the model component, generates new model Module information stream data structure DS1.
7. model component information flow according to claim 5 constructs system, which is characterized in that the integrated management MANAGE In module, each model component outputs and inputs connection relationship into one in graphic plotting model component message stream data structure DS1 Step includes
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, which is not drawn;
If being not TRUE, the model component is normally drawn, when drawing its input, output connection relationship, judges its connection Clone's mark of object module component whether be TRUE:
If it is, connecting line is not drawn;
If it is not, then normal draw.
8. model component information flow according to claim 5 constructs system, which is characterized in that the information flow storage processing In STORE module, further comprise by model component message stream data structure DS1 and clone's target object table write-in external memory file
Whether clone's mark of each of judgment models assembly set S model component is TRUE:
If it is TRUE, any operation is not executed;
If not being TRUE, its model component essential information and input, output link information are written first, next inquires its clone Each clone's target object name is written in order, generates external memory file for target object table.
CN201510075966.6A 2015-02-12 2015-02-12 A kind of model component information flow construction method and system based on clone technology Active CN105989204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510075966.6A CN105989204B (en) 2015-02-12 2015-02-12 A kind of model component information flow construction method and system based on clone technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510075966.6A CN105989204B (en) 2015-02-12 2015-02-12 A kind of model component information flow construction method and system based on clone technology

Publications (2)

Publication Number Publication Date
CN105989204A CN105989204A (en) 2016-10-05
CN105989204B true CN105989204B (en) 2019-04-05

Family

ID=57042087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510075966.6A Active CN105989204B (en) 2015-02-12 2015-02-12 A kind of model component information flow construction method and system based on clone technology

Country Status (1)

Country Link
CN (1) CN105989204B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777991A (en) * 2014-01-27 2014-05-07 北京仿真中心 Servitization implementation method and system for model assemblies
CN104991520A (en) * 2015-05-25 2015-10-21 南京南瑞继保电气有限公司 Mirror image collocation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7464366B2 (en) * 2004-10-01 2008-12-09 Microsoft Corporation Programming interface for a componentized and extensible workflow model

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777991A (en) * 2014-01-27 2014-05-07 北京仿真中心 Servitization implementation method and system for model assemblies
CN104991520A (en) * 2015-05-25 2015-10-21 南京南瑞继保电气有限公司 Mirror image collocation method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HLA 仿真中的克隆及剪枝技术研究;马民 等;《系统仿真学报》;20051130;第17卷(第11期);2463-2495
面向分析评估的高性能仿真系统关键技术研究;杨妹 等;《系统仿真学报》;20121231;第24卷(第12期);2656-2659

Also Published As

Publication number Publication date
CN105989204A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
KR100558952B1 (en) Method for automation of software manufacturing process based on graphic user interface design, and computer readable medium having thereon computer executable instruction for performing the same
CN101539861B (en) Tool for graphical design and verification of general workflow
CN107077752A (en) Data visualization extensible architecture
CN102135873B (en) A kind of method and apparatus creating user interface
CN108597014B (en) Cross-platform rendering effect editing system based on visual programming
CN104731588B (en) Page layout document generating method and page layout file creating apparatus
CN111177825B (en) Parameterized modeling method and device
CN102509511A (en) Rapid map making system based on GIS (Geographic Information System) data
CN102750419A (en) Subway comprehensive pipeline aided design system and method
CN101146281A (en) A GUI creation model for mobile terminal
CN108647017A (en) A kind of parametrization quickly generates the integrated platform of three-dimensional interactive and Simulation Application software
CN110750254A (en) Flowchart editor implementation method based on Angular
CN104504171B (en) Modeling method based on unified modeling environment
CN109447406A (en) A kind of method of visioning procedure and the device of visioning procedure
CN111240670A (en) Method and device for quickly and automatically generating software graphical interface
CN108108194A (en) User interface edit methods and user interface editing machine
CN106250134B (en) The code automatic generation method of single language
CN115495069B (en) Model-driven coal industry software process implementation method, device and equipment
CN107423270B (en) Method for realizing real-time mutual conversion between on-line flow chart and code
CN112651711A (en) System for building collaborative design management platform based on XDB (X data base) file under BS (browser/server) architecture
CN109471580A (en) A kind of visualization 3D courseware editing machine and courseware edit methods
CN104298705A (en) Converting method of relational data and unstructured data
CN103677811B (en) Design system and method of spacecraft development process
CN105023290A (en) 3D scenery modeling visualization method and system based on AutoCAD platform
CN102646286B (en) Digital graph medium simulation method with three-dimensional space structure

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