Anylogic新分支抛出“无法解析为变量”错误。

huangapple 未分类评论45阅读模式
英文:

Anylogic new branch throwing "cannot be resolved to a variable" error

问题

我正在构建一个Anylogic模型。 这些模型我断断续续地建了几年了,但我从未见过程序显示出这种行为。

直到今天早上,它运行得很好。 我只在一个单一的代理类型中做了一个更改 - 我在状态空间中添加了一个额外的分支(带有适当的转换进入和转出)。

然而现在Anylogic无法编译,而是告诉我 <分支名称> 无法解析为变量。 当我点击Java代码查找错误时,代码行是:

enterState(<分支名称>, true);

我尝试过重新命名该分支,尝试从状态空间中在其他地方有效的不同分支复制和粘贴。 但这些都没有起作用。

英文:

I'm building an Anylogic model. I've built these models off and on for a few years, and I've never seen the program display this behavior.

Until this morning, it ran beautifully. I've made a single change in a single agent type—I've added an extra branch in the state space (with appropriate transitions into and out of it).

Anylogic now won't compile, telling me instead, <branch name> cannot be resolved to a variable. When I click on the java code to find the error, the line of code is:

enterState(<branch name>, true);

I've tried renaming the branch, tried copying and pasting from a different branch that had worked elsewhere in the state space. None of these work.

答案1

得分: 0

很让人烦恼的是这更像是一个错误报告。退出并重新启动后问题得到解决。

英文:

Well, annoyingly this is more a bug report. Quitting and restarting fixed it.

huangapple
  • 本文由 发表于 2020年4月10日 02:43:03
  • 转载请务必保留本文链接:https://java.coder-hub.com/61128084.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定