Add documentation and fix Javadoc warnings

* Describe the aim of the interfaces
* Explain what are the box inherited from Box
* Fix Javadoc warnings by specifying the parameters and returns of the
  methods in the interfaces
This commit is contained in:
regar42 committed 2017-12-10 15:27:57 +01:00
1 parent 8db8b3faad
commit 4d1d3b39a2
10 files changed
+103 -16

No files matched your search

+15 -3
View File
@@ -2,14 +2,26 @@ package dijkstra;
/**
* This is the Pi class as described in the INF101 course of Telecom Paristech.
*
* It contains the path's cost to reach vertexes (typically, from the root of the graph).
*/
public interface PiInterface {
/** Returns the value of pi(v) */
/**
* Gets the cost to reach the given <code>VertexInterface</code>
* @param vertex
* The <code>VertexInterface</code> from which we get the Pi value (cost) to reach it.
* @return An <code>integer</code> giving the Pi value (cost) the reach the <code>VertexInterface</code>.
*
*/
public int getPi(VertexInterface vertex) ;
/** Sets the Pi value of an element */
/**
* Sets the Pi value of an element
* @param i
* The Pi value (cost) to set.
* @param vertex
* The <code>VertexInterface</code> on which the Pi value (cost) is to be set.
*/
public void setPi(int i, VertexInterface vertex) ;
}