就餐 simphony relogo 教程 僵尸;有没有人遇到过以下警告

发布于 2025-01-02 12:04:01 字数 571 浏览 4 评论 0原文

我在 Repast Simphony 2.0 Beta 中学习 Relogo 上的 Zombies 分步教程时遇到了以下警告。

警告是:

  • 描述路径资源位置类型 TrackingEdge 是原始类型。对泛型类型 TrackingEdge 的引用应参数化 /Zombies/src/zombies/style TrackingLinkStyle.java line 31 Java Problem

  • 描述 路径 资源位置类型 BaseLink 是原始类型。对泛型类型 BaseLink 的引用应参数化 /Zombies/src/zombies/style LinkStyle.java line 28 Java Problem

  • 描述 路径 资源位置 类型 不必要的@SuppressWarnings("unchecked") /Zombies/src/zombies/style TrackingLinkStyle.java line 29 Java问题

它们不会中断模拟,但由于我将来会开发其他模型,我想知道是否有人知道它们的含义,如果可能的话如何照顾他们

谢谢

I came across the following warnings while taking the step by step tutorial for Zombies on Relogo within Repast Simphony 2.0 Beta

The warnings are:

  • Description Path Resource Location Type
    TrackingEdge is a raw type. References to generic type TrackingEdge should be parameterized /Zombies/src/zombies/style TrackingLinkStyle.java line 31 Java Problem

  • Description Path Resource Location Type
    BaseLink is a raw type. References to generic type BaseLink should be parameterized /Zombies/src/zombies/style LinkStyle.java line 28 Java Problem

  • Description Path Resource Location Type
    Unnecessary @SuppressWarnings("unchecked") /Zombies/src/zombies/style TrackingLinkStyle.java line 29 Java Problem

They do not interrupt the simulation but as I would be developing other models in the future I was wondering if any one knew what they meant, and if possible how to take care of them

Thanks

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

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

发布评论

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

评论(1

日暮斜阳 2025-01-09 12:04:01

代表就餐simphony邮件列表反馈
这是上面问题的答案,

你好维多利亚,

这些只是警告,绝不会影响你的模型。
如果您很好奇并想了解有关前两组警告的更多信息,您可以阅读 Java 泛型:http://docs.oracle.com/javase/tutorial/java/generics/index.html
如果您对最后一个警告感到好奇,请尝试在线搜索 Java Annotations: http://docs.oracle.com/javase/tutorial/java/javaOO/annotations.html

最好,
乔纳森

On behalf of the repast simphony mailing list feedback
This is the answer to the question above

Hello Victoria,

Those are simply warnings and in no way affect your model.
If you're curious and would like to learn more about the first two sets of warnings, you can read up on Java Generics: http://docs.oracle.com/javase/tutorial/java/generics/index.html
If you're curious about the last warning, try searching for Java Annotations online: http://docs.oracle.com/javase/tutorial/java/javaOO/annotations.html

Best,
Jonathan

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