-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from fmohr/dev
Fundamental changes for the next major release
- Loading branch information
Showing
2,395 changed files
with
338,734 additions
and
70,835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,82 @@ | ||
plugins { | ||
id 'java' | ||
id 'eclipse' | ||
//id 'org.openjfx.javafxplugin' version '0.0.5' | ||
} | ||
eclipse { | ||
classpath { | ||
downloadJavadoc = true | ||
downloadSources = true | ||
} | ||
} | ||
dependencies { | ||
compile project(":JAICore:jaicore-basic") | ||
|
||
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.7' | ||
|
||
implementation 'com.github.mwever:gs-core:2.0.2-synchrofix' | ||
implementation 'com.github.graphstream:gs-ui-javafx:2.0-alpha' | ||
implementation 'com.github.graphstream:gs-algo:2.0-alpha' | ||
|
||
} | ||
//javafx { | ||
// modules = [ 'javafx.controls', 'javafx.swing', 'javafx.web' ] | ||
//} | ||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
def ossrhUsername = project.hasProperty('ossrhUsername') ? project.property('ossrhUsername') : "" | ||
def ossrhPassword = project.hasProperty('ossrhPassword') ? project.property('ossrhPassword') : "" | ||
|
||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'JAICore-Graphvisualizer' | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'Thist project provides a graphical interface for visualizing algorithms (especially search and AutoML algorithms) contained in AILibs.' | ||
url 'https://libs.ai' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/fmohr/AILibs.git' | ||
developerConnection 'scm:git:https://github.com/fmohr/AILibs.git' | ||
url 'https://github.com/fmohr/AILibs' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'GPLv3' | ||
url 'https://www.gnu.org/licenses/gpl-3.0.en.html' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'fmohr' | ||
name 'Felix Mohr' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'mwever' | ||
name 'Marcel Wever' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'ahetzer' | ||
name 'Alexander Tornede' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
plugins { | ||
id 'java' | ||
id 'eclipse' | ||
id 'org.openjfx.javafxplugin' version '0.0.5' | ||
} | ||
|
||
eclipse { | ||
classpath { | ||
downloadJavadoc = true | ||
downloadSources = true | ||
} | ||
} | ||
|
||
dependencies { | ||
compile project(":JAICore:jaicore-basic") | ||
|
||
compile("$jsonDatabind") | ||
|
||
compile("$gsCore") | ||
compile("$gsUIJavaFX") | ||
compile("$gsAlgo") | ||
} | ||
|
||
javafx { | ||
modules = [ 'javafx.controls', 'javafx.swing', 'javafx.web' ] | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
def ossrhUsername = project.hasProperty('ossrhUsername') ? project.property('ossrhUsername') : "" | ||
def ossrhPassword = project.hasProperty('ossrhPassword') ? project.property('ossrhPassword') : "" | ||
|
||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name 'JAICore-Graphvisualizer' | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'Thist project provides a graphical interface for visualizing algorithms (especially search and AutoML algorithms) contained in AILibs.' | ||
url 'https://libs.ai' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/fmohr/AILibs.git' | ||
developerConnection 'scm:git:https://github.com/fmohr/AILibs.git' | ||
url 'https://github.com/fmohr/AILibs' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'GPLv3' | ||
url 'https://www.gnu.org/licenses/gpl-3.0.en.html' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'fmohr' | ||
name 'Felix Mohr' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'mwever' | ||
name 'Marcel Wever' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'ahetzer' | ||
name 'Alexander Tornede' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...rithminspector/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/GraphEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package ai.libs.jaicore.graphvisualizer.events.graph; | ||
|
||
import ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent; | ||
import org.api4.java.algorithm.events.IAlgorithmEvent; | ||
|
||
public interface GraphEvent extends AlgorithmEvent { | ||
public interface GraphEvent extends IAlgorithmEvent { | ||
} |
8 changes: 5 additions & 3 deletions
8
...tor/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/GraphInitializedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...minspector/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/NodeAddedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...ctor/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/NodeInfoAlteredEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package ai.libs.jaicore.graphvisualizer.events.graph; | ||
|
||
import org.api4.java.algorithm.IAlgorithm; | ||
|
||
import ai.libs.jaicore.basic.algorithm.AAlgorithmEvent; | ||
|
||
public class NodeInfoAlteredEvent<T> extends AAlgorithmEvent implements GraphEvent { | ||
|
||
private final T node; | ||
|
||
public NodeInfoAlteredEvent(final IAlgorithm<?, ?> algorithm, final T node) { | ||
super(algorithm); | ||
this.node = node; | ||
} | ||
|
||
public T getNode() { | ||
return this.node; | ||
} | ||
|
||
} |
8 changes: 5 additions & 3 deletions
8
...tor/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/NodeParentSwitchEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...nspector/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/NodeRemovedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...ector/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/NodeTypeSwitchEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tor/src/main/java/ai/libs/jaicore/graphvisualizer/events/graph/bus/AlgorithmEventBus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package ai.libs.jaicore.graphvisualizer.events.graph.bus; | ||
|
||
import ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent; | ||
import org.api4.java.algorithm.events.IAlgorithmEvent; | ||
|
||
public interface AlgorithmEventBus extends AlgorithmEventSource { | ||
|
||
public void postEvent(AlgorithmEvent algorithmEvent); | ||
public void postEvent(IAlgorithmEvent algorithmEvent); | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
...rc/main/java/ai/libs/jaicore/graphvisualizer/events/graph/bus/AlgorithmEventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package ai.libs.jaicore.graphvisualizer.events.graph.bus; | ||
|
||
import com.google.common.eventbus.Subscribe; | ||
import org.api4.java.algorithm.events.IAlgorithmEvent; | ||
|
||
import ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent; | ||
import com.google.common.eventbus.Subscribe; | ||
|
||
public interface AlgorithmEventListener { | ||
|
||
@Subscribe | ||
public void handleAlgorithmEvent(AlgorithmEvent algorithmEvent) throws HandleAlgorithmEventException; | ||
public void handleAlgorithmEvent(IAlgorithmEvent algorithmEvent) throws HandleAlgorithmEventException; | ||
} |
19 changes: 19 additions & 0 deletions
19
...s/jaicore/graphvisualizer/events/recorder/AIndependentAlgorithmEventPropertyComputer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ai.libs.jaicore.graphvisualizer.events.recorder; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import ai.libs.jaicore.graphvisualizer.events.recorder.property.AlgorithmEventPropertyComputer; | ||
|
||
public abstract class AIndependentAlgorithmEventPropertyComputer implements AlgorithmEventPropertyComputer { | ||
|
||
@Override | ||
public List<AlgorithmEventPropertyComputer> getRequiredPropertyComputers() { | ||
return Arrays.asList(); | ||
} | ||
|
||
@Override | ||
public void overwriteRequiredPropertyComputer(final AlgorithmEventPropertyComputer computer) { | ||
throw new UnsupportedOperationException(this.getClass().getCanonicalName() + " does not rely on other property computers, so overwriting makes no sense."); | ||
} | ||
} |
Oops, something went wrong.