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.

Version:
CAENRFIDLibrary 4.2.0
Author:
Alberto Lucchesi (a.lucchesi@caen.it) CAEN SpA Computing Division @2005-2007, Andrea Iavazzo (a.iavazzo@caen.it) CAEN RFID Srl Computing Division @2009-2010

Constructor Summary
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
 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
equals, 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.
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.

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.