Protocol specifications and component adaptors

被引:301
作者
Yellin, DM [1 ]
Strom, RE [1 ]
机构
[1] IBM CORP,THOMAS J WATSON RES CTR,YORKTOWN HTS,NY
来源
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS | 1997年 / 19卷 / 02期
关键词
algorithms; design; adaptors; interface definition languages; protocol compatibility; protocol conversion; software composition;
D O I
10.1145/244795.244801
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this article we examine the augmentation of application interfaces with enhanced specifications that include sequencing constraints called protocols. Protocols make. explicit the relationship between messages (methods) supported by the application. These relationships are usually only given implicitly, either in the code or in textual comments. We define notions of interface compatibility based upon protocols and show how compatibility can be checked, discovering a. class of errors that cannot be discovered via the type system alone. We then define software adaptors that can be used to bridge the difference between applications that have functionally compatible but type- and protocol-incompatible interfaces. We discuss what it means for an adaptor to be well formed. Leveraging the information provided by protocols, we show how adaptors can be automatically generated from a high-lever description, called an interface mapping.
引用
收藏
页码:292 / 333
页数:42
相关论文
共 33 条
  • [1] ALLEN R, 1994, P 16 INT C SOFTW ENG
  • [2] [Anonymous], P 17 INT C SOFTW ENG
  • [3] ARJOMANDI E, 1995, IBM SYST J, V34, P1
  • [4] Arnold Ken., 1996, The Java Programming Language
  • [5] AUERBACH JS, 1994, WINT 1994 USENIX C U
  • [6] ON COMMUNICATING FINITE-STATE MACHINES
    BRAND, D
    ZAFIROPULO, P
    [J]. JOURNAL OF THE ACM, 1983, 30 (02) : 323 - 342
  • [7] BROCKSCHMIDT K, 1994, INSIDE OLE2
  • [8] CAMPBELL RH, 1974, SPECIFICATION PROCES, V16, P89
  • [9] *DIG, 1993, PARTS WORKB US GUID
  • [10] GOUDA MG, 1987, COMPUT ARTIF INTELL, V6, P209