|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mebigfatguy.polycasso.Settings
public class Settings
a simple java bean holding settings that are used to control how Polycasso runs
Constructor Summary | |
---|---|
Settings()
constructs a settings object with rational defaults |
Method Summary | |
---|---|
java.lang.Object |
clone()
clones the Settings object |
double |
getCoolingRate()
gets how quickly the error cutoff decrements each generation |
int |
getEliteSize()
gets the elite size, the number of members that are copied from one generation to another |
int |
getGenerationSize()
gets the generation size |
int |
getMaxColorChange()
gets the maximum color component change |
java.awt.Dimension |
getMaxImageSize()
gets the maximum image size |
int |
getMaxPoints()
gets the maximum number of points per polygon |
int |
getMaxPolygons()
gets the maximum polygons that can be used to image the picture |
int |
getMaxPtMovement()
gets the largest movement that any polygon point can make in one improvement attempt |
double |
getStartTemperature()
gets the error below wich polygon samples can be included in a generation, even if not the best |
boolean |
isUseAnnealing()
gets whether to use simulating annealing |
void |
setCoolingRate(double coolRate)
sets how quickly the error cutoff decrements each generation |
void |
setEliteSize(int eliteSz)
sets the elite size, the number of members that are copied from one generation to another |
void |
setGenerationSize(int generationSz)
sets the generation size |
void |
setMaxColorChange(int maxColorChg)
sets the maximum color component change |
void |
setMaxImageSize(java.awt.Dimension imageSize)
sets the maximum image size |
void |
setMaxPoints(int maxPts)
sets the maximum number of points per polygon |
void |
setMaxPolygons(int maxPolys)
sets the maximum polygons that can be used to image the picture |
void |
setMaxPtMovement(int maxPointMovement)
sets the largest movement that any polygon point can make in one improvement attempt |
void |
setStartTemperature(double startTemp)
sets the error below which polygon samples can be included in a generation, even if not the best |
void |
setUseAnnealing(boolean annealing)
sets whether to use simulated annealing |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Settings()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public void setGenerationSize(int generationSz)
generationSz
- the size of each generationpublic int getGenerationSize()
public void setEliteSize(int eliteSz)
eliteSz
- the elite sizepublic int getEliteSize()
public void setUseAnnealing(boolean annealing)
annealing
- whether to use annealingpublic boolean isUseAnnealing()
public void setStartTemperature(double startTemp)
startTemp
- the pixel error cutoffpublic double getStartTemperature()
public void setCoolingRate(double coolRate)
coolRate
- the cutoff decrementor valuepublic double getCoolingRate()
public void setMaxImageSize(java.awt.Dimension imageSize)
imageSize
- the image sizepublic java.awt.Dimension getMaxImageSize()
public void setMaxPolygons(int maxPolys)
maxPolys
- the maximum number of polygonspublic int getMaxPolygons()
public void setMaxPoints(int maxPts)
maxPts
- the maximum polygon pointspublic int getMaxPoints()
public void setMaxPtMovement(int maxPointMovement)
maxPointMovement
- the maximum allowed movementpublic int getMaxPtMovement()
public void setMaxColorChange(int maxColorChg)
maxColorChg
- the max color changepublic int getMaxColorChange()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |