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
.
Constructor and Description |
---|
drop_all_events() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
int |
getMaxArgs() |
int |
getMinArgs() |
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
public int getMinArgs()
getMinArgs
in class DefaultInternalAction
public int getMaxArgs()
getMaxArgs
in class DefaultInternalAction
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.Exception
InternalAction
execute
in interface InternalAction
execute
in class DefaultInternalAction
java.lang.Exception