This is the code for the sense sleep scheduling approaches used for the experiments in the paper 
“Agent-based decentralised coordination for sensor networks using the max-sum algorithm”
by Alessandro Farinelli, Alex Rogers, Nick R. Jennings. 

We advocate the use of maven and eclipse to modify/compile and execute.

Using Eclipse:
  - set as source folder the folder "src/main/java" 
  - include in the Build Path the jar files in the lib directory as external jars. 
Once you do that the project should compile 

Using Maven:
  - install the  simplemaxsum-1.1-SNAPSHOT.jar file by typing the command: " mvn install:install-file -Dfile=lib/simplemaxsum-1.1-SNAPSHOT.jar -DgroupId=simplemaxsum -DartifactId=simplemaxsum -Dversion=1.1 -Dpackaging=jar"
  -install the  sensesleep-1.0-SNAPSHOT.jar file by typing the command: " mvn install:install-file -Dfile=lib/sensesleep-1.0-SNAPSHOT.jar -DgroupId=sensesleep -DartifactId=sensesleep -Dversion=1 -Dpackaging=jar"
  - type mvn clean; mvn compile

To see an example running you can execute the jar file sensorcoverage-1.0-SNAPSHOT-jar-with-dependencies.jar
which executes the main method of Experiments.java.
To do so type: 
"cd target"
"java -jar sensorcoverage-1.0-SNAPSHOT-jar-with-dependencies.jar"

For any question you can get in contact with Alessandro Farinelli (alessandro.farinelli@univr.it).

