Skip to content

Commit

Permalink
Changed license to GPLv2. Bump version to 0.0.5
Browse files Browse the repository at this point in the history
- Add GPLv2 license + header file for all source files
- Minor README update
  • Loading branch information
beltex committed Aug 10, 2014
1 parent 219f92b commit 353cfe0
Show file tree
Hide file tree
Showing 30 changed files with 917 additions and 33 deletions.
360 changes: 339 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ infection
A simulator for studying infection algorithms for distributed agents with
variable graph topologies.

This project is under the **MIT License**. See ```LICENSE``` file.

![alt text](http://beltex.github.io/infection/vis-1.gif)


Expand Down Expand Up @@ -197,3 +195,8 @@ The metadata file contains overview information about the completed simulation.

- [_Infection algorithms for distributed agents_](http://beltex.github.io/infection/paper-1.pdf)
- [_Efficient leader election among numbered agents_](http://beltex.github.io/infection/paper-2.pdf)


### License

This project is under the **GNU General Public License v2.0**.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'findbugs'

version = '0.0.4'
version = '0.0.5'
description = 'Leader election simulator with dynamic graph visualization'

sourceCompatibility = '1.7'
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/client/ChainExp.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* ChainExp.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package client;

import org.pmw.tinylog.Level;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/client/OriginalPaper.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* OriginalPaper.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package client;

import org.pmw.tinylog.Level;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/client/SampleClient.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* SampleClient.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package client;

import org.pmw.tinylog.Level;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/client/Visualization.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* Visualization.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package client;

import org.pmw.tinylog.Level;
Expand Down
22 changes: 21 additions & 1 deletion src/main/java/sim/Agent.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
package sim;
/*
* Agent.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

/**
* Representation of an autonomous agent
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/AgentDistribution.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* AgentDistribution.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import java.util.ArrayList;
Expand Down
24 changes: 23 additions & 1 deletion src/main/java/sim/ChainGenerator.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
/*
* ChainGenerator.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import org.graphstream.algorithm.generator.BaseGenerator;
import org.pmw.tinylog.Logger;


/**
* Generator for a chain graph of any size.
* Generator for a chain graph of any size. NOTE: This class was merged into
* GraphStream core 1.3.
*
* <p>
* This generator creates a chain graph (much like a linked-list). By default,
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/ExtendedGraph.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* ExtendedGraph.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import java.util.HashMap;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/ExtendedNode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* ExtendedNode.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import java.util.ArrayList;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/ExtendedNodeFactory.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* ExtendedNodeFactory.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import org.graphstream.graph.Graph;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/GraphGeneratorSource.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* GraphGeneratorSource.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import org.graphstream.algorithm.generator.BaseGenerator;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/GraphIO.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* GraphIO.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import java.io.IOException;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/GraphVis.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* GraphVis.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import java.io.File;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/sim/InfectionCountChart.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* InfectionCountChart.java
* infection
*
* Copyright (C) 2014 beltex <https://github.com/beltex>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

package sim;

import org.graphstream.algorithm.measure.ChartMeasure.PlotException;
Expand Down
Loading

0 comments on commit 353cfe0

Please sign in to comment.