|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.mebigfatguy.polycasso.GenerationHandler
public class GenerationHandler
class that maintains the set of polygon data for this generation of images
| Nested Class Summary | |
|---|---|
static class |
GenerationHandler.Member
class that holds a sample set of polygons and it's score |
| Constructor Summary | |
|---|---|
GenerationHandler(Settings confSettings,
java.awt.Dimension imageSize)
constructs a handler for managing successive generations of image samples |
|
| Method Summary | |
|---|---|
ImprovementResult |
addPolygonData(long score,
PolygonData[] polygonData)
add a sample polygon set to this generation with a given score |
GenerationHandler.Member |
getBestMember()
returns the best polygon set to draw the picture |
PolygonData[] |
getRandomPolygonData(boolean elite)
pick a random polygon sample either from the general pool or elite pool skew the results towards the elite |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenerationHandler(Settings confSettings,
java.awt.Dimension imageSize)
confSettings - settings to use for generation and elite sizeimageSize - the size of the target image| Method Detail |
|---|
public ImprovementResult addPolygonData(long score,
PolygonData[] polygonData)
score - the deviation from perfection this set calculatespolygonData - the polygons that draw the image
public PolygonData[] getRandomPolygonData(boolean elite)
elite - whether to pick from the elite pool or not
public GenerationHandler.Member getBestMember()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||