卡雷尔j的机器人

来源:百度文库 编辑:神马文学网 时间:2024/05/21 05:37:04
Karel J. Robot 卡雷尔j的机器人
A Gentle Introduction to the Art of Object-Oriented Programming in Java一个温柔的介绍面向对象的程序设计艺术在Java
Joseph Bergin约瑟夫贝尔然 Mark Stehlik马克斯特赫利克 Jim Roberts吉姆罗伯茨 Richard Pattis理查德Pattis
This books are available athttp://www.cafepress.com/kareljrobot .这书可于http://www.cafepress.com/kareljrobot 。

The book as published is a preliminary edition.作为出版的书是一个初步的版本。 It will have a few flaws.这将有一些缺陷。 In particular, note that the book is not manufactured to the same high standard that a regular book publisher would use.特别要注意,这本书是不出厂到相同的高标准,定期将图书出版者使用。 The result is that they are a bit fragile, but much less expensive.其结果是,他们有点脆弱,但便宜得多。 School districts intending them for use over several years may not find them up to their expected standards.为学区打算在数年内使用它们可能无法找到他们,他们应有的水平。 They seem fine for individual use if minimal care is taken.他们似乎对个人的罚款,如果使用最小采取审慎。
Since the book has now been published, I'm withdrawing permission to use or mirror the manuscript other than the pages still available here.自书现已出版,我撤回许可使用或镜像手稿比这里的其他网页仍然可用。 If you have such a mirror of the removed chapters please remove it.如果你有这样一个被删除的章节镜子请删除它。
 
Note on Review Copies: 注意检讨副本:
Review copies are difficult, at best, for me.回顾副本是困难的,充其量也为我。 This is self published and I need to pay money out of pocket to send any review copy.这是自公布,我需要支付的口袋里掏钱去副本发送任何审查。 I even need to purchase copies for my own use.我什至需要购买拷贝为我所用。 I hope you understand.我希望你能理解。 Eventually, we hope this will be picked up by a more permanent publisher.最后,我们希望这将是一个更永久拾起出版商了。 I will consider special needs, of course, but may not be able to help.我会考虑的特殊需要,当然,但可能无法提供帮助。
 
If you are using the book, I'd like to know about it.如果您使用的是书,我想了解它。 Please send me email atjbergin@pace.edu .附上我的电子邮件jbergin@pace.edu 。
Latest News最新新闻
A New Simulator is now available that works within the Greenfoot system.一种新的模拟器现在可Greenfoot系统内的工作。
See theGreenfoot Simulator Page for details.见Greenfoot模拟器页面了解详情。
 
I've also been working on importing Karel into the Alice 3 system.我也一直在努力导入到爱丽斯3系统卡雷尔。 It is now available (release candidate 3).现在是可用(发布候选3)。 It will soon be possible to use this with BlueJ.它不久将有可能使用BlueJ的这一点。
See theAlice Simulator Page for details.看到爱丽丝模拟器页面了解详情。
 
 
Volume 2 is now available.第2卷现已推出。 It extends the ideas presented in Karel J Robot to complete a first course.它扩展了卡雷尔?机器人提交完成第一期培训班的想法。 It is available through CafePress now.它是通过CafePress现已上市。 Here is theTable of Contents for Volume 2 .这里是二表的内容量 。 Software for this book is now available on the new combined CD at CafePress.这本书的软件现在可以在新的CafePress联合光盘。
Visit the Beyond Karel J Robot Page访问页中的机器人除了卡雷尔?
A Python Edition is now available from theKarel J Robot site at Cafe Press .一个Python版现在可以从卡雷尔?机器人的新闻网站,在Cafe 。 It is somewhat different, since Python is somewhat different.这是有点不同,因为Python是有些不同。 It tries, as all of these books have done, to capture the essence of the language.它尝试,因为这些书都做的那样,捕捉语言的精华。 Software for this book is also on the new combined CD.这本书的软件也对合并后的新的CD。 Both book and software are available now.无论书籍和软件现已上市。
Visit the Monty Karel Page.蒙蒂卡雷尔访问页面。
Note that a student who studies from either Karel J Robot or Monty Karel will benefit very little from using the other as well.请注意,无论从学生谁卡雷尔?机器人或蒙蒂卡雷尔研究将受益于使用以及其他的很少。 They are ready for something more.他们更多的东西准备好。 Beyond Karel J Robot might be considered for those who studied from Karel J Robot first, however.卡雷尔?机器人除了可以考虑为那些谁卡雷尔?机器人研究了第一,但是。
 
Dedication |Teaching Notes |Table of Contents奉献 |教学札记 |目录表
Simulator |Use with JJ |Use with BlueJ |Extras模拟器 |使用与JJ |BlueJ的使用与 |附加功能
Goodies |Feedback超值服务 |信息反馈
 
 
Changes to Karel J Robot更改卡雷尔?机器人
The book contains the first 8 chapters here.该书包含了前8章在这里。 The rest will stay on the web.其余的将留在网页上。 It is pure Java.它是纯粹的Java。 No more task or loop.没有更多的任务或循环。 Robot names are lower cased: karel instead of Karel, keeping with the Java convention.机器人名称是小写:卡雷尔卡雷尔代替,保持与Java公约。 ur_Robot has become UrRobot for the same reason. ur_Robot已成为同样的原因UrRobot。 The simulator reflects this change.  Your programs will need to be updated as a result also.该模拟器反映了这一变化。你的程序也将需要更新的结果。 Recent changes to the simulator will not be described in the book.模拟器最近更改将不会在书中描述。 They are a feature of the simulator only.他们是唯一的模拟器功能。 You can purchase a CD with the simulator at the above site, but the version here is the same or more recent.您可以购买在上述网站上用模拟器CD,但是这里的版本相同或更近。 The CD is for convenience of those who desire it only.裁谈会是为那些谁希望它只是方便。
Errata : The printed book contains a few errors.勘误表 :印刷书包含了一些错误。
If you feel strongly about any of these issues, please feel free to contact me.如果你觉得这些问题对任何强烈的,请随时与我联系。

Dedication . The authors would like to dedicate this work to the memory of Kristen Nygaard, who, along with his friend and colleague Ole-Johan Dahl, invented object-oriented programming in the 1960s and who worked since then to refine and extend it. 奉献 。笔者想献给它的工作扩展内存克里斯汀尼加德,谁,以及他的朋友和同事的OLE和Johan Dahl的导向编程,20世纪60年代发明的对象,谁的工作从那时起,完善和。 Kristen was an interesting and lively person who worked his entire life to make things better for others, both in technology and otherwise.克里斯汀是一个有趣而活泼的人谁工作,使他的整个生命别人更好的东西,无论在技术和其他。 We, who came to know him, miss him and his continuing inspiration greatly.我们,谁才知道他,怀念他,他继续启发很大。 He died suddenly in August 2002 at the age of 75.他死于2002年突然在八月份的75岁。
 
 
NOTE.注。 See below for information about a simulator in 100% pure Java .参见下面的 Java信息100%的纯模拟器。
Instructor's Guide is now available (March 2, 2005) (Errors corrected May 18, 2005)讲师指南现在可用(2005年3月2日)(错误纠正2005年5月18日)
Teaching Notes (older)教学札记 (旧)
Supplementary Java Code : This zip file contains the code extracted from the text of the book.补充Java代码 :这个zip文件包含的代码从书中摘录的文本。 All complete classes are included plus a few goodies.所有的类都包含完整的再加上一些好吃的东西。 On the simulator page, you can get a set of world files.在模拟器上页上,可以得到一个世界文件集。
The Programmer's Journal : An idea for students.程序员的日志 :一个学生的主意。 (NEW) (新)
The simulator page now has a user's manual for the simulator.该模拟器页面现在有一个用户的模拟器手册。
Preface前言
1 The Robot World1,机器人世界
2 Primitive Instructions and Simple Programs2原始说明和简单的程序
3 Extending the Robot Programming Language (Withdrawn)3扩展机器人编程语言 (撤回)
4 Polymorphism (Withdrawn)4多态性 (撤回)
Optional Section on Linked Lists (before selection)可选节上链表(前选择)
5 Conditionally Executing Instructions (Withdrawn)5有条件地执行指令 (撤回)
Optional Section on Recursion (before iteration)可选节上递回(前迭代)
6 Instructions That Repeat (Withdrawn)6说明重复 (撤回)
7 Advanced Techniques for Robots (Withdrawn)7先进技术的机器人 (撤回)
8 Concurrent Robot Programs (Withdrawn)8并行机器人程序 (撤回)
9 Moving Beyond Robots to Objects9正在超越物体的机器人
10 Input, Output, and Exception Handling10输入,输出和异常处理
11 Safe Concurrent Programming with Robots11并行编程的安全与机器人
Note that this version may contain several minor errors.请注意,此版本可能包含几个小错误。 It has not been through a rigorous editing process.它没有经过严格的编辑过程。 I would appreciate comments and bug reports sent to me atberginf@pace.edu . Thanks.我将不胜感激和错误报告发送给我在berginf@pace.edu 。谢谢。
Here is the completeTable of Contents of the book as printed.下面是完整的目录表 ,作为印刷的书。
There is a Simulator that you can use to run Karel J. Robot programs written in 100% pure Java (see below).有一个模拟器,你可以用它来运行卡雷尔j的机器人的Java编写的程序在100%纯(见下文)。 Here is a (South facing) robot trying to place some beepers in the world.这里是一个(朝南)机器人试图把世界一些寻呼机英寸

This version is very sophisticated and may be used to run concurrent robot programs as well as sequential ones.这个版本是非常复杂,可能是用于运行并行机器人计划,以及连续的。 An example is provided (Philosopher.java) that illustrates the dining philosopher problem.一个例子是(Philosopher.java),说明了哲学家就餐问题。
Simulator Available仿真器
Anew simulator with a world builder is now available. 一个新的模拟器世界建设者与现在可用。
Note that the worlds read and written by this simulator are not compatible with those of the Karel ++ versions.请注意,此模拟器世界的读,写不与这些版本兼容+ +的卡雷尔。 Here we use simple text files, where in the earlier work we used a proprietary format.在这里,我们使用简单的文本文件,其中在前面的工作中,我们使用了专有格式。
You will need a text editor or IDE to create java programs for this simulator.您将需要一个文本编辑器或IDE来创建这个模拟器的Java方案。 You will also need Java.您还需要Java的。
Another Simulator 另一个模拟器
Here is another simulator independently developed in Germany by Christoph Bockisch. This one is built with Swing and uses features of Java 1.4, so it only runs on the latest Java versions.这里是另一个模拟器自主开发克里斯托夫Bockisch在德国。这是建立一个与Swing,并使用了Java 1.4功能,所以它只能运行在最新版本的Java。 I have not been able to test this.我还没有能够对此进行测试。 It is faithful to the current manuscript, in that the user writes a "task" not a "public static void main..."它是忠实于当前的手稿,在该用户写一个“任务”而不是“公共静态无效的主要...” There is a preprocessor to translate it to real Java.有一个预处理程序它翻译成真正的Java。 Note that the book, when published will probably also be real Java, and "task" and "loop" will be replaced by their true Java equivalents.请注意,书发表后可能也会是真正的Java和“任务”和“循环”将等值取代他们的真实的Java。 This simulator also does not support the functionality needed in the later chapters of the manuscript.这个模拟器也不支持这份手稿的是后面的章节功能所需英寸
Shirts and Other Stuff with the Karel J Robot Logo衬衫和标志的机器人卡雷尔?其他资料
In addition to the book, you can now purchase Karel J Robot auxiliary products, such as shirts and buttons from除了书,你现在可以购买卡雷尔?机器人辅助衬衫和按钮,如从产品,
http://www.cafepress.com/kareljrobothttp://www.cafepress.com/kareljrobot
The authors do not make a profit from many of these goods.作者不从这些货物使许多利润。 They are provided "just for fun."他们提供了“只是为了好玩。” Enjoy.享受。 You might want to give out a button or two as prizes for particularly well done programs.你可能想给了一个按钮,或作为奖品,特别是出色地完成项目两个。

Some premium products are also available here:一些高档产品也可以在这里:
Some of these are appropriate as prizes for your best students and for a well-done assignment or a programming contest.其中有些是为你的最好的学生和良好的工作任务或一个适当的程序设计竞赛奖。
 
Karel J. Robot and JJ卡雷尔j的机器人和JJ
JJ is an online interactive Java educational environment that you can use with just a Java enabled browser.锦江是一个在线互动的Java教育环境,您可以只使用一个Java的浏览器。 Karel J. Robot is now available interactively via the JJ system athttp://www.publicstaticvoidmain.com/ .卡雷尔j的机器人现在可以通过该系统交互锦江http://www.publicstaticvoidmain.com/ 。
You can test it at你可以测试它在
http://www.publicstaticvoidmain.com/cgi-bin/sfjj.cgi?freeschool=KarelJRobot&file=introToKarel.javahttp://www.publicstaticvoidmain.com/cgi-bin/sfjj.cgi?freeschool=KarelJRobot&file=introToKarel.java

Karel J. Robot and BlueJ BlueJ的卡雷尔j的机器人
BlueJ (http://www.bluej.org/ ) is a Java environment for novices. BlueJ的(http://www.bluej.org/ )是一个新手的Java环境。 On theIDE page you can find a link to instructions on how to make it work with Karel J. Robot.在IDE中你可以找到一个网页链接到指示机器人如何使它工作卡雷尔j的。

Thanks to Trevor Gosbell from Australia for a very simpleIntroduction to Karel J Robot using BlueJ来自澳大利亚的一个非常简单的感谢特雷弗Gosbell介绍?使用BlueJ的机器人来卡雷尔
The Objects First with Java Book is an excellent follow-on to Karel J Robot. Java 的 Book 对象第一项是一个很好的后续到卡雷尔?机器人。 Click the image to see it on Amazon.com点击图片看它在Amazon.com

Extras附加功能
Here is an exercise that you can do after completing the first seven chapters of Karel J. Robot.The Lost Beeper Mine Adventure.这是一个练习,你可以做第一个完成后的七个章节卡雷尔j的机器人。失落的蜂鸣器煤矿冒险。
Some additional exercises were written for Karel++.一些额外的演习书面卡雷尔+ +。 They work with Karel J. Robot just as well.他们与卡雷尔j的机器人一样好。 Note, however, that Chapters 5 and 6 in the printed Karel++ corresponds to Chapters 6 and 7, respectively, in Karel J. Robot.Additional Exercises.请注意,但是,5和第6章,在印刷卡雷尔+ +对应6和第7章,分别在卡雷尔j的机器人。额外练习。
There are someAdditional Materials available that were produced by other people.还有一些附加材料可用,是由其他人生产。
There are someAdditional Classes available that you might want to use with your Robot programs.还有一些附加的类可用,您可能想使用你的机器人程序。
Here is aRole-Play Exercise you can use to introduce Karel J. Robot and some ideas of Object-Oriented Programming.这里是一个角色扮演练习 ,你可以用它来介绍卡雷尔j的机器人和面向对象编程中的一些想法,。 Thanks to Joseph A. Tosh for this.此感谢约瑟夫A托什。
Karel J Robot as aTuring Machine卡雷尔?机器人作为一个图灵机
Some additional ideas about usingPolymorphism (see Chapter 4) is now available.有关使用一些额外的想法多态性 (见第4章)现已推出。
Karel J Robot is smarter than I thought.卡雷尔?机器人比我想象的更聪明。 It can nowCalculate PI .现在它可以计算有价证券 。 Thanks to Dan Eliot of Azusa Pacific University and El Dorado High School for providing this neat project for students.大学和El剑鱼高中学生提供了这个项目整齐感谢丹梓太平洋艾略特的。
There is now aChangeHistory page for the simulator and for these pages.现在有一个ChangeHistory页页的模拟器和这些。
Feedback 反馈
Name :产品名称:
Email :电子邮箱:
General Impression of the Karel J Robot book and simulator:一般印象的书和卡雷尔?机器人模拟器:
Great大
OK确定
Poor穷人
Comments and suggestions:意见和建议:

Last Updated:最后更新: April 1, 2010 2010年4月1日
Back to Joseph Bergin's Home Page .回到约瑟夫贝尔然的主页 。















英语原文:
Note that a student who studies from either Karel J Robot or Monty Karel will benefit very little from using the other as well.
更好的翻译建议