public class desire extends intend
Internal action: .desire(D)
.
Description: checks whether D is a desire: D is a desire
either if there is an event with +!D
as triggering
event or it is a goal in one of the agent's intentions.
Example:
.desire(go(1,3))
: true if go(1,3)
is a desire of the agent.
Constructor and Description |
---|
desire() |
Modifier and Type | Method and Description |
---|---|
static java.util.Iterator<Unifier> |
allDesires(Circumstance C,
Literal l,
Unifier un) |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
allIntentions, checkArguments, 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 intend
java.lang.Exception
public static java.util.Iterator<Unifier> allDesires(Circumstance C, Literal l, Unifier un)