//copyright (C) 2007 Mocanu Cristian Romeo
package balls;
import java.util.List;
import java.util.LinkedList;
/**
* Describe class
<code>BallsSolution</code> here.
*
* @author <a href="mailto:chrimeea@yahoo.com">Cristian Mocanu</a>
* @version 1.0
*/
public class BallsSolution
{
private
boolean hasSolution;
private
Knowledge knowledge;
private
List<SolutionBean> solutions;
public
BallsSolution() {
hasSolution = false;
}
public
BallsSolution(Knowledge k) {
hasSolution = true;
knowledge = k.clone();
solutions = new LinkedList<SolutionBean>();
}
public
List<SolutionBean> getSolutions()
{
return solutions;
}
public
void addSolution(SolutionBean
b) {
solutions.add(b);
}
public
boolean hasSolution() {
return hasSolution;
}
public
void setHasSolution(boolean
h) {
hasSolution = h;
}
public
boolean isEmptySolutions()
{
return solutions.isEmpty();
}
public
Knowledge getKnowledge() {
return knowledge;
}
}