public class PartialSolution extends Object
Constructor and Description |
---|
PartialSolution(boolean[] solution,
int[][] parent) |
Modifier and Type | Method and Description |
---|---|
int[] |
getKnownClafers() |
int[] |
getPossibleParents(int id) |
int[] |
getPossiblesSiblings(int id) |
boolean[] |
getSolution() |
int[] |
getUnknownClafers() |
boolean |
hasClafer(int id) |
boolean |
parentSolutionKnown() |
int |
size() |
public PartialSolution(boolean[] solution, int[][] parent)
public boolean hasClafer(int id)
id
- public boolean[] getSolution()
public int[] getKnownClafers()
public int[] getUnknownClafers()
public int[] getPossibleParents(int id)
id
- id
public boolean parentSolutionKnown()
true
if and only if all parents are known, false
otherwisepublic int[] getPossiblesSiblings(int id)
id
- id
public int size()
Copyright © 2013. All Rights Reserved.