设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8517|回复: 4

[求助] 求助。为什么我不能定义海龟默认初始图形?

  [复制链接]
发表于 2009-11-18 10:33:10 | 显示全部楼层 |阅读模式
我的程序如下:
" O; Q5 O1 u' t& q1 H2 Vbreed [dogs dog]
; @% T; t2 }2 d  E$ Gbreed [cats cat]0 y4 h2 }$ @, n2 c3 E9 D, L; X
breed [cows cow]( T( W0 R+ Y! W1 K8 o9 |% t
& ?  ~! T/ K  a0 D# ?9 N
to setup! |- ~" Y8 p7 q% V$ I  H0 a% n
  clear-all
% F7 ?% U0 j3 y0 m  set-default-shape dogs "dog"2 k: _  k) H' w( Y$ c, B
  set-default-shape cats "cat"
# P" b* v7 g0 d  set-default-shape cows "cow"( h6 R, I. L7 y3 Z; D' E
  ask patch 0  1 [ sprout-dogs 1 ]  a. t4 T7 S3 k: C! r0 V! g$ c; Z
  ask patch 0  0 [ sprout-cats 1 ]
- A# _2 C3 c! C  ask patch 0 -1 [ sprout-cows 1 ]
2 B7 W5 y: b: ]0 {" ^end$ y4 ?, m% s1 ]* l3 L: K+ B1 v

3 E  y/ ~5 U* g! [9 \# @5 ?2 q- p" H* k' d' Z0 X  Y# }
这个是netlogo自带模型库里的模型中的程序,我新建文件再将其输入却提示错误:* u5 ~1 B5 u* O9 m) p
error while observer running SET-DEFAULT-SHAPE in procedure SETUP! a+ S! f, z& p# B' a) y
"dog" is not a currently defined turtle shape# o8 V# v( U4 r( M6 G& _2 E
(halted running of setup); U9 x" u1 B( P* t% W

7 j6 C6 n2 I) S6 L& n
7 ~) ^/ S, Q+ a. `. ^5 z4 i; k我用的版本是4.0.4 请大虾们指教下。thanks!
发表于 2010-3-22 10:57:34 | 显示全部楼层
同问,难道就没有人能解答了吗?
发表于 2010-3-29 13:38:39 | 显示全部楼层
这是因为你新建了一个文件,此时文件的海龟图像里面没有"dog”和"cat"类型,Tools——Turtle shape edit——Import from library ,将library里面的dog和cat图像导入就行了
发表于 2010-10-16 13:56:48 | 显示全部楼层
谢谢啊
发表于 2011-7-22 08:40:36 | 显示全部楼层
谢谢3楼!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2025-12-20 11:06 , Processed in 0.017044 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表