{"title":"A Translation Mechanism from CPL to Java Code Based on Component Reuse","authors":"Gu Zheng, Yunzhan Gong, Zhaohong Yang, Xin Zou","doi":"10.1109/CCCM.2008.197","DOIUrl":null,"url":null,"abstract":"CPL (Call Process Language) is a scripting language for the description and control of communication service, and it expresses its content by using functional component in XML language. This paper presents a component reuse mechanism, and defines a matrix technique to inspect the conflict of component composition. By comparing the difference of CPL and Java grammar, this paper brings forward a translation mechanism, via which we can translate CPL to equal functional Java code in the framework of XML language. This mechanism adopts the idea of EJB container, and constructs the whole services after the form of class object, and describes the CPL componenst as JavaBeans. By this way, the Java code translated has character of easily readable, highly reusable and extendable. This mechanism is applied in our service creation system, and achieves good results.","PeriodicalId":326534,"journal":{"name":"2008 ISECS International Colloquium on Computing, Communication, Control, and Management","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2008-08-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2008 ISECS International Colloquium on Computing, Communication, Control, and Management","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CCCM.2008.197","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
CPL (Call Process Language) is a scripting language for the description and control of communication service, and it expresses its content by using functional component in XML language. This paper presents a component reuse mechanism, and defines a matrix technique to inspect the conflict of component composition. By comparing the difference of CPL and Java grammar, this paper brings forward a translation mechanism, via which we can translate CPL to equal functional Java code in the framework of XML language. This mechanism adopts the idea of EJB container, and constructs the whole services after the form of class object, and describes the CPL componenst as JavaBeans. By this way, the Java code translated has character of easily readable, highly reusable and extendable. This mechanism is applied in our service creation system, and achieves good results.
CPL (Call Process Language)是一种用于描述和控制通信服务的脚本语言,它使用XML语言中的功能组件来表达其内容。提出了一种组件复用机制,并定义了一种矩阵技术来检测组件组合的冲突。通过比较CPL和Java语法的差异,提出了一种翻译机制,通过该机制可以将CPL翻译成XML语言框架下具有同等功能的Java代码。该机制采用EJB容器的思想,以类对象的形式构造整个服务,并将CPL组件描述为JavaBeans。通过这种方式,翻译出来的Java代码具有易读、高度可重用和可扩展的特点。该机制应用于我们的服务创建系统中,取得了良好的效果。