删除代理后,为什么物体出现在队列中?
我有一个简单的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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您从队列中删除了代理商,但没有摧毁代理商。因此,他们只是继续在某个地方“活”,似乎选择右下角作为默认动画位置。他们可能也彼此堆叠。
也要销毁它们,或者使用
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