org.onsignal.rfid
Class RFIDTag

java.lang.Object
  extended by org.onsignal.rfid.RFIDTag

public class RFIDTag
extends java.lang.Object


Field Summary
 int[] data
           
 java.lang.String tag
           
 int type
           
 
Constructor Summary
RFIDTag(int[] data)
          The constructor.
 
Method Summary
 boolean equals(int[] data)
          Test for equation with 'raw' reader data.
 boolean equals(RFIDTag t)
          Test for equation with another RFID tag.
 boolean equals(java.lang.String s)
          Test for equation with a string.
 java.lang.String getTagTypeString()
          This function returns the type of the tag as a string
 java.lang.String toString()
          Represent this tag as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

public int[] data

type

public int type

tag

public java.lang.String tag
Constructor Detail

RFIDTag

public RFIDTag(int[] data)
The constructor. A raw data package is passed in in the same way it was read from the reader: the first byte represents the tag type, the other bytes represent the tag serial number.

Method Detail

getTagTypeString

public java.lang.String getTagTypeString()
This function returns the type of the tag as a string


toString

public java.lang.String toString()
Represent this tag as a string. The tag represents its data in hexadecimal byte-format, with lowercase letters, separated by colons, e.g. "4a:9a:c8:b1"

Overrides:
toString in class java.lang.Object

equals

public boolean equals(int[] data)
Test for equation with 'raw' reader data. This method is only here for performance reasons, please use one of the other equals() functions instead as they are easier to implement.


equals

public boolean equals(RFIDTag t)
Test for equation with another RFID tag.


equals

public boolean equals(java.lang.String s)
Test for equation with a string. The tag represents its data in hexadecimal byte-format, with lowercase letters, separated by colons, e.g. "4a:9a:c8:b1"