public class drop_intention extends DefaultInternalAction
Internal action: .drop_intention(I)
.
Description: removes intentions I from the set of intentions of the agent (suspended intentions are also considered). No event is produced.
Example:
.drop_intention(go(1,3))
: removes an intention having a plan
with triggering event
+!go(1,3)
in the agent's current circumstance.
Constructor and Description |
---|
drop_intention() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkArguments(Term[] args) |
static void |
dropInt(Circumstance C,
Literal l,
Unifier un) |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
int |
getMaxArgs() |
int |
getMinArgs() |
canBeUsedInContext, destroy, prepareArguments, suspendIntention
public int getMinArgs()
getMinArgs
in class DefaultInternalAction
public int getMaxArgs()
getMaxArgs
in class DefaultInternalAction
protected void checkArguments(Term[] args) throws JasonException
checkArguments
in class DefaultInternalAction
JasonException
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
public static void dropInt(Circumstance C, Literal l, Unifier un)