diff --git a/src/maze/Box.java b/src/maze/Box.java index 2326e21..9219de9 100644 --- a/src/maze/Box.java +++ b/src/maze/Box.java @@ -4,6 +4,18 @@ import java.util.List; import dijkstra.VertexInterface; +/**
+ * + * This class describes a Box and implements {@link dijkstra.VertexInterface}. + *
+ * 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 { diff --git a/src/maze/Maze.java b/src/maze/Maze.java index f616912..a5a8dde 100644 --- a/src/maze/Maze.java +++ b/src/maze/Maze.java @@ -10,8 +10,7 @@ import dijkstra.VertexInterface; /**
- * 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
+ * This class is used to throw exception when reading and initiating the maze from a text file.
+ *
+ *
+ */
+
public class MazeReadingException
extends Exception {
MazeReadingException exception
+ *