org.miv.pherd
Interface ParticleBoxListener

All Known Implementing Classes:
ParticleBoxListenerProxy, ParticleBoxRunner.ParticleBoxListenerAdaptater

public interface ParticleBoxListener

Listener for particle events.

Since:
2007
Author:
Antoine Dutot

Method Summary
 void particleAdded(Object id, double x, double y, double z)
          A new particle appeared at (x,y,z).
 void particleAttributeChanged(Object id, String attribute, Object newValue, boolean removed)
          One of the particle attributes changed value.
 void particleMoved(Object id, double x, double y, double z)
          A particle moved.
 void particleRemoved(Object id)
          A particle disappeared.
 void stepFinished(int time)
          All particles moved and a new step is about to begin.
 

Method Detail

particleAdded

void particleAdded(Object id,
                   double x,
                   double y,
                   double z)
A new particle appeared at (x,y,z).

Parameters:
id - The particle unique identifier.
x - The particle abscissa.
y - The particle ordinate.
z - The particle depth.

particleMoved

void particleMoved(Object id,
                   double x,
                   double y,
                   double z)
A particle moved.

Parameters:
id - The particle unique identifier.
x - The new abscissa.
y - The new ordinate.
z - The new depth.

particleAttributeChanged

void particleAttributeChanged(Object id,
                              String attribute,
                              Object newValue,
                              boolean removed)
One of the particle attributes changed value.

Parameters:
id - The particle identifier.
attribute - The attribute name.
newValue - The attribute new value (null if removed).
removed - If true the attribute is being removed.

particleRemoved

void particleRemoved(Object id)
A particle disappeared.

Parameters:
id - The particle unique identifier.

stepFinished

void stepFinished(int time)
All particles moved and a new step is about to begin.

Parameters:
time - The finished step time.


Copyright © 2011. All Rights Reserved.