Package jason.stdlib

Class drop_all_events

All Implemented Interfaces:
InternalAction, Serializable

@Manual(literal=".drop_all_events", hint="removes all desires that the agent has not yet committed to", argsHint="", argsType="", examples=".drop_all_events: remove all not commited desires", seeAlso={"jason.stdlib.intend","jason.stdlib.desire","jason.stdlib.drop_all_desires","jason.stdlib.drop_all_intentions","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_events extends DefaultInternalAction

Internal action: .drop_all_events.

Description: removes all desires that the agent has not yet committed to. No event is produced.

This action changes the agent's circumstance structure by simply emptying the whole set of events (E). This action is complementary to .drop_all_desires and .drop_all_intentions, in case all entries are to be removed from the set of events but not from the set of intentions.

Example:

  • .drop_all_events: remove all not commited desires.
See Also: