|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jason.asSemantics.DefaultInternalAction
public class DefaultInternalAction
Default implementation of the internal action interface (it simply returns false for the interface methods). Useful to create new internal actions.
Constructor Summary | |
---|---|
DefaultInternalAction()
|
Method Summary | |
---|---|
boolean |
canBeUsedInContext()
Return true if the internal action can be used in plans' context |
protected void |
checkArguments(Term[] args)
|
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action. |
int |
getMaxArgs()
|
int |
getMinArgs()
|
Term[] |
prepareArguments(Literal body,
Unifier un)
Prepare body's terms to be used in 'execute', normally it consist of cloning and applying each term |
boolean |
suspendIntention()
Returns true if the internal action (IA) should suspend the intention where the IA is called |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultInternalAction()
Method Detail |
---|
public boolean suspendIntention()
InternalAction
suspendIntention
in interface InternalAction
public boolean canBeUsedInContext()
InternalAction
canBeUsedInContext
in interface InternalAction
public int getMinArgs()
public int getMaxArgs()
protected void checkArguments(Term[] args) throws JasonException
JasonException
public Term[] prepareArguments(Literal body, Unifier un)
InternalAction
prepareArguments
in interface InternalAction
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.Exception
InternalAction
execute
in interface InternalAction
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |