cmsc433.p3
Interface Solution

All Known Implementing Classes:
STSolution

public interface Solution

The Solution interface represents a solution to a Grid. It consists of a list of paths, which should correspond to words in the grid that appear in a given dictionary.


Method Summary
 void addPath(Path p)
          Adds a path to this solution
 java.util.List<Path> getPaths()
          Returns the list of paths that comprise this solution.
 

Method Detail

getPaths

java.util.List<Path> getPaths()
Returns the list of paths that comprise this solution.

Returns:
the solution's list of paths

addPath

void addPath(Path p)
Adds a path to this solution

Parameters:
p - - the path to add