org.graphstream.boids.forces.ntree
Class BoidParticle

java.lang.Object
  extended by org.miv.pherd.Particle
      extended by org.graphstream.boids.forces.ntree.BoidParticle

public class BoidParticle
extends org.miv.pherd.Particle

Internal representation of the boid position, and direction in the forces system.

Author:
Guilhelm Savin, Antoine Dutot

Constructor Summary
BoidParticle(BoidGraph ctx, Boid b)
          New particle.
 
Method Summary
 Boid getBoid()
           
 org.miv.pherd.geom.Point3 getNextPosition()
           
 void inserted()
           
 void move(int time)
           
 void removed()
           
 void setPosition(double x, double y, double z)
           
 
Methods inherited from class org.miv.pherd.Particle
closeTo, closeTo, getAttribute, getAttributeKeyIterator, getCell, getId, getPosition, getWeight, nextStep, removeAttribute, setAttribute, setCell, setWeight, suicide
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoidParticle

public BoidParticle(BoidGraph ctx,
                    Boid b)
New particle.

Parameters:
ctx - The set of global parameters.
Method Detail

move

public void move(int time)
Specified by:
move in class org.miv.pherd.Particle

inserted

public void inserted()
Specified by:
inserted in class org.miv.pherd.Particle

removed

public void removed()
Specified by:
removed in class org.miv.pherd.Particle

getBoid

public Boid getBoid()

setPosition

public void setPosition(double x,
                        double y,
                        double z)

getNextPosition

public org.miv.pherd.geom.Point3 getNextPosition()


Copyright © 2013. All Rights Reserved.