public class suspended extends DefaultInternalAction
Internal action: .suspended(G, R)
.
Description: checks whether goal G belongs to a suspended intention. R (a String)
unifies with the reason for the
suspend (waiting action to be performed, .wait, ....).
The literal G
represents a suspended goal if there is a triggering event +!G
in any plan within
any intention in PI or PA.
Example:
.suspended(go(1,3),R)
: true if go(1,3)
is a suspended goal. R
unifies with "act" if the reason for being suspended
is an action waiting feedback from environment.
Constructor and Description |
---|
suspended() |
Modifier and Type | Method and Description |
---|---|
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