|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsim.RFIDSim
public class RFIDSim
An RFIDSim orchestrates the simulation.
Field Summary | |
---|---|
(package private) RFIDChannel |
channel
|
int |
falseNegatives
|
int |
falsePositives
|
(package private) RFIDReader |
reader
|
(package private) RFIDTag[] |
tag
|
int |
tagsFound
|
Constructor Summary | |
---|---|
RFIDSim(int nTags,
double BER,
double bw,
int simTime)
Constructs the reader |
Method Summary | |
---|---|
int[] |
inventory()
Causes reader to start its inventorying process. |
static void |
main(java.lang.String[] args)
This main runs the show. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
RFIDTag[] tag
RFIDReader reader
RFIDChannel channel
public int tagsFound
public int falsePositives
public int falseNegatives
Constructor Detail |
---|
public RFIDSim(int nTags, double BER, double bw, int simTime)
Method Detail |
---|
public int[] inventory()
Returns an array of counts of the number of frames of each type sent. (The types are defined by the FrameType enum in RFIDFrame.java.)
public static void main(java.lang.String[] args)
Command line args, in order:
java -cp . sim/RFIDSim 3000 20 .01 100000 1000
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |