public class drop_desire extends drop_intention
Internal action: .drop_desire(D)
.
Description: removes desire D from the agent circumstance.
This internal action simply removes all +!D entries
(those for which .desire(D)
would succeed) from both
the set of events and the set of intentions.
No event is produced as a consequence of dropping desires.
Example:
.drop_desire(go(X,3))
: remove desires such as
<+!go(1,3),_>
from the set of events and
intentions having plans with triggering events such as
+!go(1,3).
Constructor and Description |
---|
drop_desire() |
Modifier and Type | Method and Description |
---|---|
void |
dropEvt(Circumstance C,
Literal l,
Unifier un) |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
checkArguments, dropInt, getMaxArgs, getMinArgs
canBeUsedInContext, destroy, prepareArguments, suspendIntention
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.Exception
InternalAction
execute
in interface InternalAction
execute
in class drop_intention
java.lang.Exception
public void dropEvt(Circumstance C, Literal l, Unifier un)