Package jason.stdlib

Class suspended

All Implemented Interfaces:
InternalAction, Serializable

@Manual(literal=".suspended(goal,reason)", hint="checks whether given goal belongs to a suspended intention. Unifies with the reason for the suspend (waiting action to be performed, .wait, ....)", argsHint={"the goals to check if are suspended","the reason for being suspended"}, argsType={"literal","term"}, examples=".suspended(go(1,3),R): true if go(1,3) is a suspended goal. R unifies with \"act\" if the reason is an action waiting feedback from environment", 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.suspend","jason.stdlib.resume"}) public class suspended extends DefaultInternalAction

Internal action: .suspended(G, R).

Description: checks whether goal G belongs to a suspended intention. R (a term) unifies with the reason for the suspend (waiting action to be performed, .wait, ....). The literal G represents a suspended goal if there is a triggering event +!G in any plan within any intention in PI or PA.

Example:

  • .suspended(go(1,3),R): true if go(1,3) is a suspended goal. R unifies with "act" if the reason for being suspended is an action waiting feedback from environment.
See Also: