Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command-line arguments to Jason project #97

Open
nmontesg opened this issue Mar 18, 2022 · 4 comments
Open

Command-line arguments to Jason project #97

nmontesg opened this issue Mar 18, 2022 · 4 comments

Comments

@nmontesg
Copy link

Hi,

Is it possible to pass command-line arguments when calling the jason script?

I would like to have command-line arguments when running jason $jason project.mas2j that are passed to the MAS file:

MAS project {

    environment:
        ProjectEnv($1, $2, ...)

    agents:
        ...
}

Is it possible to do such a thing?

@jomifred
Copy link
Contributor

Hi, unfortunately this feature is not implemented yet! But, for sure, it would be a valuable improvement for future releases.

@nmontesg
Copy link
Author

nmontesg commented Jun 7, 2022

Hi, a somewhat related question is whether a custom agent class can accept arguments. In my case, I want to have a custom agent class with an array of "back up" belief bases. I would like the number of back ups to be an argument provided at runtime. Is this possible? If so, what methods should be overriden (constructor of initAg())?

@jomifred
Copy link
Contributor

jomifred commented Jun 7, 2022 via email

@nmontesg
Copy link
Author

nmontesg commented Jun 8, 2022

Hi Jomi,

thanks for the response, it was very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants