
com.github.tommyettinger.gand.algorithms.Algorithm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gand Show documentation
Show all versions of gand Show documentation
Pathfinding and other graph algorithms. Based on simple-graphs.
package com.github.tommyettinger.gand.algorithms;
public abstract class Algorithm {
protected final int id;
protected Algorithm(int id) {
this.id = id;
}
public abstract boolean update();
public abstract boolean isFinished();
public void finish() {
while (!update());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy