Skip to content

Some questions about using Jason as a library #113

Answered by jomifred
ChrisL20J asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Chris,

indeed, to use Jason as a library, a lot of knowledge about the API is required.

  1. the createAgent is not meant to be used to add beliefs. Even the BB parameter is used to inform a java class that implements a custom BB. It simply creates the agent. From the RuntimeServices API, you can use getAgentSnapshot to get a copy of the agent, in an Agent instance. From this class you can inspect all BB of the agent. Notice that it is a copy of the agent, not the agent itself.
  2. From class RunLocalMAS you can get the Architecture of running agents. From this class, you can get the Agent and then methods to add belifs.
  3. you can take a look at the internal actions that make a snapshot of…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jomifred
Comment options

@jomifred
Comment options

@ChrisL20J
Comment options

Answer selected by ChrisL20J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants