|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.field.Spatial
jist.swans.field.Spatial.LinearList
public static class Spatial.LinearList
Linear-lookup (no binning).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jist.swans.field.Spatial |
---|
Spatial.Grid, Spatial.HierGrid, Spatial.LinearList, Spatial.SpatialTransmitVisitor, Spatial.SpatialVisitor, Spatial.TiledWraparound |
Field Summary | |
---|---|
private static boolean |
CHECK_CYCLE
whether to check for cycles. |
private Field.RadioData |
radioList
list of radios in bin. |
Fields inherited from class jist.swans.field.Spatial |
---|
bl, br, size, tl, tr |
Constructor Summary | |
---|---|
Spatial.LinearList(Location tr)
Create a new linear-lookup bin. |
|
Spatial.LinearList(Location bl,
Location tr)
Create a new linear-lookup bin. |
|
Spatial.LinearList(Location bl,
Location br,
Location tl,
Location tr)
Create a new linear-lookup bin. |
Method Summary | |
---|---|
void |
add(Field.RadioData data)
Add a radio to bin. |
void |
del(Field.RadioData data)
Delete a radio from bin. |
private boolean |
hasCycle()
Determine whether bin radio list contains a cycle. |
Field.RadioData |
move(Field.RadioData rd,
Location l2)
Update a radio location. |
int |
visit(Spatial.SpatialVisitor visitor)
Visit radios in bin. |
int |
visitTransmit(Spatial.SpatialTransmitVisitor visitor,
RadioInfo srcInfo,
Location srcLoc,
Message msg,
java.lang.Long durationObj,
double limit)
Visit radios in bin with transmission visitor. |
Methods inherited from class jist.swans.field.Spatial |
---|
area, getBottomLeft, getNearest, getSize, getTopRight, moveInside |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final boolean CHECK_CYCLE
private Field.RadioData radioList
Constructor Detail |
---|
public Spatial.LinearList(Location tr)
tr
- top-right corner locationpublic Spatial.LinearList(Location bl, Location tr)
bl
- bottom-left corner locationtr
- top-right corner locationpublic Spatial.LinearList(Location bl, Location br, Location tl, Location tr)
bl
- bottom-left corner locationbr
- bottom-right corner locationtl
- top-left corner locationtr
- top-right corner locationMethod Detail |
---|
private boolean hasCycle()
public void add(Field.RadioData data)
add
in class Spatial
data
- radio information (location inside bin limits)public void del(Field.RadioData data)
del
in class Spatial
data
- radio information (location inside bin limits)public Field.RadioData move(Field.RadioData rd, Location l2)
move
in class Spatial
rd
- radio informationl2
- destination of move
public int visitTransmit(Spatial.SpatialTransmitVisitor visitor, RadioInfo srcInfo, Location srcLoc, Message msg, java.lang.Long durationObj, double limit)
visitTransmit
in class Spatial
visitor
- transmission visitor objectsrcInfo
- transmission source radiosrcLoc
- transmission source locationmsg
- message to transmitdurationObj
- transmission durationlimit
- propagation limit
public int visit(Spatial.SpatialVisitor visitor)
visit
in class Spatial
visitor
- visitor object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |