public class RoundPerimeter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
CIRCLE |
private java.util.List<AbstractGrowthAtom> |
currentPerimeter
Atoms vector belonging to the perimeter.
|
private java.util.TreeMap<java.lang.Integer,AbstractGrowthAtom> |
currentPerimeterTreeMap |
private int |
currentRadius
Current size of the radius (in units).
|
private int |
neededSteps |
private AbstractPerimeterStatistics |
perimeterStatistics |
static short |
SQUARE |
private short |
type |
Constructor and Description |
---|
RoundPerimeter(java.lang.String statisticData) |
RoundPerimeter(java.lang.String statisticData,
short type) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(AbstractGrowthAtom atom) |
java.util.List<AbstractGrowthAtom> |
getCurrentPerimeter() |
int |
getCurrentRadius() |
int |
getNeededSteps() |
AbstractGrowthAtom |
getPerimeterReentrance(AbstractGrowthAtom originAtom) |
AbstractGrowthAtom |
getRandomPerimeterAtom() |
short |
getType() |
int |
goToNextRadius()
Enlarge the perimeter; i.e. go to the next radius in the perimeter.
|
(package private) int |
searchPerimeterOffsetReentrance() |
void |
setCurrentPerimeter(java.util.List<AbstractGrowthAtom> perimeter) |
void |
setMaxPerimeter(float sizeX,
float sizeY) |
void |
setMinRadius() |
public static final short CIRCLE
public static final short SQUARE
private int currentRadius
private java.util.List<AbstractGrowthAtom> currentPerimeter
private java.util.TreeMap<java.lang.Integer,AbstractGrowthAtom> currentPerimeterTreeMap
private AbstractPerimeterStatistics perimeterStatistics
private short type
private int neededSteps
public RoundPerimeter(java.lang.String statisticData)
public RoundPerimeter(java.lang.String statisticData, short type)
public int getNeededSteps()
public short getType()
public int getCurrentRadius()
public void setMinRadius()
public java.util.List<AbstractGrowthAtom> getCurrentPerimeter()
public void setCurrentPerimeter(java.util.List<AbstractGrowthAtom> perimeter)
public void setMaxPerimeter(float sizeX, float sizeY)
public boolean contains(AbstractGrowthAtom atom)
public int goToNextRadius()
public AbstractGrowthAtom getPerimeterReentrance(AbstractGrowthAtom originAtom)
public AbstractGrowthAtom getRandomPerimeterAtom()
int searchPerimeterOffsetReentrance()