Class FreestyleRfidTagFactory
java.lang.Object
com.tccc.kos.ext.freestyle.hardware.rfid.freestyle.FreestyleRfidTagFactory
- All Implemented Interfaces:
RfidTagFactory<FreestyleRfidTag>
- Direct Known Subclasses:
TIDVerifyFreestyleRFIDTagFactory
Factory to return FreestyleRFIDTag beans from the reader. Only reads locked
tags.
- Version:
- Nov-28-18
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTag(RfidAntenna antenna, int pos, short[] epcBank, short[] tidBank, short[] userBank, RfidReadDescriptor readDescriptor) Create a tag with the specified data.Return the read descriptors to use when reading this type of tag.intReturn the tag password to use when reading.short[]Return the tag types to look for when reading.intReturn the tag password to use when writing.
-
Constructor Details
-
FreestyleRfidTagFactory
public FreestyleRfidTagFactory()
-
-
Method Details
-
getTagTypes
public short[] getTagTypes()Description copied from interface:RfidTagFactoryReturn the tag types to look for when reading.- Specified by:
getTagTypesin interfaceRfidTagFactory<FreestyleRfidTag>- Returns:
- the TID manufacturer words to include in the read
-
getReadDescriptors
Description copied from interface:RfidTagFactoryReturn the read descriptors to use when reading this type of tag.- Specified by:
getReadDescriptorsin interfaceRfidTagFactory<FreestyleRfidTag>- Returns:
- the descriptors to use for reading
-
getReadPassword
public int getReadPassword()Description copied from interface:RfidTagFactoryReturn the tag password to use when reading.- Specified by:
getReadPasswordin interfaceRfidTagFactory<FreestyleRfidTag>- Returns:
- the tag password
-
getWritePassword
public int getWritePassword()Description copied from interface:RfidTagFactoryReturn the tag password to use when writing.- Specified by:
getWritePasswordin interfaceRfidTagFactory<FreestyleRfidTag>- Returns:
- the tag password
-
createTag
public FreestyleRfidTag createTag(RfidAntenna antenna, int pos, short[] epcBank, short[] tidBank, short[] userBank, RfidReadDescriptor readDescriptor) Description copied from interface:RfidTagFactoryCreate a tag with the specified data.- Specified by:
createTagin interfaceRfidTagFactory<FreestyleRfidTag>- Parameters:
antenna- the antenna the tag was read frompos- the position on the antennaepcBank- the epc data from the tagtidBank- the tid data from the taguserBank- the user data from the tagreadDescriptor- the descriptor used to read the tag
-