| In the Joint Experimental Platform developed by our unit,the object model described by TDL is the common language for the internal communication of the platform,and also is the basis for realizinig resource interoperability,reuse and composition.As one of the object model for the platform,SDO(stateful distributed object)integrates the remote method invocation and anonymous publish/subscribe mechanism,and provides a complete solution for remote access and states sharing of resources.The purpose of this dissertation is to develop modeling tool and compiling tool for TDL-based object model on the basis of the object model standards and the operation mechanism of SDO,in order to solve the problem that the object model of Joint experimental platform has low modeling automation and is lack of realize mechanism of SDO.The main research contents of this subject are as follows:Initially,this dissertation analysis the standard of meta model that form object model and confirm the expression of TDL for object model.Based on the study of the operation mechanism of SDO,this thesis confirm the realization principles of remote method invocation and anonymous publish/subscribe mechanism and design the structure of the object model definition file and the object model implementation file.Furthermore,this dissertation research on the visualization modeling method of object model and develop object model modeling tool.By analyzing the resource code of BOUML,this thesis confirm the expression of UML for the meta model of BOUML and design the expression of UML for the meta model of object model to realize graphical representation of object model.Then,this thesis designs the method of TDL file autogeneration on the basis of data structure of BOUML,and realizes the autogeneration of TDL file.Additionally,this dissertation research on the compiling method of TDL language,and develop object model compiling tool in accordance with the standard compiler structure,which is “lexical analysis – semantic analysis – the target file generation”.This thesis designs the mapping relation betweens the expression of TDL for object model and the expression of IDL for object model,the expression of C++ for object model.Then,this thesis uses UML activity diagrams to show the details of object model compiling tool.At the part of “the target file generation”,object model compiling tool complete the generation of C++ code files of object model with the aid of opendds_idl compiler and tao_idl compiler.Finally,this dissertation builds a test system consisting of four nodes,which are attacking missile flight simulation node,interceptor missile fire control simulation node,interceptor missile flight simulation node and the integrated display console node,to test the function of object model modeling tool and object model compiling tool.The result of test shows that object model modeling tool provides a friendly interface and is easy to operation,the TDL file generated by object model modeling tool conforms to TDL grammar standard,object model modeling tool will shorten the develop time of object model and improve the efficiency of the development of object model;object model compiling tool can realize the conversion between TDL file and code files of object model,which are object model definition file and object model implementation file,and the SDOs created by code files are capable of full support for remote method invocation and anonymous publish/subscribe mechanism. |