Package jason.stdlib
Class resume
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.resume
- All Implemented Interfaces:
InternalAction
,Serializable
@Manual(literal=".resume(goals)",
hint="resume goals that were suspended by .suspend (produces the meta-event ^!goals[state(resumed)])",
argsHint="the goal to be resume",
argsType="literal",
examples=".resume(go(1,3)): resume the goal of going to location 1,3",
seeAlso={"jason.stdlib.intend","jason.stdlib.desire","jason.stdlib.drop_all_desires","jason.stdlib.drop_all_events","jason.stdlib.drop_all_intentions","jason.stdlib.drop_intention","jason.stdlib.drop_desire","jason.stdlib.succeed_goal","jason.stdlib.fail_goal","jason.stdlib.intention","jason.stdlib.resume","jason.stdlib.suspend","jason.stdlib.suspended"})
public class resume
extends DefaultInternalAction
Internal action:
.resume(G)
.
Description: resume goals G that were suspended by .suspend
.
The meta-event ^!G[state(resumed)]
is produced.
Example:
-
.resume(go(1,3))
: resume the goal of going to location 1,3.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkArguments
(Term[] args) execute
(TransitionSystem ts, Unifier un, Term[] args) Executes the internal action.int
int
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, destroy, prepareArguments, suspendIntention
-
Constructor Details
-
resume
public resume()
-
-
Method Details
-
getMinArgs
public int getMinArgs()- Overrides:
getMinArgs
in classDefaultInternalAction
-
getMaxArgs
public int getMaxArgs()- Overrides:
getMaxArgs
in classDefaultInternalAction
-
checkArguments
- Overrides:
checkArguments
in classDefaultInternalAction
- 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 classDefaultInternalAction
- Throws:
Exception
-