ElementType - public class MobilePerceiver<ElementType extends QuadTreeElement<ElementType>> extends Perceiver<ElementType>
| Constructor and Description |
|---|
MobilePerceiver() |
MobilePerceiver(ElementType elem) |
MobilePerceiver(ElementType elem,
int radius) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Geometry g) |
ElementType |
getElement() |
int |
getPerceiverUpdateDistance() |
int |
getRadius() |
boolean |
overlaps(Geometry g)
Checks whether the perceiver radius overlaps the specified geometry.
|
void |
setElement(ElementType elem) |
void |
setPerceiverUpdateDistance(int perceiverUpdateDistance) |
void |
setRadius(int radius) |
boolean |
shouldUpdateBasedOnLoc(Point loc)
This virtual function returns true if the elements visible to a
perceiver should be updated if it moves to the loc supplied.
|
java.lang.String |
toString() |
addQuadTreeNode, getFilter, getQuadTreeNodes, processNewsAndFrees, registerCallback, removeQuadTreeNode, setFilter, shouldFreeElement, shouldNotifyNewElement, unregisterCallbackpublic MobilePerceiver()
public MobilePerceiver(ElementType elem)
public MobilePerceiver(ElementType elem, int radius)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean overlaps(Geometry g)
overlaps in class Perceiver<ElementType extends QuadTreeElement<ElementType>>public boolean contains(Geometry g)
contains in class Perceiver<ElementType extends QuadTreeElement<ElementType>>public boolean shouldUpdateBasedOnLoc(Point loc)
shouldUpdateBasedOnLoc in class Perceiver<ElementType extends QuadTreeElement<ElementType>>public ElementType getElement()
public void setElement(ElementType elem)
public int getRadius()
public void setRadius(int radius)
public int getPerceiverUpdateDistance()
public void setPerceiverUpdateDistance(int perceiverUpdateDistance)