一种深度有界面向对象软件包的动态接口概念
A Notion of Dynamic Interface for Depth-Bounded Object-Oriented Packages
摘要:
使用软件组件的程序员必须遵循协议,这些协议指定何时可以合法地使用特定参数调用特定方法。例如,一旦集合被直接或通过另一个迭代器改变,就不能在集合上使用迭代器。我们正式的概念,动态包接口(DPI),概括状态机接口的单个对象,并给出了一个算法来静态计算一个声音抽象的DPI。DPI的状态表示堆配置的(无界)集合,边缘表示方法调用对堆的影响。我们引入了一个新的堆抽象域的基础上深度有界的系统来处理潜在的无限多的对象和它们之间的引用。我们已经实现了我们的算法,并表明它是有效的计算表示的常见模式的包的使用,如观众和标签,容器和迭代器,JDBC语句和光标之间的关系。
英文摘要:
Programmers using software components have to follow protocols that specify when it is legal to call particular methods with particular arguments. For example, one cannot use an iterator over a set once the set has been changed directly or through another iterator. We formalize the notion of dynamic package interfaces (DPI), which generalize state-machine interfaces for single objects, and give an algorithm to statically compute a sound abstraction of a DPI. States of a DPI represent (unbounded) sets of heap configurations and edges represent the effects of method calls on the heap. We introduce a novel heap abstract domain based on depth-bounded systems to deal with potentially unboundedly many objects and the references among them. We have implemented our algorithm and show that it is effective in computing representations of common patterns of package usage, such as relationships between viewer and label, container and iterator, and JDBC statements and cursors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。