public class Individual
extends java.lang.Object
Constructor and Description |
---|
Individual(double x,
double y,
int species,
int diameter,
float alpha) |
Modifier and Type | Method and Description |
---|---|
float |
getAlpha()
Returns the alpha value of the individual.
|
int |
getDiameter()
Returns the diameter of the individual.
|
int |
getSpecies()
Returns the species number of the individual.
|
double |
getX()
Returns the x-coordinate of the individual.
|
double |
getY()
Returns the y-coordinate of the individual.
|
void |
setAlpha(float alpha)
Sets the alpha value of the individual.
|
void |
setDiameter(int diamter)
Sets the diameter of the individual.
|
void |
setSpecies(int species)
Sets the species number of the individual.
|
void |
setX(double x)
Sets the x-coordinate of the individual.
|
void |
setY(double y)
Sets the y-coordinate of the individual.
|
public Individual(double x, double y, int species, int diameter, float alpha)
public float getAlpha()
public void setAlpha(float alpha)
alpha
- a float value.public int getDiameter()
public void setDiameter(int diamter)
diamter
- an integer value.public int getSpecies()
public void setSpecies(int species)
species
- an integer value.public double getX()
public void setX(double x)
x
- the x-coordinate as an double value.public double getY()
public void setY(double y)
y
- the y-coordinate as an double value.