Class FreestyleCartridgeScanner
java.lang.Object
com.tccc.kos.ext.freestyle.service.rfid.RfidScanner<FreestyleRfidTag>
com.tccc.kos.ext.freestyle.service.cartridge.FreestyleCartridgeScanner
- All Implemented Interfaces:
RfidTagListener<FreestyleRfidTag>
public class FreestyleCartridgeScanner
extends RfidScanner<FreestyleRfidTag>
implements RfidTagListener<FreestyleRfidTag>
Rfid scanner for Freestyle cartridges.
- Version:
- 2023-10-15
-
Constructor Summary
ConstructorsConstructorDescriptionFreestyleCartridgeScanner
(RfidAntenna antenna) Create a scanner for the specified holders at the specified positions on the antenna for the purpose of scanning Freestyle cartridge tags. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHolder
(com.tccc.kos.ext.dispense.Holder holder, int pos) Add an antenna position for the specified holder.void
Perform an inventory scan.void
tagAdded
(RfidPositionInfo<FreestyleRfidTag> info, String scanType, FreestyleRfidTag tag, int scanCount) Called when a new tag is first seen.void
tagRemoved
(RfidPositionInfo<FreestyleRfidTag> info, String scanType, FreestyleRfidTag tag, int scanCount) Called when a tag is no longer seen.Methods inherited from class com.tccc.kos.ext.freestyle.service.rfid.RfidScanner
addListener, addPosition, getAntenna, getScanCount, getVerifyReadCount, removeListener, setScanCount, setVerifyReadCount
-
Constructor Details
-
FreestyleCartridgeScanner
Create a scanner for the specified holders at the specified positions on the antenna for the purpose of scanning Freestyle cartridge tags.- Parameters:
antenna
- the antenna to scan
-
-
Method Details
-
addHolder
public void addHolder(com.tccc.kos.ext.dispense.Holder holder, int pos) Add an antenna position for the specified holder.- Parameters:
holder
- the holder associated with the antennapos
- the antenna position corresponding to the holder
-
inventoryScan
public void inventoryScan()Perform an inventory scan. This will perform several scans and the tags will have relaxed rules during insertion. This should be called when the rfid hardware links to determine what cartridges are already installed. -
tagAdded
public void tagAdded(RfidPositionInfo<FreestyleRfidTag> info, String scanType, FreestyleRfidTag tag, int scanCount) Description copied from interface:RfidTagListener
Called when a new tag is first seen.- Specified by:
tagAdded
in interfaceRfidTagListener<FreestyleRfidTag>
- Parameters:
info
- information about the antenna positionscanType
- the type of scan being performedtag
- the tag that was addedscanCount
- scan count number from the scanner
-
tagRemoved
public void tagRemoved(RfidPositionInfo<FreestyleRfidTag> info, String scanType, FreestyleRfidTag tag, int scanCount) Description copied from interface:RfidTagListener
Called when a tag is no longer seen.- Specified by:
tagRemoved
in interfaceRfidTagListener<FreestyleRfidTag>
- Parameters:
info
- information about the antenna positionscanType
- the type of scan being performedtag
- the tag that was removedscanCount
- scan count number from the scanner
-