|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.mebigfatguy.polycasso.Improver
public class Improver
a class that applies various improvement attempts to a polygon, attempts to prioritize which algorithms to pick based on what has worked in the past, as well as priorities which polygons have had success being transformed.
| Constructor Summary | |
|---|---|
Improver(Settings confSettings,
GenerationHandler genHandler,
java.awt.Dimension size)
create an improver using a specified image size |
|
| Method Summary | |
|---|---|
java.util.List<PolygonData> |
getData()
get the list of polygons usually after attempted to be improved |
ImprovementType |
improveRandomly()
attempts to improve on one polygon randomly by adjusting it according to a randomly selected improvement type |
void |
typeWasSuccessful(ImprovementType type,
boolean successful)
updates the stats for types that successfully improved the image |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Improver(Settings confSettings,
GenerationHandler genHandler,
java.awt.Dimension size)
confSettings - the settings to be usedgenHandler - the generation handlersize - the size of the image| Method Detail |
|---|
public java.util.List<PolygonData> getData()
public void typeWasSuccessful(ImprovementType type,
boolean successful)
type - the improvement type that was successfulsuccessful - whether the improvement was successfulpublic ImprovementType improveRandomly()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||