Agents Assembly translator
Project description
Agents Assembly Translator
Table of Contents
About
A target agnostic translator for Agents Assembly. The translator can be tested live on Agents Assembly website. It is a part of the Agents Assembly ecosystem. Other applications are:
- Local Interface - GUI for simulation definition, management, and analysis.
- Simulation Run Environment - environment for running scalable agent-based simulations.
- Communication Server - cluster of servers used for XMPP communication.
Agents Assembly
Documentation of Agents Assembly can be read here.
Getting Started
Prerequisites
Python 3.10
Installation
The translator can be installed by running:
pip install aasm
Alternatively, you can download this repository. No additional dependencies are required.
Usage
You can run the translator as a package. To translate agent.aasm to SPADE, run:
python -m aasm.translate agent.aasm
For more usage information, run:
python -m aasm.translate --help
Structure
generating
code.py
- generated codepython_code.py
- Python code base classpython_graph.py
- Python graph code generation from the intermediate representationpython_spade.py
- SPADE agent code generation from the intermediate representation
intermediate
action.py
agent.py
argument.py
- arguments used in instructionsbehaviour.py
block.py
- block of code representationdeclaration.py
- declarations used in actionsgraph.py
instruction.py
- instructions used in actionsmessage.py
parsing
parse.py
- parsing environment from Agents Assembly fileop/
- Agents Assembly operationsstate.py
- state definition used for the parsing process
preprocessor
constants.py
- constants used in the preprocessormacro.py
- macro definitions used in the preprocessorpreprocessor_item.py
- preprocessor base itempreprocessor.py
utils
exception.py
validation.py
iteration.py
translate.py
- entrypoint
Contributing
Please follow the contributing guide if you wish to contribute to the project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aasm-0.0.48.tar.gz
(64.6 kB
view hashes)
Built Distribution
aasm-0.0.48-py2.py3-none-any.whl
(46.2 kB
view hashes)
Close
Hashes for aasm-0.0.48-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d9b8412087b2df5ce695bb148142ca916d4083c36e3157626bd65e37b325fd |
|
MD5 | 8ec9438eb674ddef787b6ca1f44891ba |
|
BLAKE2b-256 | 50061f8ef92b776e1e3a53b5f836561034c0560ad3a237d8004fce42843b7095 |