An Examination of DSLs for Concisely Representing Model .ppt
《An Examination of DSLs for Concisely Representing Model .ppt》由会员分享,可在线阅读,更多相关《An Examination of DSLs for Concisely Representing Model .ppt(34页珍藏版)》请在麦多课文档分享上搜索。
1、An Examination of DSLs for Concisely Representing Model Traversals and Transformations,Jeff Gray University of Alabama at Birmingham Gbor Karsai Vanderbilt University/ISISHICSS-36,This work is supported by the DARPA IXO, under the Program Composition for Embedded Systems (PCES) program, Contract Num
2、ber: F33615-00-C-1695Support for this project was also provided by Boeing.,Overview,Three DSLs in two different applications Applications: Tool integration and aspect-oriented domain modeling (AODM) Focus of DSLs: Generation of complex data structures from high-level specifications Synthesis of iter
3、ative processes Generation of API wrappers from high-level specs Quantitative description of generated code,Tool Integration,Tool Integration,MM,LRU,FR,FDE,Tool-X,LRU,VAR,Tool-Y,OBS,UNIT,MSG,ALR,Integrated Model,Integrated Model Server (IMS),AEFR,FMECA,ADVISE,GME,RELEX,Browser,COM,CORBA,ADO,ADO,Text
4、,Excel (csv),IMS,Tool Integration Framework (TIF),IMS models can be viewedin a web browser,New tools can access the IMSdirectly through the CMI,Legacy tools require a bi-directional tool adapter,The CMI is specified in CORBA IDL and definesrules and data structures for accessing the IMS,MS Repositor
5、y sits on top of an ODBC database; currently Access or SQL Server,CORBA,Tool Integration Framework (TIF),IMS models can be viewedin a web browser,New tools can access the IMSdirectly through the CMI,Legacy tools require a bi-directional tool adapter,The CMI is specified in CORBA IDL and definesrules
6、 and data structures for accessing the IMS,CORBA,Focus of this portion of the talk:,DSLs for representing tool models as stored in the CMI,DSLs for representing model translation as traversal/visitor specifications,Pieces of the Translation,Structure of the models: Objects to be traversed What are t
7、he possible paths for traversals? Traversal sequences: How to traverse? What are the desired paths for traversals? Visitors: Actions to be taken What to do? Phases of processing Multiple passes over the structure,Tool Specification (Structure),paradigm Foo; model Top_Model .part Component components
8、; model Component .part Entity_1 ent_1;part Entity_2 ent_2;part Component subComponents;rel Rel aRel entity Entity_1 . entity Entity_2 . relation Rel Entity_1 src 1Entity_2 dst *; ,Generation of Data Structures,paradigm RELEX; model RELEX_Model attr string Name; part RELEX_Object objects;part Failur
9、e_Mode failure_Modes;rel RELEX_Failure_Mode rel_FM; entity RELEX_Object attr string Name; attr string Part_Number;attr string User_Text;attr string Reference;attr double Failure_Rate; entity Failure_Mode attr string Failure_Mode; attr string Local_Effects; attr string Next_Effects;attr string End_Ef
10、fects; attr string Failure_Detection_Method; attr long Mode_Severity_Code;attr double Failure_Mode_Ratio; attr double Failure_Effect_Probability;attr double Failure_Rate; relation RELEX_Failure_Mode RELEX_Object Owner 1 Failure_Mode Failures *; ,int RELEX_Model_M:get_objects(vector ,Structured Speci
11、fication of Translators (Traversal/Visitor),visitor Visitor at Component. traverse.;at Entity_1.;at Entity_2.;at Rel.traverse.; ,traversal Traversal using Visitor from Top_Model - to components. ;from Component. to entity_1., entity_2., subComponents., rel.;from Rel. to src., dst. ; ,Generation of T
12、raversal/Visitors, from ComponentIMS:Component_M , void Traversal_T:traverse(GME_4_0:Component_M ,Achieved Goals - Tool Integration,Using a DSL, the underlying CORBA data structures and service calls that are needed to perform the model integration are hidden. Using a DSL, the often tedious and repe
13、titive code fragments that are needed for iteration and transformation can be more concisely/intuitively specified. Separation of concerns: Cleaner solution by separating semantic (translator) and syntactic (adapter) issues,Aspect-Oriented Domain Modeling,Please see October 2001 issue of Communicati
14、ons of the ACM,Model-Integrated Computing (MIC) with the Generic Modeling Environment (GME),Generic Modeling Environment (GME) is a domain-specific modeling toolGrew out of over 14 years of research on computer-based systems in aerospace, instrumentation, manufacturing and robotics.It can be utilize
15、d in many different domains by providing a meta-level paradigm description. Paradigm describes all of the entities of the domain, as well as valid relationshipsA modeler first loads the domain paradigm and then constructs new models in that domain,Available for download at http:/www.isis.vanderbilt.
16、edu,Please see November 2001 issue of IEEE Computer,Difficulties in Managing Constraints,A,B,c,d,e,1,2,3,B,c,d,e,1,2,4,F,B,c,d,e,1,2,3,4,Multiple Levels of Hierarchy,Replicated Structures,Context Sensitive,Change Maintenance?,Process of Using a Model Weaver,GME,Quantification Over Base Code (AOP),We
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANEXAMINATIONOFDSLSFORCONCISELYREPRESENTINGMODELPPT

链接地址:http://www.mydoc123.com/p-378272.html