首页> 外文会议>Proceedings of the 1990 ACM annual conference on Cooperation >A comparison of object oriented simulation languages (abstract)
【24h】

A comparison of object oriented simulation languages (abstract)

机译:面向对象仿真语言的比较(抽象)

获取原文
获取原文并翻译 | 示例

摘要

A network computer system was simulated as a single server queuing system using several computer languages including two object oriented languages. An initial simulation using Smalltalk-V was implemented on a Mackintosh II microcomputer. A procedure oriented Pascal program was then implemented on the Mack II machine. A HP Vectra PC was then used to implement the same problem in Pascal, with and without an object oriented option on Turbo Pascal 5.5.

rn

The programming was performed by two undergraduate computer science students with considerable programming experience, but who were using object oriented concepts for the first time. Developing the model of the network system to be simulated and implementing it in an object oriented language took several weeks. However, once the task was complete, implementing the model in the three other methods described was fairly simple.

rn

Both students found that using an object oriented system in a programming environment supplied by Smalltalk V was alittle different than programming in a procedure oriented language such as Pascal. Once they became familiar with the Smalltalk environment, they both felt that they would prefer to develop simulation systems in Smalltalk.

rn

The code lengths of the programs were each about 500 lines, with Smalltalk V being somewhat less and Turbo Pascal 5.5 somewhat more. Run times were significantly different, however. Smalltalk-V run time for 10 replications of the simulation was 2.7 minutes, with structured Pascal taking 5.5 minutes, each on the Mack II microcomputer. Structured Pascal took 1.5 minutes on the HP Vectra, but Turbo 5.5 took 36 minutes. If this same ratio of times applies (i.e., the HP Vectra being 5.5/1.5 time as fast as the Mack II), then we would expect object oriented Turbo 5.5 to take 132 minutes to run on the Mack II. At least we found that the object oriented approach can be either faster or slower than a structured approach.

机译:

使用多种计算机语言(包括两种面向对象的语言)将网络计算机系统模拟为单个服务器排队系统。在Mackintosh II微型计算机上实现了使用Smalltalk-V的初始仿真。然后在Mack II机器上实现了面向过程的Pascal程序。然后,使用HP Vectra PC在Pascal中实现了相同的问题,在Turbo Pascal 5.5上带有和不带有面向对象的选项。 rn

该编程是由两名具有丰富编程经验的计算机科学本科生进行的,但是谁是第一次使用面向对象的概念。开发要模拟的网络系统模型并以一种面向对象的语言实现它需要花费数周的时间。但是,一旦任务完成,用上述三种其他方法实现模型就非常简单。 rn

两个学生都发现,在Smalltalk V提供的编程环境中使用面向对象的系统与在其他方面完全不同。以面向过程的语言(例如Pascal)进行编程。一旦他们熟悉Smalltalk环境,他们俩都希望在Smalltalk中开发仿真系统。 rn

程序的代码长度分别约为500行,其中Smalltalk V少一些, Turbo Pascal 5.5多一点。但是,运行时间明显不同。在10个重复的模拟中,Smalltalk-V的运行时间为2.7分钟,结构化的Pascal耗时5.5分钟,每个在Mack II微型计算机上。结构化Pascal在HP Vectra上花费了1.5分钟,而Turbo 5.5花费了36分钟。如果采用相同的时间比例(即HP Vectra是Mack II的5.5 / 1.5倍),那么我们期望面向对象的Turbo 5.5在Mack II上运行需要132分钟。至少我们发现面向对象的方法可以比结构化的方法更快或更慢。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号