cmsc433.p3
Class STSolution

java.lang.Object
  extended by cmsc433.p3.STSolution
All Implemented Interfaces:
Solution

public class STSolution
extends java.lang.Object
implements Solution

The STSolution class is a non-thread-safe implementation of the Solution interface.


Constructor Summary
STSolution()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STSolution

public STSolution()
Method Detail

getPaths

public java.util.List<Path> getPaths()
Description copied from interface: Solution
Returns the list of paths that comprise this solution.

Specified by:
getPaths in interface Solution
Returns:
the solution's list of paths

addPath

public void addPath(Path p)
Description copied from interface: Solution
Adds a path to this solution

Specified by:
addPath in interface Solution
Parameters:
p - - the path to add