Class Flock
java.lang.Object
org.episteme.natural.computing.ai.simulation.Flock
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe vector containing all the boids.intThe number of columns in the flocking world (this is equivalent to pixel width).intThe number of boids.intThe number of rows in the flocking world (this is equivalent to pixel height). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rows
public int rowsThe number of rows in the flocking world (this is equivalent to pixel height). -
columns
public int columnsThe number of columns in the flocking world (this is equivalent to pixel width). -
boids
The vector containing all the boids. -
numBoids
public int numBoidsThe number of boids.
-
-
Constructor Details
-
Flock
public Flock(int numBoids, int columns, int rows) Creates a new Flock object.- Parameters:
numBoids- number of boids.columns- width.rows- height.
-
-
Method Details
-
doStep
public void doStep()Perform a step.
-