Class RfidBankFragment
java.lang.Object
com.tccc.kos.ext.freestyle.hardware.rfid.RfidBankFragment
Represents a fragment of bank data from an rfid tag.
- Version:
- 2023-09-14
-
Constructor Summary
ConstructorsConstructorDescriptionRfidBankFragment
(int startWord, int numWords, short[] data) Create a bank fragment from a segment of the specified data.RfidBankFragment
(int startWord, short[] data) Create a bank fragment from the data. -
Method Summary
-
Constructor Details
-
RfidBankFragment
public RfidBankFragment(int startWord, short[] data) Create a bank fragment from the data. This assumes that data is just the fragment that starts at startWord and that numWords is based on the length of data.- Parameters:
startWord
- the starting offset of the datadata
- the data to use for comparison
-
RfidBankFragment
public RfidBankFragment(int startWord, int numWords, short[] data) Create a bank fragment from a segment of the specified data. This will extract the subset of the data. This assumes that all bank data is provided so that startWord and numWords is relative to the entire bank of data.- Parameters:
startWord
- the starting offset of the datanumWords
- the number of wordsdata
- the full bank data
-
-
Method Details
-
matches
public boolean matches(short[] bankData) Return true if the bank matches the specified full bank data.- Parameters:
bankData
- the entire set of bank data to compare to- Returns:
- true if the bank matches
-
getStartWord
public int getStartWord() -
getNumWords
public int getNumWords() -
getData
public short[] getData()
-