CN105989204A - Model component information stream construction method and system based on clone technology - Google Patents

Model component information stream construction method and system based on clone technology Download PDF

Info

Publication number
CN105989204A
CN105989204A CN 201510075966 CN201510075966A CN105989204A CN 105989204 A CN105989204 A CN 105989204A CN 201510075966 CN201510075966 CN 201510075966 CN 201510075966 A CN201510075966 A CN 201510075966A CN 105989204 A CN105989204 A CN 105989204A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
model
model component
cloning
component
data structure
Prior art date
Application number
CN 201510075966
Other languages
Chinese (zh)
Inventor
卿杜政
张进
李志平
杨凯
蔡继红
孙捷
Original Assignee
北京仿真中心
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

Links

Abstract

The invention discloses a model component information stream construction method and system based on a clone technology. The method comprises the following steps: obtaining a clone source object, generating a clone target object table, inquiring to obtain a model component which conforms to clone source object requirements from a model component library, and generating a model component set S; carrying out clone operation on the model component set S, and generating a model component information stream data structure DS1 which contains the clone target object; carrying out graphic plotting on the input and output connection relationship between all module components in the model component information stream data structure DS1, realizing a revision operation on the clone object table and the model component information stream data structure DS1, and generating a revised model component information stream data structure DS2; and writing and storing the model component information stream data structure DS1 and the clone target object table into an external storage file. The technical scheme disclosed by the invention can realize the complete copying of the input and output connection relationship between all module components, simplifies information stream graphical representation and lowers misarrangement difficulty.

Description

一种基于克隆技术的模型组件信息流构建方法及系统 A method of constructing the model components and a system stream based cloning

技术领域 FIELD

[0001] 本发明涉及一种模型组件信息流构建方法及系统。 [0001] The present invention relates to an assembly model construction method and system for information flow. 更具体地,涉及一种基于克隆技术的模型组件信息流构建方法及系统。 More particularly, to a method and system for constructing information flow model component based cloning techniques. 背景技术 Background technique

[0002] 信息流定义了模型组件间信息的输入、输出关系,是仿真系统集成的基础。 [0002] defines the input stream, the relationship between the output component information model, the simulation system is an integrated basis. 在大型复杂仿真系统中,存在许多同类型模型组件,其输入、输出关系一致或相近,按照通常的信息流构建方式,需要分别为每一个模型组件的输入、输出建立连接关系,工作繁琐,不能充分利用同类型模型组件输入、输出关系一致或相近的优势,且信息流显式图形表示复杂,排错困难,难以支持准确、高效的信息流构建。 In large and complex simulation system, there are many different types of model components, the same or similar input, output relationship, constructed according to the usual information flow mode, it is necessary to separately enter each model component, the output to establish a connection relation, tedious work, not take advantage of identical or similar components of the same type of model input-output relationship, and the graphical representation of the information flow explicit complex and difficult to troubleshoot, difficult to support accurate and efficient information flow constructs.

[0003] 因此,需要提供一种基于克隆技术的模型组件信息流构建方法及系统,通过实现克隆技术,进而实现基本模型组件输入、输出关系的完整复制,简化信息流图形表示,降低排错难度,以支持仿真系统信息流的高效构建。 [0003] Accordingly, a need to provide a component-based model of information flow cloning method and system constructed by cloning techniques to achieve, so as to realize a complete copy of the basic model component input and output relationship, the flow of information to simplify the graphical representation, reducing the difficulty of troubleshooting to support the construction of efficient simulation system of information flow. 发明内容 SUMMARY

[0004] 本发明要解决的技术问题是提供一种基于克隆技术的模型组件信息流构建方法及系统,以解决建立模型组件输入、输出连接关系的繁琐性,信息流显示图像表示复杂、排错困难的问题。 [0004] The present invention is to solve the technical problem of providing a component-based model to build traffic cloning method and system to solve the cumbersome assembly of the model input, output connection relationship display image representing complex information flow, troubleshooting difficult problem.

[0005] 为解决上述技术问题,本发明采用下述技术方案: [0005] To solve the above problems, the present invention adopts the following technical scheme:

[0006] —种基于克隆技术的模型组件信息流构建方法,该方法包括 [0006] - component-based model constructs stream cloning technique, the method comprising

[0007] 获取克隆源对象,生成克隆目标对象表,在模型组件库中查询获得符合克隆源对象要求的模型组件并生成模型组件集合S ; [0007] Gets cloning source object, the target object table generating clone, cloning the query to obtain the source object model component meet the requirements in the model component library and generates a set of model components S;

[0008] 对模型组件集合S进行克隆操作,生成含克隆目标对象的模型组件信息流数据结构DS1 ; [0008] The model component set S during cloning, clones containing the model component to generate the target object stream DSl data structure;

[0009] 图形绘制模型组件信息流数据结构DS1中各模型组件的输入和输出连接关系,实现对克隆对象表和模型组件信息流数据结构DS1的修订操作,并生成修订后的模型组件信息流数据结构DS2 ; [0009] Graphics rendering model component stream data structure DS1 input and output connection relationship model components, to achieve a correction operation Clones object table and model components stream data structure DS1 and generates model component stream data revised structure DS2;

[0010] 将模型组件信息流数据结构DS1和克隆目标对象表写入并保存到外存文件中。 [0010] The model component stream data structure DS1 and the cloning of the object table is written and saved to a file in the external memory.

[0011] 优选的,所述获取克隆源对象包括获取克隆源对象的输入、输出连接关系CG、端口名称、端口类型和端口数据类型; [0011] Preferably, the obtaining includes obtaining source object cloning cloning source object input, output connection relationship of the CG, port name, port type and data type;

[0012] 获得符合克隆源要求的模型组件包括获取与克隆源对象的端口名称、端口类型、 端口数据类型相关的模型组件。 [0012] clones obtained model components meet the requirements source comprises acquiring source object cloning port name, port type, port data related to the type model component.

[0013] 优选的,所述针对模型组件集合S中的每一个模型组件, [0013] Preferably, each of the set of model components for the S model components,

[0014] 设置其与克隆源对象的端口名称、端口类型、端口数据相同的模型组件的克隆标志为TRUE ; [0014] provided that the source object clone port name, port type, the same model components cloned flag data port TRUE;

[0015] 设置其输入、输出连接关系为CG,根据CG设置模型组件间的引用,并将克隆目标对象表加入到该模型组件中,生成模型组件信息流数据结构DS1。 [0015] provided that the input and output connection relationship of CG, CG in accordance with the reference provided between model components and cloned target object table is added to the component model, the model component generates stream data structure DS1.

[0016] 优选的,所述图形绘制模型组件信息流数据结构DS1进一步包括 [0016] Preferably, rendering the graphical model component stream data structure further comprises a DS1

[0017] 判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE: [0017] Cloning of the flag of each model component model component determined whether the set S TRUE:

[0018] 如果为TRUE,则该模型组件不绘制; [0018] If TRUE, then the model component is not drawn;

[0019] 如果不为TRUE,则正常绘制该模型组件,在绘制其输入、输出连接关系时,判断其连接的目标模型组件的克隆标志是否为TRUE: [0019] If not TRUE, the normal drawing of the model components, the drawing input, output connection relationship determination flag cloned target model whether the connected component which is TRUE:

[0020] 如果是,则该连接线不绘制; [0020] If it is, the connection line is not drawn;

[0021] 如果不是,则正常绘制。 [0021] If not, the normal drawing.

[0022] 优选的,所述外存文件写入进一步包括, [0022] Preferably, the external memory further comprises a file write,

[0023] 判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE: [0023] Cloning of the flag of each model component model component determined whether the set S TRUE:

[0024] 如果为TRUE,则不执行任何操作; [0024] If TRUE, do nothing;

[0025] 如果不为TRUE,首先写入其模型组件基本信息和输入、输出连接信息,其次查询其克隆目标对象表,按顺序写入每一个克隆目标对象名,生成外存文件。 [0025] If not TRUE, the first model component which writes the basic information and input and output the connection information, secondly cloned target object table query, write the name of the target object for each clone in order to generate the external memory file.

[0026] —种基于克隆技术的模型组件信息流构建系统,该系统包括 [0026] - component-based model constructs cloning system stream, the system comprising

[0027] 预处理PRE模块,用于获取克隆源对象,生成克隆目标对象表,在模型组件库中查询获得符合克隆源对象要求的模型组件并生成模型组件集合S ; [0027] PRE preprocessing module, configured to obtain cloning source object, the target object table generating clone, cloning the query to obtain the source object model component meet the requirements in the model component library and generates a set of model components S;

[0028] 克隆处理CLONE模块,用于接收克隆目标对象表和模型组件集合S,对模型组件集合S完成克隆操作,生成含克隆目标对象的信息流数据结构DS1 ; [0028] Cloning CLONE processing module for receiving a target object table and cloning model components set S, the set S of model components to complete the cloning operation, generates stream data structure DS1 clone containing a target object;

[0029] 综合管理MANAGE模块,用于图形绘制模型组件信息流数据结构DS1中各模型组件的输入和输出连接关系,实现对克隆对象表和模型组件信息流数据结构DS1的修订操作, 并生成修订后的模型组件信息流数据结构DS2 ; [0029] MANAGE integrated management module for input and output connection relationship model component to draw a pattern model component stream data structure DS1, the operation of the implement revised model components and clone tables stream data structure DS1 and generates revised the model component stream data structure DS2;

[0030] 信息流存储处理STORE模块,用于将模型组件信息流数据结构DS1和克隆目标对象表写入并保存到外存文件中。 [0030] STORE stream storage processing module, configured to model component stream data structure DS1 and the cloning of the object table is written and saved to a file in the external memory.

[0031] 优选的,所述获取克隆源对象包括获取克隆源对象的输入、输出连接关系CG、端口名称、端口类型和端口数据类型; [0031] Preferably, the obtaining includes obtaining source object cloning cloning source object input, output connection relationship of the CG, port name, port type and data type;

[0032] 获得符合克隆源要求的模型组件包括获取与克隆源对象的与端口名称、端口类型、端口数据类型相关的模型组件。 [0032] The obtained model components meet the requirements cloning source comprises acquiring source object cloning and port name, port type, port data related to the type model component.

[0033] 优选的,所述克隆处理CLONE模块中,针对模型组件集合S中的每一个模型组件, 设置其与克隆源对象的端口名称、端口类型、端口数据相同的模型组件的克隆标志CFLAG 为TRUE,设置其输入、输出连接关系为CG,根据CG设置模型组件间的引用,并将克隆目标对象表加入到该模型组件中,生成新的模型组件信息流数据结构DS1。 [0033] Preferably, the clones CLONE processing module, model component model for each component in the set S, which is provided with a port name of the source object clone, clone flag port type, the same model of a component to port data CFLAG TRUE, set its input and output connection relationship of CG, CG in accordance with the reference provided between model components and cloned target object table is added to the model component to generate the new model component stream data structure DS1.

[0034] 优选的,所述综合管理MANAGE模块中,图形绘制模型组件信息流数据结构DS1中各模型组件的输入和输出连接关系进一步包括 [0034] Preferably, the integrated management MANAGE module, the graphics rendering model component stream data structure DS1 input and output connection relationship of each model component further comprises

[0035] 判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE: [0035] Cloning of the flag of each model component model component determined whether the set S TRUE:

[0036] 如果为TRUE,则该模型组件不绘制; [0036] If TRUE, then the model component is not drawn;

[0037] 如果不为TRUE,则正常绘制该模型组件,在绘制其输入、输出连接关系时,判断其连接的目标模型组件的克隆标志是否为TRUE: [0037] If not TRUE, the normal drawing of the model components, the drawing input, output connection relationship determination flag cloned target model whether the connected component which is TRUE:

[0038] 如果是,则该连接线不绘制; [0038] If it is, the connection line is not drawn;

[0039] 如果不是,则正常绘制。 [0039] If not, the normal drawing.

[0040] 优选的,所述信息流存储处理STORE模块中,将模型组件信息流数据结构DS1和克隆目标对象表写入外存文件进一步包括 [0040] Preferably, the stream storage STORE processing module, model component stream data structure DS1 and the cloning of the target object table write external memory file further comprises

[0041] 判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE: [0041] Cloning of the flag of each model component model component determined whether the set S TRUE:

[0042] 如果为TRUE,则不执行任何操作; [0042] If TRUE, do nothing;

[0043] 如果不为TRUE,首先写入其模型组件基本信息和输入、输出连接信息,其次查询其克隆目标对象表,按顺序写入每一个克隆目标对象名,生成外存文件。 [0043] If not TRUE, the first model component which writes the basic information and input and output the connection information, secondly cloned target object table query, write the name of the target object for each clone in order to generate the external memory file.

[0044] 本发明的有益效果如下: [0044] Advantageous effects of the present invention are as follows:

[0045] 本发明所述技术方案通过实现克隆技术,实现基本模型组件输入、输出关系的完整复制,简化信息流图形表示,降低排错难度。 [0045] The technical solution of the present invention to achieve cloning techniques, to achieve a complete copy of the basic model component input and output relationship, the flow of information to simplify the graphical representation, reducing the difficulty of troubleshooting. 附图说明 BRIEF DESCRIPTION

[0046] 下面结合附图对本发明的具体实施方式作进一步详细的说明; [0046] DETAILED DESCRIPTION OF THE DRAWINGS Embodiment of the present invention will be described in further detail;

[0047] 图1示出本发明实施例中一种基于克隆技术的模型组件信息流构建方法流程示意图; [0047] FIG. 1 shows an embodiment of the present invention, a schematic diagram of one method of constructing the process model based on the component information stream cloning;

[0048] 图2示出了本发明实施例中一种基于克隆技术的模型组件信息流构建系统结构示意图。 [0048] FIG. 2 shows a system structure diagram of the present invention is constructed model component stream based cloning embodiment of FIG. 具体实施方式 detailed description

[0049] 为了更清楚地说明本发明,下面结合优选实施例和附图对本发明做进一步的说明。 [0049] In order to more clearly illustrate the present invention, the following examples and in conjunction with the accompanying drawings of the preferred embodiment of the present invention will be further described. 附图中相似的部件以相同的附图标记进行表示。 Drawings in which like components are denoted by the same reference numerals. 本领域技术人员应当理解,下面所具体描述的内容是说明性的而非限制性的,不应以此限制本发明的保护范围。 Those skilled in the art will appreciate, the content of the detailed description below are illustrative and not restrictive, and should not be used to limit the scope of the present invention.

[0050] 如图1所示,本发明公开了一种基于克隆技术的模型组件信息流构建方法,该方法包括: [0050] As shown in FIG. 1, the present invention discloses a component-based model construction cloning stream, the method comprising:

[0051] S1、获取克隆源对象,生成克隆目标对象表,在模型组件库中查询获得符合克隆源对象要求的模型组件并生成模型组件集合S ; [0051] S1, acquired cloning source object, the target object table generating clone, cloning the query to obtain the source object model component meet the requirements in the model component library and generates a set of model components S;

[0052] S2、对模型组件集合S进行克隆操作,生成含克隆目标对象的模型组件信息流数据结构DS1 ; [0052] S2, the set S of model components during cloning, clones containing the model component to generate the target object stream DSl data structure;

[0053] S3、图形绘制模型组件信息流数据结构DS1中各模型组件的输入和输出连接关系,实现对克隆对象表和模型组件信息流数据结构DS1的修订操作,并生成修订后的模型组件信息流数据结构DS2 ; [0053] S3, the graphics rendering model component stream data structure DS1 input and output connection relationship model components, to achieve a correction operation Clones object table and model components stream data structure DS1 and generates a model component revised information stream data structure DS2;

[0054] S4、将模型组件信息流数据结构DS1和克隆目标对象表写入并保存到外存文件中。 [0054] S4, the model component stream data structure DS1 and the cloning of the object table is written and saved to a file in the external memory.

[0055] 获取克隆源对象包括获取克隆源对象的输入、输出连接关系CG,以及端口名称PN、端口类型PT、端口数据类型TOT ;获得符合克隆源要求的模型组件集合S包括获取与克隆源对象的端口名称PN、端口类型PT、端口数据类型PDT相关的模型组件。 [0055] Gets cloning source object comprises acquiring cloning source object input, output connection relationship of the CG, and a port name the PN, port type PT, port data type of the TOT; obtained meet cloning source requirements model components set S includes obtaining and cloning the source object port name PN, port type PT, data type port PDT relevant model components.

[0056] 针对模型组件集合S中的每一个模型组件,设置与克隆源对象的端口名称、端口类型、端口数据相同的模型组件的克隆标志为TRUE,设置其输入、输出连接关系为CG,根据CG设置模型组件间的引用,并将克隆目标对象表加入到该模型组件中,生成模型组件信息流数据结构DS1。 [0056] For each model component model component in the set S, the port name is provided cloning source object, port types, cloned as marked model component port data is TRUE, set its input and output connection relationship of the CG, according to CG between the reference set of model components, and cloned target object table is added to the component model, the model component generates stream data structure DS1.

[0057] 图形绘制模型组件信息流数据结构DS1进一步包括,判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE:如果是,则该模型组件不绘制;如果不是,则正常绘制该模型组件,在绘制其输入、输出连接关系时,判断其连接的目标模型组件的克隆标志是否为TRUE,如果是,则该连接线不绘制,否则正常绘制。 [0057] Graphics rendering model component stream data structure DS1 further comprising cloning flag each model component determined model component set S whether the TRUE: If it is, the model components are not drawn; if not, then normal drawing the model components, when drawing the input, output connection relationship determination flag cloned target model whether the connected component which is TRUE, if so, the connection line is not drawn, or drawn normally.

[0058] 将模型组件信息流数据结构DS1和克隆目标对象表写入外存文件进一步包括,判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE:如果模型组件的克隆标志为TRUE,则不执行任何操作;如果模型组件的克隆标志不为TRUE,首先写入其模型组件基本信息和输入、输出连接信息,其次查询其克隆目标对象表,按顺序写入每一个克隆目标对象名,生成外存文件。 [0058] The model component stream data structure DS1 and the cloning of the target object table write the external memory further comprises a file, each flag cloning a model component model component determined whether or not the set S is TRUE: If the clone flag is TRUE model component , no action is performed; if not the model component clone flag is TRUE, it first writes the basic information and the model component input and output the connection information, secondly cloned target object table query, write the name of each clone sequence audiences generating external memory file.

[0059] 如图2所示,本发明还公开了一种基于克隆技术的模型组件信息流构建系统,该系统包括预处理PRE模块1、克隆处理CLONE模块2、综合管理MANAGE模块3和信息流存储处理STORE模块4。 [0059] 2, the present invention also discloses a component-based model of the stream constructed cloning system that includes a pre-PRE module 1, module 2 was cloned CLONE processing, integrated management of information flow and MANAGE module 3 sTORE storage process module 4.

[0060] 预处理PRE模块1,用于获取克隆源对象,生成克隆目标对象表,在模型组件库中查询获得符合要求的模型组件并生成模型组件集合S ;克隆处理CLONE模块2,用于接收克隆目标对象表和模型组件集合S,对模型组件集合S完成克隆操作,生成含克隆目标对象的信息流数据结构DS1 ;综合管理MANAGE模块3,用于将模型组件信息流数据结构DS1进行图形化绘制和图形化显示,并可以实现针对克隆目标对象表的图形化显示,对克隆对象表和模型组件信息流数据结构DS1的删除、浏览等编辑操作,并生成修订后的模型组件信息流数据结构DS2 ;信息流存储处理STORE模块4,用于将模型组件信息流数据结构DS1和克隆目标对象表写入并保存到外存文件中。 [0060] Pretreatment 1 PRE module, configured to obtain cloning source object, the target object to generate clones table, the query model components to meet the requirements to obtain the model component generates a library and a set of model components S; clone CLONE processing module 2 for receiving cloning of the target object table and model components set S, the set S of model components cloning operation is completed, the stream data structure DS1 generated clone containing the target object; mANAGE integrated management module 3 for model component stream data structure DS1 patterned drawing and graphical display, and can achieve the display for a graphical cloned target object list, the deletion of clones object table and model components stream data structure DS1, the information browsing editing operations, and generates a model component revised stream data structure DS2; sTORE stream storage processing block 4, the model components for stream data structure DS1 and the cloning of the object table is written and saved to a file in the external memory.

[0061] 预处理PRE模块1,用于生成可克隆的模型组件集合。 [0061] PRE preprocessing module 1, for generating a set of model components can be cloned. 获取选择克隆源对象的输入、输出连接关系CG,以及端口名称PN、端口类型PT、端口数据类型TOT ;生成克隆目标对象表;在模型组件库中查询,获取与端口名称PN、端口类型PT、端口数据类型PDT相关的所有模型组件,生成模型组件集合S ;将连接关系CG和模型组件集合S发给克隆处理CLONE模块。 Get clones were selected source object input, output connection relationship of the CG, and a port name the PN, port type PT, port data type of the TOT; generating clone target object table; query model component library, acquires the port name the PN, port type PT, PDT port data type associated for all model components, generating a set of model components S; the connection relationship set S CG model components and distributed processing cLONE cloning module.

[0062] 克隆处理CLONE模块2,用于生成模型组件信息流数据结构。 [0062] Cloning CLONE processing module 2 for generating a model component stream data structures. 接收连接关系CG和模型组件集合S,遍历模型组件集合S,针对模型组件集合S中的每一个模型组件,设置其克隆标志CFLAG为TRUE,设置其输入、输出连接关系CG,根据CG设置模型组件间的引用,并将克隆目标对象表加入到该模型中,生成新的模型组件信息流数据结构DS1 ;将模型组件信息流数据结构DS1发送给综合管理MANAGE模块。 Receiving a set S connection relationship CG and model components, traversing the model component set S, for each model component model component in the set S, provided cloned flag CFLAG is TRUE, set its input and output connection relationship CG, according CG set of model components between the reference and the target clones were added to the object list model, the model component to generate a new stream data structure DS1; sending the model component stream data structure DS1 to mANAGE integrated management module.

[0063] 综合管理MANAGE模块3,用于生成图形化信息流表示。 [0063] MANAGE integrated management module 3, for generating a graphical flow representation of information. 遍历接收模型组件信息流数据结构DS1,判断模型组件的CFLAG是否为TRUE,如果是,则该模型组件不绘制;如果不是,则正常绘制该模型组件,在绘制其输入、输出连接关系时,判断其连接的目标模型组件的CFLAG是否为TRUE,如果是,则该连接线不绘制,否则正常绘制;图形化显示模型组件信息流数据结构DS1。 Traversing receiving model component stream data structure DS1, the judgment module assembly CFLAG whether to TRUE, if so, the model components are not drawn; if not, then the normal drawing of the model components, the drawing of its input and output connection relationship is determined CFLAG target model which whether the connected component is TRUE, if so, the connection line is not drawn, or drawn normal; graphic display model component stream data structure DS1.

[0064] 综合管理MANAGE模块3,用于实现克隆目标对象的编辑操作。 [0064] MANAGE integrated management module 3, for editing operations to achieve cloning of the target object. 图形化显示克隆源对象的克隆目标对象表,在克隆目标对象表中指定对象,可选择删除操作则该目标对象删除,并遍历模型组件表,删除与该目标对象有输入。 Graphical display target object table clones clone the source object, the target object specified object cloning table select the delete operation to delete the target object, and traversing the model component table, delete input to the target object. 输出连接关系的信息;可选择浏览操作则显示该目标对象的所有输入、输出连接信息;生成修订后的模型组件信息流数据结构DS2〇 An output connection relationship information; selectively operating the browser displays the target object all inputs, outputs connection information; model component data stream to generate the revised structure DS2〇

[0065] 信息流存储处理STORE模块4,用于生成模型组件信息流文件。 [0065] STORE stream storage processing module 4 for generating a model component stream file. 接收克隆处理CLONE模块发送的信息流数据结构DS1,并以写方式创建并打开外存文件,如果模型组件的CFLAG为TRUE,则不执行任何操作;如果模型组件的CFLAG不为TRUE,首先写入其模型组件基本信息和输入、输出连接信息,其次查询其克隆目标对象表,按顺序写入每一个克隆目标对象名,最终生成规定的格式外存文件。 Cloning reception processing stream data structure DS1 CLONE sent by the module, and for writing the file to create and open the external memory, if CFLAG model components to TRUE, no action is performed; if not CFLAG model component is TRUE, first written model component which basic information and input and output the connection information, secondly cloned target object table query, write the name of each clone of the target object in order to ultimately produce a predetermined external memory file format.

[0066] 综上所述,本发明所述技术方案通过实现克隆技术,解决了建立模型组件输入、输出连接关系的繁琐性,信息流显示图像表示复杂、排错困难的问题。 [0066] In summary, the techniques of the present invention is achieved by cloning techniques, to solve the problem of complicated to establish input and output connection relationship of the model components, the display image showing the information flow complex and difficult to troubleshoot. 进而实现了基本模型组件输入、输出关系的完整复制,简化信息流图形表示,降低排错难度,以支持仿真系统信息流的高效构建。 Thus achieving a complete copy of the basic model component input and output relationship, the flow of information to simplify the graphical representation, reducing the difficulty of debugging, emulation system to support efficient information flow constructs.

[0067] 显然,本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定,对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动,这里无法对所有的实施方式予以穷举,凡是属于本发明的技术方案所引伸出的显而易见的变化或变动仍处于本发明的保护范围之列。 [0067] Clearly, the above-described embodiments of the invention are merely illustrative of the present invention is done for clarity of illustration, and are not limiting embodiment of the present invention, those of ordinary skill in the art, on the basis of the above description of the You can also make changes or other changes in different forms, there can not be exhaustive of all embodiments, the obvious change or change who belong to the invention of technical solutions corollary still in the columns of the scope of protection of the present invention.

Claims (10)

  1. 1.一种基于克隆技术的模型组件信息流构建方法,其特征在于,所述该方法包括获取克隆源对象,生成克隆目标对象表,在模型组件库中查询获得符合克隆源对象要求的模型组件并生成模型组件集合S ;对模型组件集合S进行克隆操作,生成含克隆目标对象的模型组件信息流数据结构DS1 ;图形绘制模型组件信息流数据结构DS1中各模型组件的输入和输出连接关系,实现对克隆对象表和模型组件信息流数据结构DS1的修订操作,并生成修订后的模型组件信息流数据结构DS2 ;将模型组件信息流数据结构DS1和克隆目标对象表写入并保存到外存文件中。 1. A method of constructing the model component cloning technology based information flow, wherein said cloning The method includes acquiring source object, the target object to generate clones table, the query model component obtained meet requirements in the cloning source object model component library and generating a model component set S; model components set S cloning operation, to generate a model component containing cloned target object stream data structure DS1; graphics drawing input and output connection relationship model component stream data structure DS1 each model of the component, Revision achieve the object table and the operation of the model components clones stream data structure DS1, the model components and generates stream data structure DS2 revised; model component stream data structure DS1 and the cloning of the object table is written and stored into the external memory file.
  2. 2.根据权利要求1所述的模型组件信息流构建方法,其特征在于,所述获取克隆源对象包括获取克隆源对象的输入、输出连接关系CG、端口名称、端口类型和端口数据类型;获得符合克隆源要求的模型组件包括获取与克隆源对象的端口名称、端口类型、端口数据类型相关的模型组件。 The assembly of the information flow model construction method according to claim 1, wherein said acquiring includes acquiring source object cloning cloning source object input, output connection relationship of the CG, port name, port type and data type; obtained meet the requirements of model components cloning source comprises acquiring source object cloning port name, port type, port data related to the type model component.
  3. 3.根据权利要求1所述的模型组件信息流构建方法,其特征在于,所述针对模型组件集合S中的每一个模型组件,设置其与克隆源对象的端口名称、端口类型、端口数据相同的模型组件的克隆标志为TRUE ;设置其输入、输出连接关系为CG,根据CG设置模型组件间的引用,并将克隆目标对象表加入到该模型组件中,生成模型组件信息流数据结构DS1。 The assembly of the information flow model construction method according to claim 1, wherein said component model for each model component in the set S, which is provided with a port name of the source object clone, the same port type, port data cloning flag model component is TRUE; set its input and output connection relationship of CG, CG in accordance with the reference provided between model components and cloned target object table is added to the component model, the model component generates stream data structure DS1.
  4. 4.根据权利要求1所述的模型组件信息流构建方法,其特征在于,所述图形绘制模型组件信息流数据结构DS1进一步包括,判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE:如果为TRUE,则该模型组件不绘制;如果不为TRUE,则正常绘制该模型组件,在绘制其输入、输出连接关系时,判断其连接的目标模型组件的克隆标志是否为TRUE:如果是,则该连接线不绘制;如果不是,则正常绘制。 The assembly of the information flow model construction method according to claim 1, wherein rendering the graphical model component stream data structure further comprises a DS1, cloning flag each model component model component determined whether the set S TRUE: If TRUE, then the model component is not drawn; if not TRUE, the normal drawing of the model components, the drawing of its input and output connection relationship determining cloning flag target model of the component is connected whether the TRUE: if that the connection line is not drawn; if not, then the normal drawing.
  5. 5.根据权利要求1所述的模型组件信息流构建方法,其特征在于,所述外存文件写入进一步包括判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE:如果为TRUE,则不执行任何操作;如果不为TRUE,首先写入其模型组件基本信息和输入、输出连接信息,其次查询其克隆目标对象表,按顺序写入每一个克隆目标对象名,生成外存文件。 The assembly of the information flow model construction method according to claim 1, wherein the external memory further comprises a file write flag cloning each model component model component determined whether or not the set S is TRUE: if TRUE , no action is performed; if not TRUE, the first model component which writes the basic information and input and output the connection information, secondly cloned target object table query, write the name of the target object for each clone in order to generate the external memory file .
  6. 6.—种基于克隆技术的模型组件信息流构建系统,其特征在于,所述该系统包括预处理PRE模块,用于获取克隆源对象,生成克隆目标对象表,在模型组件库中查询获得符合克隆源对象要求的模型组件并生成模型组件集合S ;克隆处理CLONE模块,用于接收克隆目标对象表和模型组件集合S,对模型组件集合S 完成克隆操作,生成含克隆目标对象的信息流数据结构DS1 ;综合管理MANAGE模块,用于图形绘制模型组件信息流数据结构DS1中各模型组件的输入和输出连接关系,实现对克隆对象表和模型组件信息流数据结构DS1的修订操作,并生成修订后的模型组件信息流数据结构DS2 ;信息流存储处理STORE模块,用于将模型组件信息流数据结构DS1和克隆目标对象表写入并保存到外存文件中。 6.- constructs based system model component stream cloning technology, wherein the system comprises said pre-PRE module, configured to obtain cloning source object, the target object table generated clones, query database in compliance with the model assembly cloning claim source object model component and the model component to generate the set S; clone cLONE processing module for receiving a target object table and cloning model components set S, the set S of model components to complete the cloning operation, generates information data stream containing cloned target object structure DS1; mANAGE integrated management module for input and output connection relationship model component to draw a pattern model component stream data structure DS1, the operation of the implement revised model components and clone tables stream data structure DS1 and generates revised the model component stream data structure DS2; sTORE stream storage processing module, configured to model component stream data structure DS1 and the cloning of the object table is written and saved to a file in the external memory.
  7. 7.根据权利要求6所述的模型组件信息流构建系统,其特征在于,所述获取克隆源对象包括获取克隆源对象的输入、输出连接关系CG、端口名称、端口类型和端口数据类型;获得符合克隆源要求的模型组件包括获取与克隆源对象的与端口名称、端口类型、端口数据类型相关的模型组件。 The information flow model component construction system according to claim 6, wherein said acquiring includes acquiring source object cloning cloning source object input, output connection relationship of the CG, port name, port type and data type; obtained meet the requirements of model components cloning source comprises acquiring source object cloning and port name, port type, port data related to the type model component.
  8. 8.根据权利要求6所述的模型组件信息流构建系统,其特征在于,所述克隆处理CLONE 模块中,针对模型组件集合S中的每一个模型组件,设置其与克隆源对象的端口名称、端口类型、端口数据相同的模型组件的克隆标志CFLAG为TRUE,设置其输入、输出连接关系为CG,根据CG设置模型组件间的引用,并将克隆目标对象表加入到该模型组件中,生成新的模型组件信息流数据结构DS1。 8. The building system model component stream according to claim 6, wherein said processing CLONE cloning module, component models for each model component in the set S, which is provided with a port name of the source object cloning, cloning flag port type, the same data model components CFLAG port is TRUE, set its input and output connection relationship of CG, CG in accordance with the reference provided between model components and cloned target object table is added to the model component to generate a new model component stream data structure DS1.
  9. 9.根据权利要求6所述的模型组件信息流构建系统,其特征在于,所述综合管理MANAGE模块中,图形绘制模型组件信息流数据结构DS1中各模型组件的输入和输出连接关系进一步包括判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE:如果为TRUE,则该模型组件不绘制;如果不为TRUE,则正常绘制该模型组件,在绘制其输入、输出连接关系时,判断其连接的目标模型组件的克隆标志是否为TRUE:如果是,则该连接线不绘制;如果不是,则正常绘制。 9. The building system model component stream according to claim 6, wherein said integrated MANAGE management module, a connection relationship of input and output model components rendering graphics data structure DS1 stream each further comprises a model of the component is determined cloning flag of each model component model components in the set S whether TRUE: if TRUE, then the model component is not drawn; If not TRUE, the normal drawing of the model component, the connection relation when drawing the input, output, Analyzing the target model cloning flag whether the connected component which is TRUE: If yes, then the connection line is not drawn; if not, then the normal drawing.
  10. 10.根据权利要求6所述的模型组件信息流构建系统,其特征在于,所述信息流存储处理STORE模块中,将模型组件信息流数据结构DS1和克隆目标对象表写入外存文件进一步包括判断模型组件集合S中的每一个模型组件的克隆标志是否为TRUE:如果为TRUE,则不执行任何操作;如果不为TRUE,首先写入其模型组件基本信息和输入、输出连接信息,其次查询其克隆目标对象表,按顺序写入每一个克隆目标对象名,生成外存文件。 10. The assembly of the information flow model building system according to claim 6, wherein said stream storage STORE processing module, model component stream data structure DS1 and the cloning of the target object table write external memory file further comprises cloning flag each model component model component determined whether the set S TRUE: if TRUE, no action is performed; if not TRUE, the first model component which writes the basic information and input and output the connection information, followed by the query cloned target object table, each clone are sequentially written target object name, the file generating external memory.
CN 201510075966 2015-02-12 2015-02-12 Model component information stream construction method and system based on clone technology CN105989204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510075966 CN105989204A (en) 2015-02-12 2015-02-12 Model component information stream construction method and system based on clone technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510075966 CN105989204A (en) 2015-02-12 2015-02-12 Model component information stream construction method and system based on clone technology

Publications (1)

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

Family

ID=57042087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510075966 CN105989204A (en) 2015-02-12 2015-02-12 Model component information stream construction method and system based on clone technology

Country Status (1)

Country Link
CN (1) CN105989204A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060074736A1 (en) * 2004-10-01 2006-04-06 Microsoft Corporation Programming interface for a componentized and extensible workflow model
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060074736A1 (en) * 2004-10-01 2006-04-06 Microsoft Corporation Programming interface for a componentized and extensible workflow model
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 仿真中的克隆及剪枝技术研究", 《系统仿真学报》 *

Similar Documents

Publication Publication Date Title
US20080225058A1 (en) Effects applied to images in a browser
US20110249002A1 (en) Manipulation and management of links and nodes in large graphs
US20050289450A1 (en) User interface virtualization
US20160062555A1 (en) System for providing dynamic linked panels in user interface
US20060224607A1 (en) Method and system for aggregating rules that define values for the same property associated with the same document element
US20110271172A1 (en) Temporary formatting and charting of selected data
Liu et al. CoMaya: incorporating advanced collaboration capabilities into 3d digital media design tools
US20080288861A1 (en) Generating a word-processing document from database content
CN101697120A (en) Relational database based generation method of J2EE code
CN101727324A (en) Code generation method and device
US20130117656A1 (en) Conversion of web template designs
CN102509511A (en) Rapid map making system based on GIS (Geographic Information System) data
CN101645010A (en) System and method for automatically generating code
CN102609252A (en) Intelligent configuration method for logic menu resources on basis of measurement instruments
CN102012945A (en) User-oriented database management system
US20150134629A1 (en) Concurrent preparation of multiple versions of a website
CN101071416A (en) Report template generating system, development tool, development method and report client end
US20060200482A1 (en) System, Method and Program Product for Setting and Managing Breakpoints in a Data Schema Mapping Editor
CN102521120A (en) Software automation test system and method
Li et al. Geometry synthesis on surfaces using field-guided shape grammars
CN102722372A (en) Method and system for automatically generating codes through classification and configuration
CN103605857A (en) Spacecraft assembly oriented three-dimensional structured process design system and method
CN102866886A (en) Web-based visual algorithm animation development system
US20060107220A1 (en) Method and system for displaying an annotated file
Himsolt Graph Ed: An interactive tool for developing graph grammars

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination