Files
TpMazeJava/src/dijkstra/ASetInterface.java
T
regar42 4d1d3b39a2 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
2017-12-10 15:27:57 +01:00

34 lines
918 B
Java

package dijkstra;
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 {
/**
* Adds a vertex to the set.
* @param vertex
* The element to be added to the set.
*/
public void add(VertexInterface vertex) ;
/**
* 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.
* @return A <code>HashSet</code> containing the same elements as in the set.
*/
public HashSet<VertexInterface> getVertexHashSet();
}