[WIP] Add javadoc for most classes. #6

Manually merged
regar42 merged 5 commits from javadoc into lastDijsktraClasses 2017-12-10 14:40:43 +00:00
3 changed files with 29 additions and 2 deletions
Showing only changes of commit 8a8eac7ac1 - Show all commits

No files matched your search

+12
View File
@@ -4,6 +4,18 @@ import java.util.List;
import dijkstra.VertexInterface;
/** <h1> Box class </h1>
* <p>
*
* This class describes a Box and implements {@link dijkstra.VertexInterface}.
* <p>
* A Box is represented with its coordinates, its label, and its neighbourList. It also has a reference on the Maze.
*
* @author Antonin Godard
* @author Sylvain Rager
*
*/
public abstract class Box
implements VertexInterface {
+10 -2
View File
@@ -10,8 +10,7 @@ import dijkstra.VertexInterface;
/** <h1> Maze class </h1>
* <p>
* This class describes the maze as a matrix of Boxes ({@link maze.Box}).
*
* This class describes the maze as a matrix of Boxes ({@link maze.Box}).
*
* @author Antonin Godard
* @author Sylvain Rager
@@ -30,6 +29,9 @@ public class Maze
}
/**
*
*/
public int getCost(VertexInterface start, VertexInterface end) {
Box startBox = (Box) start ;
@@ -51,6 +53,9 @@ public class Maze
return dimensionX*dimensionY ;
}
/**
* @param ArrayList<VertexInterface>
*/
public ArrayList<VertexInterface> getVertexes() {
ArrayList<VertexInterface> vertexList = new ArrayList<VertexInterface>() ;
for (int i = 0 ; i < dimensionX ; i++) {
@@ -63,6 +68,9 @@ public class Maze
return vertexList ;
}
/**
*
*/
public ArrayList<VertexInterface> generateNeighbours(VertexInterface vertex) {
Box box = (Box)vertex ;
+7
View File
@@ -1,5 +1,12 @@
package maze;
/**<h1> MazeReadingException exception </h1>
* <p>
* This class is used to throw exception when reading and initiating the maze from a text file.
*
*
*/
public class MazeReadingException
extends Exception {