首页> 外文会议>Energy-Sources Technology Conference >PROCEDURAL ARGUMENT SETTING: AN AUTOMATED APPROACH
【24h】

PROCEDURAL ARGUMENT SETTING: AN AUTOMATED APPROACH

机译:程序论点设置:自动化方法

获取原文

摘要

Software reuse has been widely believed to be one of the key approaches to relieve the chronic problems of software development. Reuse is defined as the reapplication of existing software entities in order to reduce the development cost of anew system [Bigg89]. Reusability, as another commonly cited notion in software engineering, is defined as a measure of the ease with which one can use those previously acquired entities [Prie87a]. There is a tradeoff between reuse and reusability. In order to increase the payoff from the reuse of a software component, we tend to make it very general in the sense that it can be used in as many cases as possible. The generality of reuse, however, has an adverse effect on reusability. A command that is capable of handling many cases usually has several arguments. The complexity resulting from such arguments degrades reusability. On the other hand, commands with relatively fewer arguments have high reusability but the payoff of reusing them is relatively low. To mitigate the tradeoff, we present an approach with specification by example to automatically set the arguments of executable programs (commands). In this approach, the user first locates the candidate command for reuse. Then the user specifies his/her intention by giving examples of the input and output. The system will automatically find a setting of the arguments by performing searching among the possible settings of the arguments. Revision of the input-output specification is allowed for fine-tuning input-output examples. When a proper setting for arguments is found, the user then can apply the program with the configured arguments to the intended data. A prototype has been implemented and several UNIX commands were successfully tested.
机译:软件重用被广泛认为是缓解软件开发慢性问题的关键方法之一。重用被定义为现有软件实体的重新应用,以降低重新系统的开发成本[BigG89]。作为软件工程中的另一个常见的概念,可重用性被定义为可以使用先前获取的实体[PRIE87A]的衡量标准。重用和可重用性之间存在权衡。为了增加从软件组件的重用后的回报,我们倾向于使其非常一般,即它可以在尽可能多的情况下使用它。然而,重用的一般性对可重用性具有不利影响。能够处理许多情况的命令通常具有多个参数。这些参数产生的复杂性降低了可重用性。另一方面,具有相对较少参数的命令具有高可重用性,但重用它们的回收率相对较低。为了缓解权衡,我们通过示例介绍了一种规范的方法,以自动设置可执行程序(命令)的参数。在这种方法中,用户首先定位候选命令以重复使用。然后,用户通过赋予输入和输出示例来指定他/她的意图。系统将通过执行参数的可能设置中的搜索自动查找参数的设置。允许修订输入输出规范进行微调输入输出示例。当找到参数的正确设置时,用户可以将程序应用于预期数据的配置参数。已实现原型,并成功测试了几个UNIX命令。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号