Package jason.stdlib

Class drop_all_intentions

All Implemented Interfaces:
InternalAction, Serializable
Direct Known Subclasses:
drop_all_desires

@Manual(literal=".drop_all_intentions", hint="removes all intentions from the agent\'s set of intentions", argsHint="", argsType="", examples=".drop_all_events: all intentions except the one where .drop_all_ intentions appears are dropped", seeAlso={"jason.stdlib.intend","jason.stdlib.desire","jason.stdlib.drop_all_desires","jason.stdlib.drop_all_events","jason.stdlib.drop_event","jason.stdlib.drop_intention","jason.stdlib.drop_desire","jason.stdlib.succeed_goal","jason.stdlib.fail_goal","jason.stdlib.intention","jason.stdlib.resume","jason.stdlib.suspend","jason.stdlib.suspended"}) public class drop_all_intentions extends DefaultInternalAction

Internal action: .drop_all_intentions.

Description: removes all intentions from the agent's set of intentions (even suspended intentions are removed). No event is produced.

This action changes the agent's circumstance structure by simply emptying the whole set of intentions (I), pending actions (PA), pending intentions (PI), and events in E that are not external events (thus generated by intentions).

Example:

  • .drop_all_intentions: all intentions except the one where .drop_all_ intentions appears are dropped.
See Also: