删除代理后,为什么物体出现在队列中?

发布于 2025-02-08 04:37:48 字数 666 浏览 1 评论 0原文

我有一个简单的DES模型,该模型穿过4个站点,其延迟时间是通过连接到滑块的参数调整的。我在两个站点上充满了变化的系统,我想清除车站和队列。查看照片中的图像和代码。重置后,即使队列中没有代理并且队列大小为0,球体的图像仍保留在队列位置的右下角。为什么此图像保留在这里?

”

“重置动作代码”

I have a simple DES model where spheres pass through 4 stations whose delay times are adjusted by parameters connected to sliders. I flood the system with variation at two stations and I'd like to clear the stations and queues. See images and code in photos. After the reset, an image of the sphere remains in the lower right corner of the queue location even though there are no agents in the queue and the queue size is 0. Why does this image remain here?

Before Reset

After Reset

Reset Action Code

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北恋 2025-02-15 04:37:48

您从队列中删除了代理商,但没有摧毁代理商。因此,他们只是继续在某个地方“活”,似乎选择右下角作为默认动画位置。他们可能也彼此堆叠。

也要销毁它们,或者使用Jumpto(X,Y)方法将它们移出视线

You removed the agents from the queue but did not destroy the agents. So they just continue to "live" somewhere and seem to choose the bottom right corner as the default animation position. They probably also all stack on top of each other.

Either destroy them as well or use the jumpTo(x,y) method to move them out of sight

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文