|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.graphstream.boids.forces.greedy.GreedyForcesFactory
public class GreedyForcesFactory
| 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 |
|---|
public GreedyForcesFactory(BoidGraph ctx)
| Method Detail |
|---|
public void init()
BoidForcesFactoryBoidGraph when forces factory is
set. It allows the forces factory to execute some code before it starts.
init in interface BoidForcesFactorypublic BoidForces createNewForces(Boid b)
BoidForcesFactory
createNewForces in interface BoidForcesFactoryb - the boid
public void step()
BoidForcesFactory
step in interface BoidForcesFactory
public void resize(org.miv.pherd.geom.Point3 low,
org.miv.pherd.geom.Point3 high)
BoidForcesFactory
resize in interface BoidForcesFactorylow - the new lowest point.high - the new highest point.public void end()
BoidForcesFactory
end in interface BoidForcesFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||