|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.miv.pherd.ParticleBoxRunner
@Deprecated public class ParticleBoxRunner
Allows to put a ParticleBox inside a thread and to receive and send events safely.
| Nested Class Summary | |
|---|---|
static class |
ParticleBoxRunner.InputProtocol
Deprecated. Messages understood by this runner. |
static class |
ParticleBoxRunner.OutputProtocol
Deprecated. Messages output by this object. |
static class |
ParticleBoxRunner.ParticleBoxListenerAdaptater
Deprecated. 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 org.miv.mbox.MBoxStandalone |
inbox
Deprecated. The input message box. |
protected boolean |
loop
Deprecated. This thread runs while this attribute is true. |
protected ParticleBox |
pbox
Deprecated. The particles and their environment. |
protected ParticleFactory |
pfactory
Deprecated. How to create particles?. |
protected int |
sleepMs
Deprecated. Time to wait between each particle box step in milliseconds. |
| Constructor Summary | |
|---|---|
ParticleBoxRunner(int pmax,
CellSpace space,
CellData rootData,
ParticleFactory pfactory)
Deprecated. |
|
| Method Summary | |
|---|---|
org.miv.mbox.MBox |
getInbox()
Deprecated. The input message box of this runner. |
ParticleBox |
getParticleBox()
Deprecated. The contained particle box. |
void |
processMessage(String from,
Object[] data)
Deprecated. |
void |
run()
Deprecated. Run the step() method in a loop. |
void |
setPriority(int ms)
Deprecated. Set the time to sleep between each step in milliseconds. |
protected void |
sleep(int ms)
Deprecated. |
void |
start()
Deprecated. Start a new thread that run this runner. |
void |
step()
Deprecated. Do one step of the iterative particle algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ParticleBox pbox
protected org.miv.mbox.MBoxStandalone inbox
protected int sleepMs
protected boolean loop
protected ParticleFactory pfactory
| Constructor Detail |
|---|
public ParticleBoxRunner(int pmax,
CellSpace space,
CellData rootData,
ParticleFactory pfactory)
| Method Detail |
|---|
public org.miv.mbox.MBox getInbox()
public ParticleBox getParticleBox()
public void setPriority(int ms)
public void processMessage(String from,
Object[] data)
processMessage in interface org.miv.mbox.MBoxListenerpublic void start()
public void run()
step() method in a loop.
run in interface Runnablepublic void step()
protected void sleep(int ms)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||