A sandbox environment for debugging Protelis code through Alchemist Simulator
To run the simulation Java 8 is required
These instructions describe how to set up and run the simulation
How the simulation is structured
/protelis-sandbox/src/main/
|------> effects/ (Add effects to the simulation)
|------> protelis/ (Protelis code)
|------> resources/ (Maps, ...)
|------> yaml/ (Alchemist configurations)
- Alchemist. Change
alchemistVersion
ingradle.properties
to update the Alchemist release
To execute the simulation
cd protelis-sandbox
./gradlew
Modify simulation
in gradle.properties
to change the simulation that will be executed. Note that by default simulation effects should have the same name of the simulation.
Writing Protelis code is way easier with Eclipse.
- Make Gradle compile your
.classpath
and.project
files- Enter
protelis-sandbox/
and run./gradlew eclipse
- Enter
- You need to install the following plugins
- XText
- Protelis
- Right click on the project and select:
Configure > Add Xtext Nature
- Create a new Protelis file
foo.pt
insrc/main/protelis
- Check syntax completion and highlight