如何实现“绑定” Java 中的彩色 Petri 网?

发布于 2024-12-23 12:42:21 字数 300 浏览 3 评论 0原文

我正在Java中实现彩色petri网。这是一种有限状态自动机。问题是我不知道如何实现“绑定”。换句话说,颜色应该分配给位置,弧表达式应该分配给弧。执行转换后,网络应进入新状态。所以,我不知道如何将函数分配给弧。
我希望我的问题很清楚,因为我不想在这里解释彩色培养网的基础知识。如果有人可以提供彩色 Petri 网的 Java 代码示例的 Web 链接,或者提供一些如何将函数分配给弧的想法,我将不胜感激。

I'm implementing a coloured petri net in Java. It's kind of a finite state automata. The problem is that I don't know how to implement "binding". In other words, colors should be assigned to places and arc expressions should be assigned to arcs. After a transition is executed, a net should go into a new state. So, I have no idea how to assign functions to arcs.
I hope my question is clear, because I don't want to explain basics of coloured petri nets here. I appreciate if someone could provide a web-link to sample Java code of a colored petri net or give some ideas how to assign functions to arcs.

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

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

发布评论

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

评论(1

陌上青苔 2024-12-30 12:42:21

您能否举例说明如何创建静态函数数组以及如何引用这些函数?

枚举函数一文展示了一种方法。

Could you please give an example how to create an array of static functions and then how to reference these functions?

The article Enumerated Functions shows one approach.

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