首页> 外文期刊>Mathematics and Computer Science >Algebraic Specification for Input-Output in Abstract Data Types
【24h】

Algebraic Specification for Input-Output in Abstract Data Types

机译:用于抽象数据类型的输入输出的代数规范

获取原文
           

摘要

Abstract Data Types (ADT) are used when creating software systems, in the systems design. Usually we use algebraic specification to specify the operations in a data type. The use of data types is a methodology or style of working which yields improved design when followed. In this paper we study the addition of input-output operations to the algebraic specification of operations over a data type. The motivation is that input-output operations are used in actual implementations. A specification with input-output is more complete than one without it. We need input-output operations in our programs. This justifies the addition of such operations to the specification. We consider the definition of input-output operations in functional programming in particular in Haskell. Our input-output specifications are not exactly equal to Haskell programs although some of them are likely. We specify input-output operations in a form likely to the specification of the other operations. The result is the algebraic specification of the input-output operations for many frequently used data types. The language considered is sufficiently expressive to model all these operations. The technique is illustrated by means of a variety of examples. We started from sequences, continued with sets and finish with dictionaries. The specifications we present in this paper can be used as specifications of methods of ADT definitions in object oriented programing.
机译:在系统设计中创建软件系统时使用抽象数据类型(ADT)。通常,我们使用代数规范来指定数据类型的操作。数据类型的使用是一种方法或风格,在遵循时产生改进的设计。在本文中,我们将输入输出操作添加到通过数据类型的操作的代数规范。动机是输入 - 输出操作用于实际实现。没有IT的输入输出的规范更加完整。我们在我们的程序中需要输入输出操作。这证明了向规范添加了这些操作。我们考虑在Haskell中的功能编程中的输入输出操作的定义。我们的输入输出规范并不完全等于Haskell程序,尽管其中一些可能。我们以可能对其他操作规范的形式指定输入输出操作。结果是许多常用数据类型的输入输出操作的代数规范。考虑的语言是足够的表达,以模拟所有这些操作。该技术通过各种示例说明。我们从序列开始,继续设置并用字典完成。我们本文中所示的规格可用作面向对象编程中ADT定义方法的规范。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号