Package jason.stdlib

Class drop_future_intention

All Implemented Interfaces:
InternalAction, Serializable

@Manual(literal=".drop_future_intention(goal)", hint="removes intentions that will try to achieve goal the referred goal", argsHint="the goal the intentions achieve", argsType="literal", examples="drop_future_intention(go(1,3)): removes an intention having a plan that will execute +!go(1,3)", seeAlso={"jason.stdlib.intend","jason.stdlib.desire","jason.stdlib.drop_all_desires","jason.stdlib.drop_all_events","jason.stdlib.drop_all_intentions","jason.stdlib.drop_intention","jason.stdlib.drop_desire","jason.stdlib.succeed_goal","jason.stdlib.fail_goal","jason.stdlib.current_intention","jason.stdlib.resume","jason.stdlib.suspend","jason.stdlib.suspended"}) public class drop_future_intention extends drop_desire

Internal action: .drop_future_intention(I).

Description: removes intentions that will try to achieve goal I from the set of intentions of the agent (suspended intentions are also considered). No event is produced. The current implementation consider only intended means (already instantiated plans), in the future we can consider to look ahead for possible selected plans.

Parameters:

  • - goal (literal): the goal the intentions achieve.

Example:

  • .drop_future_intention(go(1,3)): removes an intention having a plan that will execute +!go(1,3).
See Also: