sim
Class RFIDSim

java.lang.Object
  extended by sim.RFIDSim

public class RFIDSim
extends java.lang.Object

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

tag

RFIDTag[] tag

reader

RFIDReader reader

channel

RFIDChannel channel

tagsFound

public int tagsFound

falsePositives

public int falsePositives

falseNegatives

public int falseNegatives
Constructor Detail

RFIDSim

public RFIDSim(int nTags,
               double BER,
               double bw,
               int simTime)
Constructs the reader

Method Detail

inventory

public int[] inventory()
Causes reader to start its inventorying process.

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.)


main

public static void main(java.lang.String[] args)
This main runs the show.

Command line args, in order:

A sample invocation might look like this:
java -cp . sim/RFIDSim 3000 20 .01 100000 1000