public class remove_plan extends DefaultInternalAction
Internal action: .remove_plan
.
Description: removes plans from the agent's plan library.
Parameters:
self
.Examples:
.remove_plan(l1)
: removes the plan identified by
label l1[source(self)]
..remove_plan(l1,bob)
: removes the plan identified
by label l1[source(bob)]
. Note that a plan with a
source like that was probably added to the plan library by a tellHow
message..remove_plan([l1,l2,l3])
: removes the plans identified
by labels l1[source(self)]
, l2[source(self)]
, and
l3[source(self)]
..remove_plan([l1,l2,l3],bob)
: removes the plans identified
by labels l1[source(bob)]
, l2[source(bob)]
, and
l3[source(bob)]
..relevant_plans({ +!g }, _, L); .remove_plan(LL)
:
removes all plans with trigger event +!g
.add_plan
,
plan_label
,
relevant_plans
,
Serialized FormConstructor and Description |
---|
remove_plan() |
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