|
|||||||||
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.TiledWraparound
public static class Spatial.TiledWraparound
Tile wraparound spatial implementation. This object transmits a signal in nine locations (3x3), each separated by the size of the nested tile.
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 Location[] |
offsets
transmission offsets corresponding to top-left of each tile. |
private Spatial |
tile
nested spatial data structure. |
Fields inherited from class jist.swans.field.Spatial |
---|
bl, br, size, tl, tr |
Constructor Summary | |
---|---|
Spatial.TiledWraparound(Spatial tile)
Initialize a tiled wraparound spatial data structure. |
Method Summary | |
---|---|
void |
add(Field.RadioData radioData)
Add a radio to bin. |
void |
del(Field.RadioData radioData)
Delete a radio from bin. |
Field.RadioData |
move(Field.RadioData radioData,
Location newLoc)
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 final Spatial tile
private final Location[] offsets
Constructor Detail |
---|
public Spatial.TiledWraparound(Spatial tile)
tile
- nested spatial data structureMethod Detail |
---|
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
public void add(Field.RadioData radioData)
add
in class Spatial
radioData
- radio information (location inside bin limits)public void del(Field.RadioData radioData)
del
in class Spatial
radioData
- radio information (location inside bin limits)public Field.RadioData move(Field.RadioData radioData, Location newLoc)
move
in class Spatial
radioData
- radio informationnewLoc
- destination of move
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |