|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcdx.Partition
public class Partition
This class evenly distributes lists of motions which may be collided to each element of the shared variable `parts', so that each DetectorHandler can retrieve the related list regarding to its ID.
| Constructor Summary | |
|---|---|
Partition(int n)
Constructor |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the shared `parts'. |
List |
getDetectorWork(int id)
Return an ID for a DetectorHandler. |
void |
recordMotionList(List motions)
Method to add a list of motions in parts[i]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Partition(int n)
n - the number of DetectorHandlers| Method Detail |
|---|
public void clear()
public void recordMotionList(List motions)
motions - a list of motions which may be collided in a voxelpublic List getDetectorWork(int id)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||