com.thingmagic
Class Ata.TagData

java.lang.Object
  extended by com.thingmagic.TagData
      extended by com.thingmagic.Ata.TagData
All Implemented Interfaces:
TagFilter
Enclosing class:
Ata

public static class Ata.TagData
extends TagData

This class extends TagData to represent the details of an ATA RFID tag.


Constructor Summary
Ata.TagData(byte[] bEpc)
          Construct an ATA tag data from a byte array.
Ata.TagData(byte[] bEPC, byte[] newPC)
           
Ata.TagData(byte[] bEPC, byte[] crc, byte[] newPC)
          Construct an ATA tag data from a byte array.
Ata.TagData(java.lang.String sEpc)
          Construct an ATA tag data from a hexadecimal string.
Ata.TagData(java.lang.String sEPC, java.lang.String sCRC)
          Construct an ATA tag data from a hexadecimal string.
 
Method Summary
 TagProtocol getProtocol()
          Returns the protocol of this tag.
 java.lang.String toString()
           
 
Methods inherited from class com.thingmagic.TagData
crcBytes, epcBytes, epcString, equals, hashCode, matches
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ata.TagData

public Ata.TagData(java.lang.String sEpc)
Construct an ATA tag data from a hexadecimal string.

Parameters:
sEpc - Hex string.

Ata.TagData

public Ata.TagData(byte[] bEpc)
Construct an ATA tag data from a byte array.

Parameters:
bEpc - Bytes of EPC.

Ata.TagData

public Ata.TagData(byte[] bEPC,
                   byte[] newPC)

Ata.TagData

public Ata.TagData(byte[] bEPC,
                   byte[] crc,
                   byte[] newPC)
Construct an ATA tag data from a byte array.

Parameters:
bEPC - EPC bytes. Must be 8 bytes
crc - CRC bytes

Ata.TagData

public Ata.TagData(java.lang.String sEPC,
                   java.lang.String sCRC)
Construct an ATA tag data from a hexadecimal string.

Parameters:
sEPC - Hex string. Must be 8 bytes (16 hex digits)
sCRC - Hex string. Must be 2 bytes (4 hex digits)
Method Detail

getProtocol

public TagProtocol getProtocol()
Description copied from class: TagData
Returns the protocol of this tag.

Overrides:
getProtocol in class TagData

toString

public java.lang.String toString()
Overrides:
toString in class TagData