Package jason.stdlib
Class drop_future_intention
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.drop_intention
jason.stdlib.drop_desire
jason.stdlib.drop_future_intention
- All Implemented Interfaces:
InternalAction
,Serializable
@Manual(literal=".drop_future_intention(goal)",
hint="removes intentions that will try to achieve goal the referred goal",
argsHint="the goal the intentions achieve",
argsType="literal",
examples="drop_future_intention(go(1,3)): removes an intention having a plan that will execute +!go(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.current_intention","jason.stdlib.resume","jason.stdlib.suspend","jason.stdlib.suspended"})
public class drop_future_intention
extends drop_desire
Internal action: .drop_future_intention(I)
.
Description: removes intentions that will try to achieve goal I from the set of intentions of the agent (suspended intentions are also considered). No event is produced. The current implementation consider only intended means (already instantiated plans), in the future we can consider to look ahead for possible selected plans.
Parameters:
- - goal (literal): the goal the intentions achieve.
Example:
.drop_future_intention(go(1,3))
: removes an intention having a plan that will execute+!go(1,3)
.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkArguments
(Term[] args) boolean
dropInt
(Circumstance C, Literal goal, Unifier un) Drops an intention based on a goal argument returns true if the current intention is droppedint
int
Methods inherited from class jason.stdlib.drop_desire
dropEvt, execute
Methods inherited from class jason.stdlib.drop_intention
suspendIntention
Methods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, destroy, prepareArguments
-
Constructor Details
-
drop_future_intention
public drop_future_intention()
-
-
Method Details
-
getMinArgs
public int getMinArgs()- Overrides:
getMinArgs
in classdrop_intention
-
getMaxArgs
public int getMaxArgs()- Overrides:
getMaxArgs
in classdrop_intention
-
checkArguments
- Overrides:
checkArguments
in classdrop_intention
- Throws:
JasonException
-
dropInt
Description copied from class:drop_intention
Drops an intention based on a goal argument returns true if the current intention is dropped- Overrides:
dropInt
in classdrop_intention
-