Package jason.stdlib
Class done
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.succeed_goal
jason.stdlib.done
- All Implemented Interfaces:
InternalAction,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckArguments(Term[] args) voiddrop(TransitionSystem ts, IMCondition c, Unifier un) execute(TransitionSystem ts, Unifier un, Term[] args) Executes the internal action.intbooleanReturns true if the internal action (IA) should suspend the intention where the IA is calledMethods inherited from class jason.stdlib.succeed_goal
drop, dropIntention, getMaxArgsMethods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, destroy, prepareArguments
-
Constructor Details
-
done
public done()
-
-
Method Details
-
suspendIntention
public boolean suspendIntention()Description copied from interface:InternalActionReturns true if the internal action (IA) should suspend the intention where the IA is called- Specified by:
suspendIntentionin interfaceInternalAction- Overrides:
suspendIntentionin classDefaultInternalAction
-
getMinArgs
public int getMinArgs()- Overrides:
getMinArgsin classsucceed_goal
-
checkArguments
- Overrides:
checkArgumentsin classsucceed_goal- Throws:
JasonException
-
execute
Description copied from interface:InternalActionExecutes the internal action. It should return a Boolean or an Iterator. A true boolean return means that the IA was successfully executed. An Iterator result means that there is more than one answer for this IA (e.g. see member internal action). - Specified by:
executein interfaceInternalAction- Overrides:
executein classsucceed_goal- Throws:
Exception
-
drop
- Overrides:
dropin classsucceed_goal- Throws:
Exception
-