设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9454|回复: 4

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

  [复制链接]
发表于 2009-11-18 10:33:10 | 显示全部楼层 |阅读模式
我的程序如下:
% J- t  z) m8 g/ sbreed [dogs dog]7 V! S% E0 O8 ^+ W5 y: P2 y( T  F
breed [cats cat]
- ]" Y6 y0 ]+ Nbreed [cows cow]6 j5 y0 ^+ M# N
) K3 E4 A! {& S7 s0 Q4 v
to setup' @1 G9 t6 n% J. U* H& l  A, M
  clear-all  s; h/ G$ i6 J6 ]5 d, j- I+ o
  set-default-shape dogs "dog"
, A3 M/ o; F9 s! T  set-default-shape cats "cat"
/ @' ?- Q" P* z/ }, |2 [  set-default-shape cows "cow"
4 p2 ^, G* H9 c9 |+ _- i) x  ask patch 0  1 [ sprout-dogs 1 ]+ V5 j& o% o6 N; z
  ask patch 0  0 [ sprout-cats 1 ]5 f; c, |4 R1 |! j% l0 n" f9 |2 k
  ask patch 0 -1 [ sprout-cows 1 ]
7 J6 Y% n: h- R1 j2 h' Gend8 u6 E9 Y3 G/ @+ y

( H/ `) J8 s  `' Z; _! n$ y/ I
) p2 b" L8 l) |% Y1 B+ x1 p- b& E这个是netlogo自带模型库里的模型中的程序,我新建文件再将其输入却提示错误:9 n) d. P! u0 d/ g6 t
error while observer running SET-DEFAULT-SHAPE in procedure SETUP1 j' a$ Q4 i/ b' p
"dog" is not a currently defined turtle shape
/ z- S2 ^6 i! v5 [0 g6 f2 `(halted running of setup)
$ j; Q" |) ~# O5 {
4 }* S$ W# d$ ^5 R9 e$ u  _$ F; F( O5 C' O+ O& M
我用的版本是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, 2026-5-20 20:42 , Processed in 0.016590 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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