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 Details

    • FreestyleCartridgeScanner

      public FreestyleCartridgeScanner(RfidAntenna antenna)
      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 antenna
      pos - 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 interface RfidTagListener<FreestyleRfidTag>
      Parameters:
      info - information about the antenna position
      scanType - the type of scan being performed
      tag - the tag that was added
      scanCount - 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 interface RfidTagListener<FreestyleRfidTag>
      Parameters:
      info - information about the antenna position
      scanType - the type of scan being performed
      tag - the tag that was removed
      scanCount - scan count number from the scanner