From: Burak K. <bbu...@gm...> - 2024-01-11 12:57:51
|
Hi Jomi, Thank you so much for your help. It is what I needed, and It worked with a bit of modification. But, also I need help with parsing the logical context of a plan, I can access the plan's context but, specifically, it is needed to get the execution sequence such as: +!planA: ((((speed(60) & temp(40)) | humidity (13) ) | angle (125)) -> I assume this context is parsed and it gives an execution sequence based on the parentheses, operators and operands. Is there a way to access that kind of stack or list mechanism? Thank you, Best regards. Jomi Hubner <jom...@gm...>, 4 Oca 2024 Per, 15:14 tarihinde şunu yazdı: > Hi Burak, > > the best method in the Plan class is .getBody() > Maybe the code at > > > https://github.com/bruno-szdl/signifier-resolution-mechanism/blob/b32bf03da07c6cbf020969debbfe1a1c01564d8e/src/main/java/signifiers/SignifierResolutionMechanism.java#L84 > > can help you. It gets the set of some actions of a plan. > > HTH > > Jomi > > > On 4 Jan 2024, at 09:14, Burak Karaduman <bbu...@gm...> > wrote: > > > > 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 > > > > -- *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 |