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

+16 -3
View File
@@ -4,16 +4,29 @@ import java.util.HashSet;
/**
* This is the ASet class as described in the INF101 course of Telecom Paristech.
* The ASet contains vertexes for which the shortest path has already been found (vertexes already examined by the dijkstra algorithm).
*/
public interface ASetInterface {
/** Add a vertex to the ASet */
/**
* Adds a vertex to the set.
* @param vertex
* The element to be added to the set.
*/
public void add(VertexInterface vertex) ;
/** Check if a vertex belongs to ASet */
/**
* Checks if a vertex belongs to the set.
* @param vertex
* The element we must check if it belongs to the set.
* @return <code>true</code> if the element is in the set, <code>false</code> if not.
*/
public boolean contains(VertexInterface vertex) ;
/** Returns the HashSet which represents the ASet. */
/**
* Returns the HashSet which represents the ASet.
* @return A <code>HashSet</code> containing the same elements as in the set.
*/
public HashSet<VertexInterface> getVertexHashSet();