public class AnalyzeResultsImpl<T> extends Object implements AnalyzeResult<T>
| Constructor and Description |
|---|
AnalyzeResultsImpl(List<FieldRule<T>> original,
List<FieldRule<T>> rules,
List<FieldGroup<T>> groups,
List<Solution<T>> solutions,
double total) |
| Modifier and Type | Method and Description |
|---|---|
DetailedResults<T> |
analyzeDetailed(NeighborFind<T> neighborStrategy) |
AnalyzeResult<T> |
cloneAddSolve(List<FieldRule<T>> extraRules) |
List<T> |
getFields() |
FieldGroup<T> |
getGroupFor(T field) |
List<FieldGroup<T>> |
getGroups() |
List<FieldRule<T>> |
getOriginalRules()
Get the list of the original, non-simplified, rules
|
double |
getProbabilityOf(List<FieldRule<T>> extraRules) |
List<FieldRule<T>> |
getRules()
Get the list of simplified rules used to perform the analyze
|
List<T> |
getSolution(double solution) |
Iterable<Solution<T>> |
getSolutionIteration() |
List<Solution<T>> |
getSolutions() |
double |
getTotal()
Get the total number of combinations of Field placements.
|
List<T> |
randomSolution(Random random)
Return a random solution that satisfies all the rules
|
public double getTotal()
AnalyzeResultgetTotal in interface AnalyzeResult<T>public List<FieldRule<T>> getRules()
getRules in interface AnalyzeResult<T>public FieldGroup<T> getGroupFor(T field)
getGroupFor in interface AnalyzeResult<T>public List<T> randomSolution(Random random)
randomSolution in interface AnalyzeResult<T>random - Random object to perform the randomizationpublic AnalyzeResult<T> cloneAddSolve(List<FieldRule<T>> extraRules)
cloneAddSolve in interface AnalyzeResult<T>public List<FieldRule<T>> getOriginalRules()
getOriginalRules in interface AnalyzeResult<T>public double getProbabilityOf(List<FieldRule<T>> extraRules)
getProbabilityOf in interface AnalyzeResult<T>public List<Solution<T>> getSolutions()
getSolutions in interface AnalyzeResult<T>public List<FieldGroup<T>> getGroups()
getGroups in interface AnalyzeResult<T>public List<T> getFields()
getFields in interface AnalyzeResult<T>public List<T> getSolution(double solution)
getSolution in interface AnalyzeResult<T>public Iterable<Solution<T>> getSolutionIteration()
getSolutionIteration in interface AnalyzeResult<T>public DetailedResults<T> analyzeDetailed(NeighborFind<T> neighborStrategy)
analyzeDetailed in interface AnalyzeResult<T>Copyright © 2014. All rights reserved.