|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.miv.pherd.ParticleBoxRunner.ParticleBoxListenerAdaptater
public static class ParticleBoxRunner.ParticleBoxListenerAdaptater
This class can listen at the events sent by a particle box and send them to an arbitrary (and eventually remote) message box.
| Field Summary | |
|---|---|
protected String |
from
Message sender name. |
protected org.miv.mbox.MBox |
outbox
Where to send messages ?. |
| Constructor Summary | |
|---|---|
ParticleBoxRunner.ParticleBoxListenerAdaptater(org.miv.mbox.MBox outbox,
String from)
New ParticleBox adapter that convert events from the particle box to messages sent into a (eventually remote) message box. |
|
| Method Summary | |
|---|---|
void |
cellAdded(Object id,
Object parentId,
Anchor lo,
Anchor hi,
int depth,
int index)
A new cell appeared. |
void |
cellData(Object id,
String message,
Object data)
The cell data changed. |
void |
cellRemoved(Object id)
A cell disappeared. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.miv.mbox.MBox outbox
protected String from
| Constructor Detail |
|---|
public ParticleBoxRunner.ParticleBoxListenerAdaptater(org.miv.mbox.MBox outbox,
String from)
outbox - Where to send particle messages.from - The name of the sender this object will use to send messages.| Method Detail |
|---|
public void particleAdded(Object id,
double x,
double y,
double z)
ParticleBoxListener
particleAdded in interface ParticleBoxListenerid - The particle unique identifier.x - The particle abscissa.y - The particle ordinate.z - The particle depth.
public void particleMoved(Object id,
double x,
double y,
double z)
ParticleBoxListener
particleMoved in interface ParticleBoxListenerid - The particle unique identifier.x - The new abscissa.y - The new ordinate.z - The new depth.public void particleRemoved(Object id)
ParticleBoxListener
particleRemoved in interface ParticleBoxListenerid - The particle unique identifier.
public void particleAttributeChanged(Object id,
String attribute,
Object newValue,
boolean removed)
ParticleBoxListener
particleAttributeChanged in interface ParticleBoxListenerid - The particle identifier.attribute - The attribute name.newValue - The attribute new value (null if removed).removed - If true the attribute is being removed.public void stepFinished(int time)
ParticleBoxListener
stepFinished in interface ParticleBoxListenertime - The finished step time.
public void cellAdded(Object id,
Object parentId,
Anchor lo,
Anchor hi,
int depth,
int index)
NTreeListener
cellAdded in interface NTreeListenerid - The cell identifier.parentId - The parent cell identifier.lo - The cell space lowest point.hi - The cell space highest point.index - The cell index in its parent cell.public void cellRemoved(Object id)
NTreeListener
cellRemoved in interface NTreeListenerid - The cell identifier.
public void cellData(Object id,
String message,
Object data)
NTreeListener
cellData in interface NTreeListenerid - The cell identifier.message - The message.data - The message data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||