ITeye博客

jadex version changes for api

turingfellow · 2010-06-21 22:09 · jade · 编程语言 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。