From: Burak K. <bbu...@gm...> - 2024-01-04 12:14:37
|
Hi Jomi, I managed to make some progress toward my goal, but this time I need to access the plan actions in the plan. When I run plann.getPlan().getTerm(0) -> it me the source asl. plann.getPlan().getTerm(1) -> gives the plan name. plann.getPlan().getTerm(2) -> gives the logical context plann.getPlan().getTerm(3) -> gives the plan actions as a whole. plann.getPlan().getTerm(4) -> gives null. Is it possible to access each of these plan actions returned by getTerm(3) as single terms? For example, having a set of actions such as " ?beliefQuerty;EnvironmentAction1;-+beliefRev(any); EnvironmentAction2; ...." can I get each term one by one? Thank you so much. Best regards. Burak Karaduman <bbu...@gm...>, 20 Ara 2023 Çar, 21:30 tarihinde şunu yazdı: > Hi Jomi, > > Thank you so much for your reply. I will check as you pointed out. > > Best regards. > > Jomi Hubner <jom...@gm...>, 20 Ara 2023 Çar, 19:05 tarihinde şunu > yazdı: > >> Hi Burak, >> >> In case agents and environment are running in the same Java Virtual >> Machine, I’d say that it is possible to do what you want. However, >> conceptually, I think it is not suitable. The environment should not access >> to the mind of the agents. Internal actions may be considered for such >> situations, an internal actions has access to the agent BB, PL, .. >> everything. >> >> HTH, >> >> Jomi >> >> ps.: take a look at classes RuntimeServices (to get some information >> about runtime conf.) and RunLocalMAS to access all agents when running >> local. > > > > -- > > *Burak KARADUMAN,* > Ph.D. Student at the University of Antwerp & Flanders Make, > Modeling Intelligent Complex Software & Systems (MICSS-Lab), > *G236, Department of **Computer Science**, Faculty of Science, Campus > Middelheim,* > Middelheimlaan 1, 2020 Antwerp, Belgium > > -- *Burak KARADUMAN,* Ph.D. Student at the University of Antwerp & Flanders Make, Modeling Intelligent Complex Software & Systems (MICSS-Lab), *G236, Department of **Computer Science**, Faculty of Science, Campus Middelheim,* Middelheimlaan 1, 2020 Antwerp, Belgium |