Package jason.stdlib
Class resume
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.resume
- All Implemented Interfaces:
InternalAction
,java.io.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.
-
Field Summary
Fields Modifier and Type Field Description private static Term
resumeReason
-
Constructor Summary
Constructors Constructor Description resume()
-
Method Summary
Modifier and Type Method Description protected void
checkArguments(Term[] args)
java.lang.Object
execute(TransitionSystem ts, Unifier un, Term[] args)
Executes the internal action.int
getMaxArgs()
int
getMinArgs()
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, destroy, prepareArguments, suspendIntention
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
resumeReason
-
-
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
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 classDefaultInternalAction
- Throws:
java.lang.Exception
-