org.graphstream.boids.forces.greedy
Class GreedyForcesFactory

java.lang.Object
  extended by org.graphstream.boids.forces.greedy.GreedyForcesFactory
All Implemented Interfaces:
BoidForcesFactory

public class GreedyForcesFactory
extends Object
implements BoidForcesFactory


Constructor Summary
GreedyForcesFactory(BoidGraph ctx)
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreedyForcesFactory

public GreedyForcesFactory(BoidGraph ctx)
Method Detail

init

public void init()
Description copied from interface: BoidForcesFactory
Called by BoidGraph when forces factory is set. It allows the forces factory to execute some code before it starts.

Specified by:
init in interface BoidForcesFactory

createNewForces

public BoidForces createNewForces(Boid b)
Description copied from interface: BoidForcesFactory
Create a new forces object for a boid.

Specified by:
createNewForces in interface BoidForcesFactory
Parameters:
b - the boid
Returns:
a new forces object associate with the boid

step

public void step()
Description copied from interface: BoidForcesFactory
Compute forces for all boids.

Specified by:
step in interface BoidForcesFactory

resize

public void resize(org.miv.pherd.geom.Point3 low,
                   org.miv.pherd.geom.Point3 high)
Description copied from interface: BoidForcesFactory
Resize the space.

Specified by:
resize in interface BoidForcesFactory
Parameters:
low - the new lowest point.
high - the new highest point.

end

public void end()
Description copied from interface: BoidForcesFactory
Terminate all operations.

Specified by:
end in interface BoidForcesFactory


Copyright © 2013. All Rights Reserved.