Package jason.stdlib
Class drop_all_intentions
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(TransitionSystem ts, Unifier un, Term[] args) Executes the internal action.int
int
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
-
Constructor Details
-
drop_all_intentions
public drop_all_intentions()
-
-
Method Details
-
getMinArgs
public int getMinArgs()- Overrides:
getMinArgs
in classDefaultInternalAction
-
getMaxArgs
public int getMaxArgs()- Overrides:
getMaxArgs
in classDefaultInternalAction
-
execute
Description copied from interface:InternalAction
Executes the internal action. It should return a Boolean or an Iterator. A true boolean return means that the IA was successfully executed. An Iterator result means that there is more than one answer for this IA (e.g. see member internal action). - Specified by:
execute
in interfaceInternalAction
- Overrides:
execute
in classDefaultInternalAction
- Throws:
Exception
-