Package jason.stdlib
Class done
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.succeed_goal
jason.stdlib.done
- All Implemented Interfaces:
InternalAction
,java.io.Serializable
public class done extends succeed_goal
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private boolean
resultSuspend
-
Constructor Summary
Constructors Constructor Description done()
-
Method Summary
Modifier and Type Method Description protected void
checkArguments(Term[] args)
void
drop(TransitionSystem ts, IMCondition c, Unifier un)
java.lang.Object
execute(TransitionSystem ts, Unifier un, Term[] args)
Executes the internal action.int
getMinArgs()
boolean
suspendIntention()
Returns true if the internal action (IA) should suspend the intention where the IA is calledMethods inherited from class jason.stdlib.succeed_goal
drop, dropInEvent, dropIntention, getMaxArgs
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, destroy, prepareArguments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
resultSuspend
private boolean resultSuspend
-
-
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
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.ExceptionDescription 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:
java.lang.Exception
-
drop
- Overrides:
drop
in classsucceed_goal
- Throws:
java.lang.Exception
-