org.graphstream.boids
Interface BoidForcesFactory

All Known Implementing Classes:
GreedyForcesFactory, NTreeForcesFactory

public interface BoidForcesFactory

Object used to create and compute forces of boids.


Method Summary
 BoidForces createNewForces(Boid b)
          Create a new forces object for a boid.
 void end()
          Terminate all operations.
 void init()
          Called by BoidGraph when forces factory is set.
 void resize(org.miv.pherd.geom.Point3 low, org.miv.pherd.geom.Point3 high)
          Resize the space.
 void step()
          Compute forces for all boids.
 

Method Detail

init

void init()
Called by BoidGraph when forces factory is set. It allows the forces factory to execute some code before it starts.


createNewForces

BoidForces createNewForces(Boid b)
Create a new forces object for a boid.

Parameters:
b - the boid
Returns:
a new forces object associate with the boid

step

void step()
Compute forces for all boids.


resize

void resize(org.miv.pherd.geom.Point3 low,
            org.miv.pherd.geom.Point3 high)
Resize the space.

Parameters:
low - the new lowest point.
high - the new highest point.

end

void end()
Terminate all operations.



Copyright © 2013. All Rights Reserved.