|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcomponent.RFIDReader
public class RFIDReader
[CSE461] Implementation of the RFID Reader, which controls the collision resolution procedure.
Constructor Summary | |
---|---|
RFIDReader(RFIDChannel chan)
|
Method Summary | |
---|---|
java.util.HashSet<BitMemory> |
getInventory()
Retrieves the set of EPCs that the reader thinks it has discovered so far. |
void |
inventory()
[CSE461] Main loop of the simulation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RFIDReader(RFIDChannel chan)
Method Detail |
---|
public void inventory() throws SimDoneException
The default implementation first selects all the tags. It then sends a query frame, hoping that exactly one tag will select slot 0 and reply with an RN16 frame. If that doesn't happen, the reader sends another query. If it does happen, the reader tries to read the responding tag's EPC by engaging in the ACK/ECP frame exchange that causes the tag to provide its EPC (assuming no frames are corrupted).
SimDoneException
public java.util.HashSet<BitMemory> getInventory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |