Difference between revisions of "READERNAME ReaderSharedResources.java"

From RifidiWiki

Jump to: navigation, search
(New page: The SharedResources act as common repository for various objects used in various places in the code. Each reader should have a shared resources and it should extend AbstractReaderSharedRe...)
 
m
Line 15: Line 15:
  
 
The first thing that the constructor should do is make a call to its super class:
 
The first thing that the constructor should do is make a call to its super class:
</pre>
+
<pre>
 
super(radio, tagMemory, readerPowerSignal, readerName, geh digester, numberOfAntennas);
 
super(radio, tagMemory, readerPowerSignal, readerName, geh digester, numberOfAntennas);
 
</pre>
 
</pre>
  
 
Then it should set the rest of the variables that are required by the reader to be in the shared resources.  For more information see the sharedResources in one of the other readers.
 
Then it should set the rest of the variables that are required by the reader to be in the shared resources.  For more information see the sharedResources in one of the other readers.

Revision as of 21:39, 11 February 2008

The SharedResources act as common repository for various objects used in various places in the code. Each reader should have a shared resources and it should extend AbstractReaderSharedResources.

All of the methods in the shared resources are just getters and setters for the components that are held in it. The only method that this page will cover is the constructor.

Constructor

The constructor for the shared resources should be called in the reader module. The constructor for the shared resources must take in the following things:

  1. GenericRadio radio
  2. TagMemory tagMemory
  3. ControlSignal<Boolean> readerPowerSignal
  4. String readerName
  5. GenericExceptionHandler geh
  6. CommandDigester digester
  7. int numberOfAntennas

The first thing that the constructor should do is make a call to its super class:

		super(radio, tagMemory, readerPowerSignal, readerName, geh digester, numberOfAntennas);

Then it should set the rest of the variables that are required by the reader to be in the shared resources. For more information see the sharedResources in one of the other readers.

Personal tools