`
turingfellow
  • 浏览: 135154 次
  • 性别: Icon_minigender_1
  • 来自: 福建省莆田市
社区版块
存档分类
最新评论

jadex version changes for api

    博客分类:
  • jade
 
阅读更多
How can i retrieve event information from body of some plan (getInitialEvent() in jadex 0.96 version) in jadex 2.0 ?

The method getInitialEvent() has been replaced by the getReason() method. This has been done, because you can now also get information about other triggering reasons for executing a plan, such as belief changes. The method returns an IElement object, which can be casted to the object that you expect. E.g. for a plan triggered by a message event, you should do:

IMessageEvent messageevent = (IMessageEvent)getReason();

---选自faq
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics