检查另一个Statechart代理的状态键入任何logic
我在一个代理类型(人)的statechart中,我想在某个状态(athome)中向其他代理类型(person2)发送消息,但是当我使用下面的代码时,该程序会给我带来
for( Person2 m : main.person2s ) {
if( m.inState(atHome)==true ) {
send("hi", m);
}
}
错误在某个状态下调用其他代理类型?
I am in the statechart of the one agent type (Person) and I want to send a message to another agent type (Person2) in a certain state (atHome), but when I use code below the program throws me an error
for( Person2 m : main.person2s ) {
if( m.inState(atHome)==true ) {
send("hi", m);
}
}
what should I do to call another agent type in a certain state?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试看
Try this instead