Package jason.stdlib

Class relevant_plan

All Implemented Interfaces:
InternalAction, Serializable

public class relevant_plan extends DefaultInternalAction

Internal action: .relevant_plan.

Description: gets relevant plans for some triggering event. This is a backtracking based version of .relevant_plans.

Parameters:

  • +/- trigger (trigger): the triggering event, enclosed by { and }.
  • +/- plan (plan as term): a relevant plan for the trigger.

Example:

  • .relevant_plan({+!go(X,Y)},P): unifies P with all plans that are relevant for the triggering event +!go(X,Y). To find all plans the internal action .findall can be used to backtrack on all solutions: .findall(P, .relevant_plan({+!go(X,Y)},P), ListOfPlans). To find all plans from file source "a.asl": .findall(P, .relevant_plan({+!go(X,Y)},P]) invalid input: '&' .plan_label(P,L[file("a.asl")), ListPlans)
See Also: