public class plan_label extends DefaultInternalAction
Internal action: .plan_label(P,L)
.
Description: unifies P with a plan term representing the plan labeled with the term L within the agent's plan library.
Parameters:
{+!g : vl(X) <- .print(X)}
).Example:
.plan_label(P,p1)
: unifies P with the term
representation of the plan labeled p1
.add_plan
,
relevant_plans
,
remove_plan
,
Serialized FormConstructor and Description |
---|
plan_label() |
Modifier and Type | Method and Description |
---|---|
static InternalAction |
create() |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
int |
getMaxArgs() |
int |
getMinArgs() |
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
public static InternalAction create()
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