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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkArguments
(Term[] args) void
drop
(TransitionSystem ts, IMCondition c, Unifier un) execute
(TransitionSystem ts, Unifier un, Term[] args) Executes the internal action.int
boolean
Returns true if the internal action (IA) should suspend the intention where the IA is calledMethods inherited from class jason.stdlib.succeed_goal
drop, dropIntention, getMaxArgs
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, destroy, prepareArguments
-
Constructor Details
-
done
public done()
-
-
Method Details
-
suspendIntention
public boolean suspendIntention()Description copied from interface:InternalAction
Returns true if the internal action (IA) should suspend the intention where the IA is called- Specified by:
suspendIntention
in interfaceInternalAction
- Overrides:
suspendIntention
in classDefaultInternalAction
-
getMinArgs
public int getMinArgs()- Overrides:
getMinArgs
in classsucceed_goal
-
checkArguments
- Overrides:
checkArguments
in classsucceed_goal
- Throws:
JasonException
-
execute
Description copied from interface:InternalAction
Executes 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:
execute
in interfaceInternalAction
- Overrides:
execute
in classsucceed_goal
- Throws:
Exception
-
drop
- Overrides:
drop
in classsucceed_goal
- Throws:
Exception
-