每个转运蛋白

发布于 2025-02-03 03:24:05 字数 205 浏览 5 评论 0原文

我正在建模生产系统,所有订单都通过AGV移动。 在模拟模型期间的某些时间,我想将每个AGV的UTLIZE和驱动距离记录到数据集中。

当我尝试将agv.getutilization()添加到我的数据集时,我会收到错误:无法从类型AGV 中静态引用对非静态方法getutilization() 。

现在我有点迷路了。

I am modelling a production system and all orders are moved via AGVs.
At certain times during the simulation model, I would like to log the utlization and driven distance of each agv into a dataset.

When I try to add AGV.getUtilization() to my dataset I get the error: Cannot make a static reference to the non-static method getUtilization() from the type AGV.

Now I am a little lost.

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

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

发布评论

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

评论(1

策马西风 2025-02-10 03:24:05

获得车队利用的功能只是
transporterfleet.utilization()

我不确定您在调用agv时您在引用什么不是代理商也不是舰队。

The function for getting a fleet's utilization is just
transporterFleet.utilization()

I am not sure what you are referencing when you call AGV but it appears to be pointing to the agent type (Since it starts with a uppercaseletter) and not the agent nor the fleet.

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