Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package jason.stdlib

Provides all default internal actions of Jason.

See:
Description

Class Summary
abolish | Internal action: `.abolish`.
add_annot | Internal action: `.add_annot`.
add_nested_source | Internal action: `.add_nested_source`.
add_plan | Internal action: `.add_plan`.
all_names | Internal action: `.all_names`.
at | Internal action: `.at`.
atom | Internal action: `.atom`.
broadcast | Internal action: `.broadcast`.
concat | Internal action: `.concat`.
count | Internal action: `.count`.
create_agent | Internal action: `.create_agent`.
current_intention | Internal action: `.current_intention`.
date | Internal action: `.date(YY,MM,DD)`.
delete | Internal action: `.delete`.
desire | Internal action: `.desire(D)`.
difference | Internal action: `.difference(S1,S2,S3)`.
drop_all_desires | Internal action: `.drop_all_desires`.
drop_all_events | Internal action: `.drop_all_events`.
drop_all_intentions | Internal action: `.drop_all_intentions`.
drop_desire | Internal action: `.drop_desire(D)`.
drop_event | Internal action: `.drop_event(D)`.
drop_intention | Internal action: `.drop_intention(I)`.
fail | Internal action: `.fail`.
fail_goal | Internal action: `.fail_goal(G)`.
findall | Internal action: `.findall(Var,Literal,List)`.
foreach | Implementation of for.
ground | Internal action: `.ground`.
if_then_else | Implementation of if.
intend | Internal action: `.intend(I)`.
intersection | Internal action: `.intersection(S1,S2,S3)`.
kill_agent | Internal action: `.kill_agent`.
length | Internal action: `.length`.
list | Internal action: `.list`.
list_plans | Internal action: `.list_plans`.
literal | Internal action: `.literal`.
loop | Implementation of while.
max | Internal action: `.max`.
member | Internal action: `.member(T,L)`.
min | Internal action: `.min`.
my_name | Internal action: `.my_name`.
nth | Internal action: `.nth`.
number | Internal action: `.number`.
perceive | Internal action: `.perceive`.
plan_label | Internal action: `.plan_label(P,L)`.
prefix | Internal action: `.prefix(P,L)`.
print | Internal action: `.print`.
println | Internal action: `.println`.
puts | Internal action: `.puts`.
random | Internal action: `.random(N)`.
range | Internal action: `.range(Var,Start,End)`.
relevant_plans | Internal action: `.relevant_plans`.
remove_plan | Internal action: `.remove_plan`.
resume | Internal action: `.resume(G)`.
reverse | Internal action: `.reverse`.
send | Internal action: `.send`.
sort | Internal action: `.sort`.
stopMAS | Internal action: `.stopMAS`.
string | Internal action: `.string`.
structure | Internal action: `.structure`.
sublist | Internal action: `.sublist(S,L)`.
substring | Internal action: `.substring`.
succeed_goal | Internal action: `.succeed_goal(G)`.
suffix | Internal action: `.suffix(S,L)`.
suspend | Internal action: `.suspend(G)`.
suspended | Internal action: `.suspended(G, R)`.
term2string | Internal action: `.term2string(T,S)`.
time | Internal action: `.time(HH,MM,SS)`.
union | Internal action: `.union(S1,S2,S3)`.
wait | Internal action: `.wait(E,T)`.

## Package jason.stdlib Description

Provides all default internal actions of Jason.

## BDI

- `desire`: check agent's desires.
- `drop_desire`: remove one agent's desire.
- `drop_all_desires`: remove agent's desires.
- `intend`: check agent's intentions.
- `drop_intention`: remove one agent's intention.
- `drop_all_intentions`: remove agent's intentions.
- `current_intention`: get a description of the current intention.
- `drop_event`: remove one event.
- `drop_all_events`: remove events in the interpreter.
- `succeed_goal`: abort some goal with success.
- `fail_goal`: abort some goal with failure.
- `suspend`: suspend intentions.
- `suspended`: check agent's suspended goals.
- `resume`: resume suspended intentions.

## Belief base

- `abolish`: remove some beliefs.
- `findall`: find all beliefs of some kind.
- `count`: count the number of beliefs of some kind.

## Plan Library

- `add_plan`: add new plans.
- `remove_plan`: remove a plan.
- `plan_label`: get the label of a plan.
- `relevant_plans`: get a list of plans.
- `list_plans`: print out the plans in the current plan library.

## Communication

- `send`: send messages.
- `broadcast`: broadcast messages.
- `my_name`: get the agent's name.
- `all_names`: get the names of all agents in the system.

## Lists and Sets

- `member`: list members.
- `length`: size of lists.
- `concat`: concat lists.
- `delete`: delete members of a lists.
- `reverse`: reverse lists.
- `nth`: nth element of a lists.
- `max`: maximum value of a lists.
- `min`: minimum value of a lists.
- `sort`: sort lists.
- `list`: check whether an argument is a list.
- `suffix`: suffixes of a list.
- `prefix`: prefixes of a list.
- `sublist`: sublists of a list.
- `difference`: difference of sets.
- `intersection`: intersection of sets.
- `union`: union of sets.

## String

- `length`: size of strings.
- `concat`: append strings.
- `delete`: delete characters of a string.
- `reverse`: reverse strings.
- `substring`: test substrings of strings.
- `string`: check whether an argument is a string.
- `term2string`: convert terms to strings and vice-versa.

## Execution control

- `if`: implementation of if.
- `while`: implementation of while.
- `for`: implementation of for.

## Meta programming

- `atom`: check whether an argument is an atom (p).
- `structure`: check whether an argument is a structure (p(t1,t2), [a,b]).
- `literal`: check whether an argument is a literal (p(t1,t2), ~p(t1,t2), p(t1,t2)[a1,a2]).
- `list`: check whether an argument is a list ([a,b]).
- `ground`: check whether an argument is ground.
- `number`: check whether an argument is a number (1, 2.3).
- `string`: check whether an argument is a string ("s").
- `ground`: check whether an argument is ground.
- `add_nested_source`: add a source in a literal.

## Miscellaneous

- `at`: add a future event.
- `wait`: wait some event.
- `create_agent`: create a new agent.
- `kill_agent`: kill an agent.
- `stopMAS`: stop all agents.
- `date`: get the current date.
- `time`: get the current time.
- `fail`: an action that always fails.
- `perceive`: force perception.
- `range`: backtrack values in a range (used in for).
- `random`: produces random numbers.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES