|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.graphstream.boids.forces.ntree.NTreeForcesFactory
public class NTreeForcesFactory
| Constructor Summary | |
|---|---|
NTreeForcesFactory(BoidGraph ctx)
|
|
| Method Summary | |
|---|---|
BoidForces |
createNewForces(Boid b)
Create a new forces object for a boid. |
void |
edgeAdded(String sourceId,
long timeId,
String edgeId,
String fromNodeId,
String toNodeId,
boolean directed)
|
void |
edgeRemoved(String sourceId,
long timeId,
String edgeId)
|
void |
end()
Terminate all operations. |
void |
graphCleared(String sourceId,
long timeId)
|
void |
init()
Called by BoidGraph when forces factory is
set. |
void |
nodeAdded(String sourceId,
long timeId,
String nodeId)
|
void |
nodeRemoved(String sourceId,
long timeId,
String nodeId)
|
void |
resize(org.miv.pherd.geom.Point3 low,
org.miv.pherd.geom.Point3 high)
Resize the space. |
void |
step()
Compute forces for all boids. |
void |
stepBegins(String sourceId,
long timeId,
double step)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NTreeForcesFactory(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
public void edgeAdded(String sourceId,
long timeId,
String edgeId,
String fromNodeId,
String toNodeId,
boolean directed)
edgeAdded in interface org.graphstream.stream.ElementSink
public void edgeRemoved(String sourceId,
long timeId,
String edgeId)
edgeRemoved in interface org.graphstream.stream.ElementSink
public void graphCleared(String sourceId,
long timeId)
graphCleared in interface org.graphstream.stream.ElementSink
public void nodeAdded(String sourceId,
long timeId,
String nodeId)
nodeAdded in interface org.graphstream.stream.ElementSink
public void nodeRemoved(String sourceId,
long timeId,
String nodeId)
nodeRemoved in interface org.graphstream.stream.ElementSink
public void stepBegins(String sourceId,
long timeId,
double step)
stepBegins in interface org.graphstream.stream.ElementSink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||