public class intend extends DefaultInternalAction
Internal action: .intend(I)
.
Description: checks if I is an intention: I is an intention
if there is a triggering event +!I
in any plan within an
intention; just note that intentions can appear in E (list of events), PA (intentions with pending actions),
and PI (intentions waiting for something) as well.
Example:
.intend(go(1,3))
: is true if a plan with triggering event
+!go(1,3)
appears in an intention of the agent.
Constructor and Description |
---|
intend() |
Modifier and Type | Method and Description |
---|---|
static java.util.Iterator<Unifier> |
allIntentions(Circumstance C,
Literal l,
Unifier un) |
protected void |
checkArguments(Term[] args) |
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 java.util.Iterator<Unifier> allIntentions(Circumstance C, Literal l, Unifier un)