|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.imp.comm.OctTreeField
@ConfigurableType(value="Octree options") public class OctTreeField
This class determines which specks are in the range of a broadcast, using an octree to improve performance
| Field Summary | |
|---|---|
int |
maxDepth
The maximum depth of the tree |
float |
repopulationThreshold
The distance that each speck can travel before repopulating the tree becomes a good idea. |
int |
subDivisionThreshold
The maximum number of specks that a leaf node in the tree can contain |
| Method Summary | |
|---|---|
java.util.SortedSet<Speck> |
findRecipients(Speck sender,
MessageShell shell,
float time)
Finds the recipients of a broadcast |
void |
movementModelSet(MovementModel mm)
Notifies that a new MovementModel has been set |
void |
valueChanged(java.lang.String name)
Is called by the configurator when a variable is changed |
void |
wallStateChanged()
This method is called whenever something is changed with the walls. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@ConfigurableVariable(value="Movement Threshold")
@Description(value="The maximum distance a speck may move before the tree is repopulated")
@NumberRange(value={9.999999747378752E-5f,1.0f})
public float repopulationThreshold
@ConfigurableVariable(value="Subdivision threshold") @Description(value="The maximum number of specks that a node can hold before it is subdivided") @NumberRange(value=1.0f) public int subDivisionThreshold
@ConfigurableVariable(value="Maximum depth") @Description(value="The maximum depth of the tree") @NumberRange(value=1.0f) public int maxDepth
| Method Detail |
|---|
public java.util.SortedSet<Speck> findRecipients(Speck sender,
MessageShell shell,
float time)
sender - The sender of the broadcastshell - The limits of the broadcasttime - the time of the broadcast
public void movementModelSet(MovementModel mm)
MovementModelListener
movementModelSet in interface MovementModelListenermm - The new MovementModelpublic void wallStateChanged()
WallListener
wallStateChanged in interface WallListenerpublic void valueChanged(java.lang.String name)
ValueListener
valueChanged in interface ValueListenername - The name of the variable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||