Sensor/Emitter simulation | |
Code and documentationDownload the codeView the PDF documention View the Javadoc for simulation package View the Javadoc for utility-function package General descriptionThis simulation models a sensor network in a two-dimensional environment consisting of sensors and emitters. Both sensors and emitters are assigned one of N different frequencies, with sensors in frequency i being able to detect emitters in frequency i. Each sensor is described by its position in the environment, the frequency it is sensing, and its communication distance. Each emitter is described by its position, the direction of its signal, the distance the signal travels, the angle the signal spreads, and the frequency of the signal. The simulation is written in Java 1.5.0 and uses the MASON
Multiagent Simulation Toolkit Version 13. Make sure to install the latest version of the Java SDK before running and compiling the program. All
simulation code can be found in the Compiling and running the codeTo run the code, download and extract it. (Go to http://www.gzip.org if
you need help extracting
To run the simulation visualization program, go into the
To run the simulation without any visualization (useful if you want to gather statistics by running a batch of runs), type
from the In the Example runsExample 1: The following example illustrates a stationary, grid network monitoring four frequencies. The three emitters wander in a fixed
pattern throughout the environment. The Example 2: The next example shows the state of the simulation after the sensors have wandered around their environment. Like the previous
run, the three emitters move in a fixed pattern throughout the environment. The | |
|