LightJason / Java-AgentSpeak

LightJason - AgentSpeak(L++) for Java
https://agentspeak-java.lightjason.org
Other
23 stars 7 forks source link

hierarchical plan database #58

Closed flashpixx closed 5 years ago

flashpixx commented 6 years ago

Reorganize plans and rules, so that they can create a hierarchical structure e.g.

+!foo/bar(X) : X > 5 <- generic/print("larger than five").
+!foo(X) <- generic/print("master plan").

On triggering +!foo/bar(10) it shows larger than five on !foo(3) the deeper plan foo/bar is not acceptable so it searches a plan on step higher and this matches to +!foo(X) so it returns master plan.

flashpixx commented 5 years ago

Hierarchical plan exition will be executed on two conditions: