| Shapebugs |
SoftwareDownload
Installing Swarm 2.2 simulatorThe user must first install (or verify the availability of) appropriate versions of the needed software in order to provide a proper compilation and execution environment for Swarm. We no longer maintain an up-to-date archive of the packages needed by Swarm, as they are readily found on the web. The list of packages needed by Swarm 2.2 is:
Once the environment has been set up, and the source downloaded and de-tarred into an appropriate directory, the user should consult the README and INSTALL file to learn what options should be specified to the configure script that configures Swarm to the local system. Compilation and linking are done using make as usual, after this step. You also need an explicit make install step, after the initial make build to cleanly install Swarm to an appropriate location (for example /usr/local). This is explained futher in the README and INSTALL files contained in the distribution. After compilation and installation of Swarm a set of program libraries and header files against which Swarm applications can be compiled and linked is available. Installing ShapebugsFirst, install the Swarm 2.2 simulator as described above. Unzip the Java source files and the included makefile. Make sure the appropriate environment variables are set up. JAVA_HOME should point to a current version of Java, and SWARMHOME should point to the Swarm software directory as described in the README file that comes with the Swarm 2.2 distribution. Run make to compile the Java classes into a single binary executable.Running ShapebugsThe Shapebugs program can be run in graphical mode or batch mode. In graphical mode, the usage is:
jshapebugs.exe <shapemap.bmp>
<obstacles.bmp>
<#bugs>
<movErr>
<proxErr>
<intv>
<window>
<outFile>
In batch mode, the usage is:
jshapebugs.exe <shapemap.bmp>
<obstacles.bmp>
<#bugs>
<script>
The command line arguments are all required. A brief description of their meaning is below:
|