在 netlogo 中,我有一个调用另一个过程的过程。我怎样才能获得价值
例如,我有两种类型的代理,一个集线器和一个链接。集线器有一个名为“预算”的局部变量,我正在尝试修改它的值。
hubs-own [
budget
]
to go
ask hub 0 [
do-ivalue
]
end
to do-ivalue
ask links [
;; I'm trying to set the local variable budget of the hub that's calling this link
set self.budget newvalue ;; this is obviously wrong, how can I fix this?
]
end