public class MirrorRegionDecorator extends RegionDecorator
Modifier and Type | Field and Description |
---|---|
MirrorRegion |
region
Which region this data structure is describing.
|
Constructor and Description |
---|
MirrorRegionDecorator(MirrorRegion region) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getRegionIdentifier()
Returns unique identifier of werapped
Region objects; |
java.util.List<Mirror> |
getSortedBeacons()
Returns sorted list of current beacons
|
int |
hashCode() |
boolean |
isPacketInThisRegion(Mirror packet)
Tells if given packet is in this region.
|
void |
processFoundPackets(java.util.Collection<Mirror> packetsFoundInScanCycle)
Processes beacons found in single scan cycle.
|
didJustExit, isInside, markAsSeen
public final MirrorRegion region
public MirrorRegionDecorator(MirrorRegion region)
public final void processFoundPackets(java.util.Collection<Mirror> packetsFoundInScanCycle)
packetsFoundInScanCycle
- Map of beacons along with their last seen time.public final boolean isPacketInThisRegion(Mirror packet)
packet
- packet to checkpublic final java.util.List<Mirror> getSortedBeacons()
public java.lang.String getRegionIdentifier()
RegionDecorator
Region
objects;getRegionIdentifier
in class RegionDecorator
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object