T - The type of field to do analyze onpublic class AnalyzeFactory<T> extends Object
AnalyzeResults| Constructor and Description |
|---|
AnalyzeFactory()
Create a new, empty analyze factory
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(FieldRule<T> rule)
Add a new rule constraint that needs to be respected in all solutions
|
List<FieldGroup<T>> |
getGroups()
Get the field groups used in this analyze
|
List<FieldRule<T>> |
getRules()
Get the rules that has been added to this analyze
|
AnalyzeResult<T> |
solve()
Solve this analyze
|
void |
splitFieldRules()
Split the current field rules that has been added to this object
|
void |
splitFieldRules(List<FieldRule<T>> rules)
Separate fields into field groups.
|
public AnalyzeResult<T> solve()
AnalyzeResult object for the result of the analyze.public void splitFieldRules(List<FieldRule<T>> rules)
a + b + c = 2 and b + c + d = 1 becomes (a) + (b + c) = 2 and (b + c) + (d) = 1. This method is called automatically when calling solve()rules - List of rules to splitpublic void splitFieldRules()
public void addRule(FieldRule<T> rule)
rule - FieldRule to addpublic List<FieldGroup<T>> getGroups()
FieldGroupsCopyright © 2014. All rights reserved.