com.caen.RFIDLibrary
Class CAENRFIDTag

java.lang.Object
  extended by com.caen.RFIDLibrary.CAENRFIDTag

public final class CAENRFIDTag
extends java.lang.Object

This class defines the CAEN RFID Tag.


Nested Class Summary
static class CAENRFIDTag.MemBanks
           
 
Constructor Summary
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint)
           
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint, java.util.Date timestamp)
           
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint, short rssi)
           
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint, short rssi, byte[] tTID)
           
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, byte[] tPC, java.util.Date time)
           
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint, short rssi, byte[] tTID, byte[] tXPC, java.util.Date time)
           
protected CAENRFIDTag(byte[] Id, CAENRFIDProtocol type, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint, short rssi, byte[] tTID, java.util.Date time)
           
  CAENRFIDTag(byte[] Id, short length, CAENRFIDLogicalSource Source)
          Creates a new instance of CAENRFIDTag
  CAENRFIDTag(byte[] Id, short length, CAENRFIDLogicalSource Source, java.lang.String ReadPoint)
          Creates a new instance of CAENRFIDTag
 
Method Summary
 java.lang.String GetAntenna()
          Get the Antenna That has detect the Tag
 byte[] GetId()
          Get the Tag's ID
 short GetLength()
          Get the Tag's length
 byte[] GetPC()
          Get the pc of this tag.
 java.lang.String GetReadPoint()
          Get the ReadPoint that has detected the tag
 short GetRSSI()
          Get the Tag's RSSI
 CAENRFIDLogicalSource GetSource()
          Get the Source that has detected the tag
 byte[] GetTID()
          Gets the TID field in this tag's memory
 java.util.Date GetTimeStamp()
          Get the TimeStamp of the Tag
 CAENRFIDProtocol GetType()
          Get the type of the protocol
 byte[] GetXPC()
          Get the XPC of this tag, if exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAENRFIDTag

public CAENRFIDTag(byte[] Id,
                   short length,
                   CAENRFIDLogicalSource Source)
            throws CAENRFIDException
Creates a new instance of CAENRFIDTag

Parameters:
Id - the Tag's ID
length - the Tag's length
Source - The CAENRFIDLogicalSource representing the Source that has detected the Tag
Throws:
CAENRFIDException - If the Reader raises an error.

CAENRFIDTag

public CAENRFIDTag(byte[] Id,
                   short length,
                   CAENRFIDLogicalSource Source,
                   java.lang.String ReadPoint)
            throws CAENRFIDException
Creates a new instance of CAENRFIDTag

Parameters:
Id - the Tag's ID
length - the Tag's length
Source - The CAENRFIDLogicalSource representing the Source that has detected the Tag
ReadPoint - The name of the ReadPoint in Source that has detected the Tag
Throws:
CAENRFIDException - If the Reader raises an error.

CAENRFIDTag

protected CAENRFIDTag(byte[] Id,
                      CAENRFIDProtocol type,
                      short length,
                      CAENRFIDLogicalSource Source,
                      java.lang.String ReadPoint)
               throws CAENRFIDException
Throws:
CAENRFIDException

CAENRFIDTag

protected CAENRFIDTag(byte[] Id,
                      CAENRFIDProtocol type,
                      short length,
                      CAENRFIDLogicalSource Source,
                      java.lang.String ReadPoint,
                      java.util.Date timestamp)
               throws CAENRFIDException
Throws:
CAENRFIDException

CAENRFIDTag

protected CAENRFIDTag(byte[] Id,
                      CAENRFIDProtocol type,
                      short length,
                      CAENRFIDLogicalSource Source,
                      java.lang.String ReadPoint,
                      short rssi)
               throws CAENRFIDException
Throws:
CAENRFIDException

CAENRFIDTag

protected CAENRFIDTag(byte[] Id,
                      CAENRFIDProtocol type,
                      short length,
                      CAENRFIDLogicalSource Source,
                      java.lang.String ReadPoint,
                      short rssi,
                      byte[] tTID)
               throws CAENRFIDException
Throws:
CAENRFIDException

CAENRFIDTag

protected CAENRFIDTag(byte[] Id,
                      CAENRFIDProtocol type,
                      short length,
                      CAENRFIDLogicalSource Source,
                      java.lang.String ReadPoint,
                      short rssi,
                      byte[] tTID,
                      java.util.Date time)
               throws CAENRFIDException
Throws:
CAENRFIDException

CAENRFIDTag

protected CAENRFIDTag(byte[] Id,
                      CAENRFIDProtocol type,
                      short length,
                      CAENRFIDLogicalSource Source,
                      java.lang.String ReadPoint,
                      short rssi,
                      byte[] tTID,
                      byte[] tXPC,
                      java.util.Date time)
               throws CAENRFIDException
Throws:
CAENRFIDException

CAENRFIDTag

protected CAENRFIDTag(byte[] Id,
                      CAENRFIDProtocol type,
                      short length,
                      CAENRFIDLogicalSource Source,
                      java.lang.String ReadPoint,
                      short rssi,
                      byte[] tTID,
                      byte[] tXPC,
                      byte[] tPC,
                      java.util.Date time)
               throws CAENRFIDException
Throws:
CAENRFIDException
Method Detail

GetId

public byte[] GetId()
Get the Tag's ID

Returns:
the Tag's ID

GetTID

public byte[] GetTID()
Gets the TID field in this tag's memory

Returns:
TID associated to this tag

GetLength

public short GetLength()
Get the Tag's length

Returns:
the Tag's length

GetRSSI

public short GetRSSI()
Get the Tag's RSSI

Returns:
the Tag's RSSI

GetSource

public CAENRFIDLogicalSource GetSource()
Get the Source that has detected the tag

Returns:
The CAENRFIDLogicalSource representing the Source that has detected the Tag

GetType

public CAENRFIDProtocol GetType()
Get the type of the protocol

Returns:
The CAENRFIDProtocol representing the type of the Tag

GetTimeStamp

public java.util.Date GetTimeStamp()
Get the TimeStamp of the Tag

Returns:
The Date of the TimeStamp of the Tag

GetAntenna

public java.lang.String GetAntenna()
Get the Antenna That has detect the Tag

Returns:
The name of the Antenna of the Tag

GetXPC

public byte[] GetXPC()
Get the XPC of this tag, if exists.

Returns:
Four byte of XPC, or four zero if XPC has not detected on tag, or is invalid.

GetPC

public byte[] GetPC()
Get the pc of this tag.

Returns:
A short (two bytes array) containing PC.

GetReadPoint

public java.lang.String GetReadPoint()
                              throws CAENRFIDException
Get the ReadPoint that has detected the tag

Returns:
The name of the ReadPoint that has detected the Tag
Throws:
CAENRFIDException - If the Reader raises an error.