Commit f3069c57 authored by gsavin's avatar gsavin

Add pom.xml to allow the use of Maven with this project.

parent 903c8a5b
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file is part of GraphStream <http://graphstream-project.org>. GraphStream
is a library whose purpose is to handle static or dynamic graph, create them
from scratch, file or any source and display them. This program is free software
distributed under the terms of two licenses, the CeCILL-C license that fits
European law, and the GNU Lesser General Public License. You can use, modify
and/ or redistribute the software under the terms of the CeCILL-C license
as circulated by CEA, CNRS and INRIA at the following URL <http://www.cecill.info>
or under the terms of the GNU LGPL as published by the Free Software Foundation,
either version 3 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 Lesser General Public License for more
details. You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see <http://www.gnu.org/licenses/>.
The fact that you are presently reading this means that you have had knowledge
of the CeCILL-C and LGPL licenses and that you accept their terms. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.graphstream</groupId>
<artifactId>gs-boids</artifactId>
<version>git</version>
<name>gs-boids</name>
<description>
This is a boids library using GraphStream.
</description>
<url>http://graphstream-project.org</url>
<!-- Source code of GraphStream is hosted on GitHub. -->
<scm>
<connection>scm:git:git://github.com/graphstream/gs-boids.git</connection>
<tag>1.0</tag>
<url>https://github.com/graphstream/gs-boids</url>
</scm>
<!-- GraphStream is using the GitHub issue tracker. -->
<issueManagement>
<system>github</system>
<url>https://github.com/graphstream/gs-core/issues</url>
</issueManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<!-- The GraphStream Team. Members are sorted in alphabetically. -->
<developers>
<developer>
<id>adutot</id>
<name>Antoine Dutot</name>
<email>antoine.dutot@graphstream-project.org</email>
<organization>LITIS</organization>
<organizationUrl>http://www.litislab.eu</organizationUrl>
</developer>
<developer>
<id>gsavin</id>
<name>Guilhelm Savin</name>
<email>guilhelm.savin@graphstream-project.org</email>
<organization>LITIS</organization>
<organizationUrl>http://www.litislab.eu</organizationUrl>
</developer>
</developers>
<licenses>
<license>
<name>LGPL3</name>
<url>http://www.gnu.org/copyleft/lesser.html</url>
</license>
<license>
<name>Cecill-C</name>
<url>http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
</url>
</license>
</licenses>
<build>
<sourceDirectory>src</sourceDirectory>
<outputDirectory>bin</outputDirectory>
<testSourceDirectory>src-test</testSourceDirectory>
<defaultGoal>compile</defaultGoal>
<resources>
<!-- Resources other than classes are included here. -->
<!--<resource>
<directory>src</directory>
</resource>-->
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<excludes>
<exclude>org/graphstream/boids/gui/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<configuration>
<sourceIncludes>
<include>**</include>
</sourceIncludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<tags>
<tag>
<name>complexity</name>
<placement>a</placement>
<head>Computational Complexity :</head>
</tag>
<tag>
<name>reference</name>
<placement>a</placement>
<head>Scientific Reference :</head>
</tag>
</tags>
<author>true</author>
<nodeprecated>false</nodeprecated>
<nodeprecatedlist>false</nodeprecatedlist>
<noindex>false</noindex>
<nonavbar>false</nonavbar>
<notree>false</notree>
<show>public</show>
<source>1.5</source>
<splitindex>true</splitindex>
<use>true</use>
<version>true</version>
<windowtitle>The GraphStream ${project.version} API</windowtitle>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*$*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<keyname><![CDATA[GraphStream Team <team@graphstream-project.org>]]></keyname>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.4</version>
<optional>false</optional>
</dependency>
<dependency>
<groupId>org.graphstream</groupId>
<artifactId>gs-core</artifactId>
<version>1.0</version>
<optional>false</optional>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -32,7 +32,6 @@ package org.graphstream.boids;
import java.util.HashMap;
import org.graphstream.boids.gui.GUI;
import org.graphstream.graph.Graph;
import org.graphstream.graph.NodeFactory;
import org.graphstream.graph.implementations.AdjacencyListGraph;
......@@ -140,11 +139,6 @@ public class Context extends AdjacencyListGraph {
*/
protected ParticleBox pbox;
/**
* The graphical interface.
*/
protected GUI gui;
// Attributes
/**
......@@ -235,15 +229,6 @@ public class Context extends AdjacencyListGraph {
return pbox;
}
/**
* The current GUI if any, else null.
*
* @return The GUI or null of none was open.
*/
public GUI getGui() {
return gui;
}
/**
* The GUI mouse particle.
*
......@@ -325,20 +310,6 @@ public class Context extends AdjacencyListGraph {
this.removeCaughtBoids = removeCaughtBoids;
}
/**
* Open a GUI to monitor what's going on.
*/
public void addGUI() {
if (gui == null) {
gui = new GUI(this);
/*
* if (showMouse) { mouse = new Mouse("Mouse", this);
*
* pbox.addParticle(mouse); }
*/
}
}
/**
* Stop the main simulation loop.
*/
......@@ -432,7 +403,9 @@ public class Context extends AdjacencyListGraph {
public static void main(String... args) {
Context ctx = new Context();
ctx.addAttribute("ui.quality");
ctx.addAttribute("ui.antialias");
ctx.display(false);
for (int i = 0; i < 100; i++)
......
package org.graphstream.boids.gui;
import org.graphstream.boids.Context;
public class MillionBoids
{
private static final long serialVersionUID = 1L;
// Attributes
protected Context ctx;
// Constructors
public static void main( String args[] )
{
new MillionBoids( args );
}
public MillionBoids( String args[] )
{
try
{
ctx = new Context();
ctx.setup( args );
//ctx.addGUI();
ctx.loop();
}
catch( Exception e )
{
e.printStackTrace();
}
}
// Access
// Commands
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment